Time

 Time

A talk about how to handle time and timezones. Given at Twente.rb

B012094b37ab6946c44eaa41d7828478?s=128

Dirkjan Bussink

February 10, 2015
Tweet

Transcript

  1. 3.
  2. 4.
  3. 5.
  4. 6.
  5. 7.
  6. 8.
  7. 9.
  8. 10.
  9. 13.
  10. 14.

    UTC

  11. 15.
  12. 19.
  13. 22.
  14. 23.
  15. 25.
  16. 27.
  17. 32.
  18. 33.
  19. 34.
  20. 35.

    DST

  21. 37.

    sydney = ActiveSupport::TimeZone[“Australia/Sydney"] ! time => Tue, 19 Aug 2014

    17:15:00 CEST +02:00 time.in_time_zone(sydney) => Wed, 20 Aug 2014 01:15:00 EST +10:00
  22. 38.

    later = time + 6.months => Thu, 19 Feb 2015

    17:15:00 CET +01:00 ! later.in_time_zone(sydney) => Fri, 20 Feb 2015 03:15:00 EST +11:00
  23. 45.

    DST

  24. 49.

    Day!! ! ! ! ! ! ! 2014-10-26! Start!! !

    ! ! ! ! 79200!! ! ! End!! ! ! ! ! ! ! 108000! Duration!! ! 32400
  25. 50.