<?xml version="1.0" encoding="windows-1252"?>
<node id="390755" title="Re^2: converting Time::HiRes" created="2004-09-14 02:20:22" updated="2005-07-06 04:03:32">
<type id="11">
note</type>
<author id="244201">
Lhamo Latso</author>
<data>
<field name="doctext">
Thanks, the scalar of localtime works, with a decimal correctly placed:
&lt;code&gt;
print scalar(localtime(1068837428.812901))."\n";
&lt;/code&gt;
&lt;p&gt;
My real problem is with the Oracle trace data.   It has a time value in microseconds since the epoch, but the conversion appears to be off by 9 months.  The print statement above is from September 2004, but the conversion lands in November 2003.  As in the following source data:
&lt;code&gt;
*** SESSION ID:(92.34308) 2004-09-06 11:52:07.103
APPNAME mod='sqlplus@prod90db (TNS V1-V3)' mh=0 act='' ah=0
=====================
PARSING IN CURSOR #1 len=69 dep=0 uid=0 oct=42 lid=0 tim=1068837428812901 hv=...
&lt;/code&gt;
&lt;p&gt;
It's time to read the Oracle docs again!!</field>
<field name="root_node">
390711</field>
<field name="parent_node">
390720</field>
</data>
</node>
