Created
December 17, 2021 10:10
-
-
Save falfox/3a0f073428085898ac32c4618c72e6ea to your computer and use it in GitHub Desktop.
timestamp
This file contains hidden or 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 now = DateTime.now(); | |
| final tomorrow = now.add(Duration(days: 1, hours: 1)); | |
| // Jam 00:00 hari ini | |
| final start = DateTime(now.year, now.month, now.day, 0, 0); | |
| // Jam 00:00 besok | |
| final end = DateTime(now.year, now.month, now.day + 1, 0, 0); | |
| print(start); | |
| print(end); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment