dateToTimePointSec function

int dateToTimePointSec(
  1. String date
)

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

Implementation

int dateToTimePointSec(String date) {
  var v = checkDateParse(date);
  int t = (v.millisecondsSinceEpoch / 1000).round();
  return t;
}