in reply to Re: How to get TZ difference?
in thread How to get TZ difference?
#!/usr/bin/perl @local=(localtime); @gmt=(gmtime); $diff=$gmt[2]-$local[2]; if ($gmt[5] > $local[5] || $gmt[7] > $local[7]) { $diff += 24; } elsif ($gmt[5] < $local[5] || $gmt[7] < $local[7]) { $diff -= 24; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: How to get TZ difference?
by sgifford (Prior) on Jun 28, 2003 at 17:55 UTC | |
by dda (Friar) on Jul 06, 2003 at 06:38 UTC | |
|
Re: Re: Re: How to get TZ difference?
by hsweet (Pilgrim) on Jun 28, 2003 at 22:51 UTC | |
|
Re^3: How to get TZ difference?
by Anonymous Monk on Sep 08, 2014 at 09:42 UTC | |
by Anonymous Monk on Sep 14, 2016 at 18:37 UTC |