my $epTime = 1276218934.155029; my ($epoch, $frac) = $epTime =~ /(\d+)\.(\d+)/; (my $str = localtime $epoch) =~ s/(.*:\d+)/$1.$frac/; printf $str;
Prints:
Fri Jun 11 13:15:34.15503 2010
In reply to Re: displaying microseconds from epoch like format
by GrandFather
in thread displaying microseconds from epoch like format
by r0adawg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |