develooper Front page | perl.datetime | Postings from October 2008

How to Compute Hours In a Day?

Thread Next
From:
jim.monty
Date:
October 19, 2008 14:42
Subject:
How to Compute Hours In a Day?
Message ID:
581132.80976.qm@web58708.mail.re1.yahoo.com
How do I compute the number of hours in a day in a specific time zone?
 
Let's say I want to iterate the days of the year from Jan 1 thru Dec 31
and print the number of hours in each day in the America/New_York time
zone. I expect 363 days to have 24 hours, one day to have 23 hours, and
one day to have 25 hours. I want to know how best to compute these
numbers of hours in each day.
 
Jim Monty

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About