Skip to content

Instantly share code, notes, and snippets.

@falfox
Created December 17, 2021 10:10
Show Gist options
  • Select an option

  • Save falfox/3a0f073428085898ac32c4618c72e6ea to your computer and use it in GitHub Desktop.

Select an option

Save falfox/3a0f073428085898ac32c4618c72e6ea to your computer and use it in GitHub Desktop.
timestamp
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