Bill Moseley wrote:

BTW:

    'print UnixDate("Dec 3, 2006 9am PST", "%Z %Y %m %d %H %M %S %z " )'

    PDT 2006 12 03 10 00 00 -0700

I believe that code like that should fail - or at least spit a warning - as PST is ambiguous. It's used in Pakistan and north America. Yes, I know it's documented, but really, who on earth checks the documentation that carefully? Ah well, at least they differ by a goodly amount so one would hope the bug would be spotted.

For more excitement, check out CST. If you mean Cuba Summer Time but actually get Central Standard Time they only differ by two hours, so the bug is less likely to be spotted.

Use of timezone abbreviations considered stupid.

--
David Cantrell

Reply via email to