Moron has asked for the wisdom of the Perl Monks concerning the following question:
localtime() gives me the time in the CET zone. But I am in a routine that is being given records containing a date and time field originally created in EST. Owing to DST inconstency it is not acceptable to apply the most usual difference of 5 hours, because the routine has to work all year round and that idea fails a couple of weeks of the year or so. So I need to get the current time in EST and find the difference which I can then apply to these records so that I am storing them in CET, wherever they came from in the world (that is when I eventually make the solution generic after resolving this immediate case).
Is there a way I can fool localtime() into giving me the EST time or any other idea for how to get the current EST time from a CET-based machine?
Thanks in advance for suggestions.
-M
Free your mind
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding a remote time
by davorg (Chancellor) on Jul 17, 2006 at 09:38 UTC | |
|
Re: Finding a remote time
by gellyfish (Monsignor) on Jul 17, 2006 at 09:40 UTC | |
by Fletch (Bishop) on Jul 17, 2006 at 13:14 UTC | |
by gellyfish (Monsignor) on Jul 17, 2006 at 14:26 UTC | |
by Jenda (Abbot) on Jul 17, 2006 at 15:58 UTC | |
by Fletch (Bishop) on Jul 17, 2006 at 16:18 UTC | |
|
Re: Finding a remote time
by jaa (Friar) on Jul 17, 2006 at 20:37 UTC | |
| |
| |
|
Re: Finding a remote time
by Ieronim (Friar) on Jul 17, 2006 at 09:40 UTC | |
|
Re: Finding a remote time
by Moron (Curate) on Jul 17, 2006 at 13:59 UTC | |
by nothingmuch (Priest) on Jul 17, 2006 at 20:04 UTC | |
|