Created
March 11, 2022 12:12
-
-
Save albertms10/d75b00b8e18b1f552e926515c107dcc1 to your computer and use it in GitHub Desktop.
Dart 0-day DateTime
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() { | |
print(DateTime(2000, 1, 0)); // previous day | |
print(DateTime(2000, 1, 1)); // proper day | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment