Import p5-DateTime-Precise version 1.05.
authorhe <he>
Sun, 17 Aug 2008 14:43:13 +0000 (14:43 +0000)
committerhe <he>
Sun, 17 Aug 2008 14:43:13 +0000 (14:43 +0000)
commit19306ee59d00a6a16cf45e15a5ef8b146c6c55d0
tree284560cf2e5d95a49a468d682a1b175c7adf78b3
parentc34e8c53dd82041ca04866845288640dcb535b57
Import p5-DateTime-Precise version 1.05.

The purpose of this library was to replace our dependence on Unix
epoch time, which, being limited to a range of about 1970 to 2030,
is inadequate for our purposes (we have data as old as 1870). This
date library effectively handles dates from A.D. 1000 to infinity,
and would probably work all the way back to 0 (ignoring, of course,
the switch-over to the Gregorian calendar). The useful features of
Unix epoch time (ease of date difference calculation and date
comparison, strict ordering) are preserved, and elements such as
human-legibility are added. The library handles fractional seconds
and some date/time manipulations used for the Global Positioning
Satellite system.

The operators +/-, <=>, cmp, stringify are overloaded. Addition
handles seconds and fractions of seconds, subtraction handles
seconds or date differences, compares work, and stringification
returns the a representation of the date.

The US Geological Survey (USGS) likes midnight to be 24:00:00 of
the previous day, not 00:00:00 of the day people expect. If
$DateTime::Precise::USGSMidnight is set, dprintf will always print
midnight as 24:00:00 and the date returned from dprintf will have
the previous day's date. Regardless, time is always stored internally
as 00:00:00.
time/p5-DateTime-Precise/DESCR [new file with mode: 0644]
time/p5-DateTime-Precise/Makefile [new file with mode: 0644]
time/p5-DateTime-Precise/distinfo [new file with mode: 0644]