Castle and Riders

Date and Time Calculations in Rails

Calculating dates and times has always been a challenge for programmers. How many days until the next New Years Eve party (oh, did you forget 2008 is a leap year)? How long ago was the last backup (convert that to GMT, please)? What day of the week is 19 days, 42 hours, and 374 minutes from now (and how many milliseconds is that again)? And don’t even get me started on Y2K!

Posted on January 1st, 2008 in the Rails category | Permalink | No Comments »



You are currently browsing the GridWorlds weblog archives for January, 2008.

Categories

Archives