
perlkid
stranger
Jul 27, 2000, 3:32 PM
Post #2 of 2
(333 views)
|
|
Re: Changing local system time
[In reply to]
|
Can't Post
|
|
There is a way to change the time in perl without having to ever leave the script. example, This converts pacific time to EST time. 3 hour difference ### (@etime) = localtime(time() + 3 * 3600); ### + 3 add 3 hours to server time * 3600 I don't know but you have to use it when converting time. print "$etime[2]"; printed the current hour. if you want to subtract time the do just that, ### (@etime) = localtime(time() - 3 * 3600); ### Hope this is what you needed. perlkid
|