unixTimestampToJson function

int unixTimestampToJson(
  1. DateTime date
)

Implementation

int unixTimestampToJson(DateTime date) => date.millisecondsSinceEpoch ~/ 1000;