secondsSinceEpoch static method
seconds since epoch
Implementation
static int secondsSinceEpoch() {
final secondsSinceEpoch = DateTime.now().millisecondsSinceEpoch ~/ 1000;
return secondsSinceEpoch;
}
seconds since epoch
static int secondsSinceEpoch() {
final secondsSinceEpoch = DateTime.now().millisecondsSinceEpoch ~/ 1000;
return secondsSinceEpoch;
}