in reply to Re: Impact of U.S. Daylight Savings Time changes in 2007 on Perl distribution/code
in thread Impact of U.S. Daylight Savings Time changes in 2007 on Perl distribution/code
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 :-)
|
|---|