<?xml version="1.0" encoding="windows-1252"?>
<node id="390714" title="Re: converting Time::HiRes" created="2004-09-13 20:48:32" updated="2005-06-27 06:44:09">
<type id="11">
note</type>
<author id="171588">
BrowserUk</author>
<data>
<field name="doctext">
&lt;p&gt;You need to re-read the docs. This line of code:
&lt;code&gt;
my $t0 = [gettimeofday];
&lt;/code&gt;

&lt;p&gt;Is putting two values (seconds and microseconds) into an anonymous array and assigning a reference to that array to $t0. You then pass  that reference to localtime() and get strange results.



&lt;div class="pmsig"&gt;&lt;div class="pmsig-171588"&gt;
&lt;hr /&gt;
&lt;font size=1 &gt;
&lt;div&gt;Examine what is said, not who speaks.&lt;/div&gt;
"Efficiency is intelligent laziness." -David Dunham&lt;br /&gt;
"Think for yourself!" - [Abigail-II|Abigail] &lt;br /&gt;
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - [tachyon]&lt;br /&gt;
&lt;/font&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
390711</field>
<field name="parent_node">
390711</field>
</data>
</node>
