getCurrrentTimestamp method

int getCurrrentTimestamp()

获取当前时间的unix时间戳

print(' current time stamp: ${getCurrentTimestamp()}');

Implementation

int getCurrrentTimestamp() {
  return (DateTime.now().millisecondsSinceEpoch / 1000).floor();
}