| Re: Current Time with 5 digits of milliseconds |
|
 |
|
 |
|
 |
|
 |
Author: Peter J. Holzer Date: May 12, 2008 03:58
On 2008-05-12 07:39, ambarish.mitra@ gmail.com gmail.com> wrote:
> I need to get the current date-time with milliseconds upto 5 places of
> precision.
>
> That is, 20080512T12094565266 => YYYY MM DD T HH mm SS ms-5 digits
>
> Here, 65266 is the milli-second with 5 places of precision.
Since "milli" means "one thousandth", milliseconds by definition have
exactly 3 places of precision. The term you are looking for is
"fractional seconds".
> Any idea how this can be achieved in Perl?
Time::HiRes
hp
|