in reply to MiliSeconds

You can retrieve date and time information with high precision via the Time::HiRes module. The module documentation includes a number of examples of use.

The code which you end up using might look something like the following ...

use Time::HiRes qw/ time /; my $u_sec = time; my @date = localtime($u_sec); my $format = sprintf( "%4d%02d%02d%02d%02d%02d(%06d)", $date[5] + 1900, $date[4] + 1, $date[3], $date[2], $date[1], $date[0], substr($u_sec, index($u_sec, '.') + 1) ); print $format, "\n";

 

Replies are listed 'Best First'.
Re: Re: MilliSeconds
by Dany (Initiate) on Jun 11, 2002 at 13:42 UTC
    Ok, the date appears in correct format. But not appear the miliseconds in the format. Appear the next message: 20020611151959(1023801599) Thanks.