Hi Folks,

Can anyone tell me why the snippet below yields
an hour value other than zero? I'm simply subtracting
the hrs/min/sec value (in seconds) from the time which
contains precisely that hrs/min/sec value.

I'm running this from EDT zone and get these results:

3070360208 = 8 50 17 17 3 101 2 106 1
49808 = 8 50 17 1 0 4 5 0 1 
3070310400 = 0 0 4 17 3 101 2 106 1 

Why that hour value of 4 ???

$t1 = time;
@c = gmtime($t1); print "$t1 = @c \n";
$t2 = $t1 % (24 * 3600);
@c = gmtime($t2); print "$t2 = @c \n";
$t3 = $t1 - $t2;
@c = gmtime($t3); print "$t3 = @c \n";

Regards,

Jake Commander

Reply via email to