Jason Tan

  • Random
  • Archive
  • RSS
  • Ask me anything

Time stamps and daylight

Here’s a free tip for you: 

If you’re iterating through calendar days with Unix timestamps, don’t just add 86,400 seconds (60*60*24) to the timestamp.  If you do, you’ll get messed up with Daylight Saving Time. 

P.S.  Did you know it’s “Daylight Saving Time”, not “Daylight Savings Time”? 

  • 4 years ago
  • Permalink
  • Share
    Tweet
← Previous • Next →

About

Avatar Tumbling through the internets

Me, Elsewhere

  • @jt2k on Twitter
  • Facebook Profile
  • jasontan on Flickr
  • jt2k on Last.fm
  • jt2k on Foursquare

Twitter

loading tweets…

Following

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr