in reply to localtime hour count

I see following:
coli ~ # perl t.pl Sat Apr 8 14:09:05 2006 Sat Apr 8 14:09:10 2006 Elapsed: 0:0:5
but on another machine:
D:\TESTS>perl 3 Sat Apr 8 18:10:21 2006 Sat Apr 8 18:10:26 2006 Elapsed: 3:0:5
Obviously, this is just conversion of time onto your local timezone settings (mine is GMT+3, yours is GMT+1? CET?)

Replies are listed 'Best First'.
Re^2: localtime hour count
by ady (Deacon) on Apr 08, 2006 at 14:16 UTC
    yep, I'm i GMT+1, so i'll buy your explanation here
    Tnx! -- allan
    update:
    my ($h,$m,$s) = (gmtime($t2-$t1))[2,1,0];
    will DWIM -- allan

      This is still confusing durations with dates. See my post below.

      If the epoch was at 00:03:35 instead of 00:00:00 (and it might be on some scary operating system that someone just happenned to port perl to ;-) then your time delta would be much harder to explain =)

      -nuffin
      zz zZ Z Z #!perl