J
Jason Quek
When I convert "26 Oct 2003" to epoch seconds,
#-----------------------------------------------------------------
use Time::Local;
$from = timelocal(0, 0, 0, 26, 9, 2003);
# $from == 1067140800;
#-----------------------------------------------------------------
When I convert "27 Oct 2003" to epoch seconds,
#-----------------------------------------------------------------
use Time::Local;
$from = timelocal(0, 0, 0, 26, 9, 2003);
# $to == 1067230800;
#-----------------------------------------------------------------
#-----------------------------------------------------------------
$difference = $to - $from;
# $difference == 90000;
#-----------------------------------------------------------------
Shouldn't the difference between the 26th and 27th be 86400
(60*60/24)? Where did the extra 1 hour come from?
Does anybody know why this happens?
Regards,
Jason Quek
(e-mail address removed)
#-----------------------------------------------------------------
use Time::Local;
$from = timelocal(0, 0, 0, 26, 9, 2003);
# $from == 1067140800;
#-----------------------------------------------------------------
When I convert "27 Oct 2003" to epoch seconds,
#-----------------------------------------------------------------
use Time::Local;
$from = timelocal(0, 0, 0, 26, 9, 2003);
# $to == 1067230800;
#-----------------------------------------------------------------
#-----------------------------------------------------------------
$difference = $to - $from;
# $difference == 90000;
#-----------------------------------------------------------------
Shouldn't the difference between the 26th and 27th be 86400
(60*60/24)? Where did the extra 1 hour come from?
Does anybody know why this happens?
Regards,
Jason Quek
(e-mail address removed)