getTimestamp static method

int getTimestamp()

获取当前时间戳

Implementation

static int getTimestamp() {
  DateTime now = DateTime.now();
  return now.millisecondsSinceEpoch;
}