Perl: Use TZ from user's .bashrc for localtime()

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-04-19T15:29:42Z Indexed on 2010/04/19 15:33 UTC
Read the original article Hit count: 328

Filed under:
|
|
|

Each of my users has a (possibly) different TZ defined in their /.bashrc. I have a Perl script that displays date/time and want it to have it display with their profile time zone.

Does anyone know the best way to do this?

© Stack Overflow or respective owner

Related posts about perl

Related posts about bashrc