Works for me too (with the addition of use Time::Local; at the top).
However, I would simply the sub somewhat:
sub getGMDelta { my @now = localtime; return timegm( @now ) - timelocal( @now ); }
In reply to Re: why are timegm and timelocal returning the same epoch seconds values
by Not_a_Number
in thread why are timegm and timelocal returning the same epoch seconds values
by kehansen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |