Created
April 30, 2015 11:16
-
-
Save philippeback/3d865931d36e1d2d7c37 to your computer and use it in GitHub Desktop.
TimeZone in Pharo
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
localTimeZoneToRestore := DateAndTime localTimeZone. | |
DateAndTime localTimeZone: (TimeZone abbreviated: 'UTC'). | |
time := DateAndTime midnight. | |
DateAndTime localTimeZone: TimeZone default. | |
time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment