Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Impact of U.S. Daylight Savings Time changes in 2007 on Perl distribution/codeby jbert (Priest) |
on Jan 07, 2007 at 17:25 UTC ( [id://593409]=note: print w/replies, xml ) | Need Help?? |
Another good reason to do everything in UTC.
Absolutely. Like encoding characters as bytes, representing time (stored as time_t or UTC strings) in user-readable format is a user-interface issue (ditto for input). Normalise data to a canonical form at all the boundaries on input (and convert back to local settings on output) and a whole class of worries just go away. Just be sure that you conversions aren't lossy :-)
In Section
Seekers of Perl Wisdom
|
|