On Wed, 4 Feb 2015 11:21:32 -0800 SSC_perl <p...@surfshopcart.com> wrote:
> I'm trying to break out a timestamp into it's appropriate fields, > like so: > > my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = > localtime($my_time); > > but no matter if I use localtime or gmtime, $my_time gets analyzed as > either in the server's timezone or in UTC. I need to break apart the > timestamp in $my_time without it being changed. In other words, I'm > trying to get $hour, $min, $sec, etc, in _my_ timezone, not the > server's nor in UTC. Have you read `perldoc perllocale` especially the `setlocale` function? http://perldoc.perl.org/perllocale.html#The-setlocale-function -- Don't stop where the ink does. Shawn -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/