Re: definition of correctness
[email protected] (Rick Measham)
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <[email protected]> |
bharanee rathna wrote: > although the latter seems consistent with what POSIX::mktime does. The > question I have is about the correctness of DST calculations and > whether POSIX::mktime is busted. I'm not sure what you're thinking might be busted here. If we're doing the same as POSIX::mktime does, then it's doing it right. When you add a day, you expect the wallclock to stay the same. "Tune in the same time tomorrow". When you add 24 hours, you expect 24 *HOURS* to elapse -- no matter how many hours there are in a day. Cheers! Rick Measham -- Message protected for iSite by MailGuard: e-mail anti-virus, anti-spam and content filtering. http://www.mailguard.com.au