timestampBy function

int timestampBy(
  1. DateTime dateTime
)

获取指定时间戳

Implementation

int timestampBy(DateTime dateTime) => dateTime.millisecondsSinceEpoch ~/ 1000;