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