Dealing with TimeZones

T

Thomas A. Moulton

What is the easies to use package for dealing with time zones and DST
changes?

I just need to be able to track when to start various activities bases
on local times.

The problem is I have to trace a few time zones.

It looks like TZFile will do the job, but I am not sure how stable it is.
(It uses the zone files on the local system)

http://www.a-k-r.org/ruby-tzfile/

Or maybe there are other packages I have over looked.

I did look at TZinfo, but is seems to be static code not live data.

Any suggestions?

tom
 
J

Jonas Pfenniger (zimbatm)

Hi Thomas,

I would take a look at TZInfo again. Since it's used by rails, it
should be pretty reliable.
But I didn't really get the static code vs live data reflection. The
tables need to be updated once in a while, but that is fixed by
upgrading the gem. Is this what you mean ?

http://tzinfo.rubyforge.org/doc/

Cheers,
zimbatm
 
T

Thomas A. Moulton

Yes, but to get the update my program would need to re-load, not to mention I would have to manually, I would often forget, which defeats the purpose

Tom
 
J

Jonas Pfenniger (zimbatm)

2011/1/16 Thomas A. Moulton said:
Yes, but to get the update my program would need to re-load, not to mention I would have to manually, I would often forget, which defeats the purpose

Yeah I know what you mean. It's not a problem for most people because
they push code changes to their product anyways. I'm afraid not much
people need a fire and forget solution like you do.

Sorry I couldn't help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,814
Members
47,359
Latest member
Claim Bitcoin Earnings. $

Latest Threads

Top