2015-08-10
Timezones and daylight saving time.
This week let's each take a look at timezone handling in our language of choice, then explain what we've found. For extra fun, we can even try to show off daylight saving time.
Javascript:
new Date().getTimezoneOffset()
- http://momentjs.com/timezone/
PHP:
Java:
- http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html
- https://docs.oracle.com/javase/8/docs/api/java/time/package-summary.html
C#:
Python:
Ruby:
- http://api.rubyonrails.org/classes/ActiveSupport/TimeZone.html
- http://ruby-doc.org/core-2.1.1/Time.html
Bash:
Powershell: