Created
March 19, 2020 23:46
-
-
Save mohammedsalem97/3c9abcf0bf3c21769a94f6c5a955163e to your computer and use it in GitHub Desktop.
THIS FILE IS TO PLAY WITH THE DATETIME CLASS PROPERTIES
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
///THIS FILE IS TO PLAY WITH THE DATETIME CLASS PROPERTIES | |
///FIRTST WRITTEN IN 20-3-2020 | |
void main() { | |
var ct = DateTime.now(); | |
print("Egypt Now: ${ct.toLocal()}"); | |
print("UTC TIME ZONE NOW: ${ct.toUtc()}"); | |
print("Time zone offset in Egypt: ${ct.timeZoneOffset.inHours} hours"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment