secondsSinceEpoch static method

int secondsSinceEpoch()

seconds since epoch

Implementation

static int secondsSinceEpoch() {
  final secondsSinceEpoch = DateTime.now().millisecondsSinceEpoch ~/ 1000;
  return secondsSinceEpoch;
}