currentTimeStamp method
Returns the current timestamp in seconds (integer value).
Implementation
int currentTimeStamp() {
return (DateTime.now().millisecondsSinceEpoch ~/ 1000).toInt();
}
Returns the current timestamp in seconds (integer value).
int currentTimeStamp() {
return (DateTime.now().millisecondsSinceEpoch ~/ 1000).toInt();
}