tashfeen.ekram wrote:
> Is there a way to figure out if a given timezone is in daylight
> savings?

You would have to look in a Geopolitical timezone database. Operating 
systems have them or they are built into a VM if necessary (I know there 
is one for the Java VM for example).

There is no one-to-one correspondence between timezones and daylight 
savings, so the values have to be looked up. You would have to know when 
DST starts and ends per zone, per political boundary, per year, etc. And 
also the value of the change. Some areas only change by 30 mins instead 
of an hour for example.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to