timePointSecToDate function

String timePointSecToDate(
  1. int sec
)

Convert time_point_sec (seconds since epoch) to to date in ISO format */

Implementation

String timePointSecToDate(int sec) {
  return DateTime.fromMillisecondsSinceEpoch(sec * 1000).toIso8601String();
}