Re: How to get the first second of a given Day.

[email protected] (Zefram)
Newsgroups perl.datetime
Message-ID <[email protected]>
Deviloper wrote:
>But I want to know the unixtimestamp of 0:00:00 12, 25th, 2008 and 23:59:59 of 12,25th,2008.
>
>Because of shift seconds this is not so easy as I thought.

Unix time doesn't count leap seconds.  2008-12-25 is 14238 days after
the Unix epoch (1970-01-01), so the Unix time at 00:00:00 UT on that
day is 86400*14238, and the Unix time at 23:59:59 UT on that day is
86400*14239-1.

-zefram
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.