[PBP-pm] Handling fractions of seconds

David Wheeler david at kineticode.com
Fri Dec 23 13:57:16 PST 2005


On Dec 23, 2005, at 1:20 PM, Tolkin, Steve wrote:

> Two questions:
> 1.  What date module supports fractional seconds.
> Ideally it would be in the perl 5 core.

DateTime supports nanoseconds, and of course all multiples of  
nanoseconds. The relevant methods include:

   fractional_second()
   millisecond()
   microsecond()
   nanosecond()

It's not in the core, of course. Perhaps someone can convince P5P to  
add it for Perl 5.10.

Best,

David


More information about the PBP-pm mailing list