Re: How to Compute Hours In a Day?
[email protected] (Dave Rolsky)
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 20 Oct 2008, Eugene van der Pijll wrote: > DateTime cannot handle fractional leap hours. > > See the source code of subtract_datetime(), section "This is a gross > hack", where the length of the leap hour is hardcoded in the lines > > $bigger_min -= 60 > $bigger_min += 60 > > This should probably be changed, but datetime math is scary. If you write some failing tests, I might be able to fix it. -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/