Created
September 16, 2020 18:13
-
-
Save figofosandy/d40e4f0b6656154a6ca2ec3f751ee92b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final newDate = DateTime.now(); | |
print(newDate); | |
print(newDate.subtract(Duration(hours: newDate.hour, minutes: newDate.minute, seconds: newDate.second, milliseconds: newDate.millisecond, microseconds: newDate.microsecond))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment