From: Nick Brown Date: 2009-09-22T05:31:30+09:00 Subject: find the number of hours in a day I'm trying to determine the best way to find the number of hours (or seconds) in a given day in a given timezone. Is there a "right" way to do this with Ruby? There are so many ways to deal with dates and times in Ruby (Time, date, datetime, ActiveSupport:...:Time, Chronic, ActionView) that I almost don't know where to start. Basically, if there are 25 or 23 hours in a day due to daylight savings, I need to know so that I can handle that special case. How would you handle this? -- Posted via http://www.ruby-forum.com/.