How to get local time using PERL while the server I am using is in a different time zone? For example, my local time is 9 am August 17th. But the server is in 9pm August 16th time zone. How do I write PERL code to get my local time?
localtime(time);
#!/usr/local/bin/perl
@time = localtime(time);
print join('',@time);
$ENV{TZ}="UTC";



