[EMAIL PROTECTED] schreef:
> Here's my first shot at a script. It combines Zefram's suggestion to
> use $dt->epoch() and Eugene's recommendation to measure the intervals
> at noon instead of at midnight. Next, I'd like to refactor it
> using...um...I'm not sure, but something other than $dt->epoch().

I think the script in my first mail comes close; I'd start there.

> It's easy enough to find stranger and even more problematic dates.
> 
>     C:\>perl oddhours.pl 1961
>     1961-01-01  23.7458333333333  Africa/Dar_es_Salaam

In the 19th century, there were no time standards, and each city used
its own local time. At some point, times within a country were
standardized; often to an integer offset with GMT, sometimes first to
the local time of the capital.

Check out 1883, when the U.S. moved from local time to standard time
zones. That results in a lot of strange day lengths. Apparently,
Tanganyika moved to standard time in 1961.

>     C:\>perl oddhours.pl 1967
>     Invalid local time for date in time zone: Africa/Casablanca

And so there are time zones that change at noon... Those wacky
politicians...

In Morocco in 1967, and only in that year, DST started on June 3, 12:00.

Eugene

Reply via email to