to get current time in millis flutter code example Example: dart timestamp void main() { print(new DateTime.now().millisecondsSinceEpoch); }