in reply to Re: Convert GMT timestamp to EST/EDT (Time::Local)
in thread Convert GMT timestamp to EST/EDT
## @nn = localtime( timegm( reverse @nn ) ); ##$nn[4]++; # Make month 1-based (ugh) ##$nn[5] += 1900; # (ugh) ##$stamp = sprintf "%d%02d%02d-%02d:%02d:%02d%s", use Time::Piece qw/ localtime ; $stamp = localtime( timegm( reverse @nn ) )->strptime('%Y%m%d-%H:%M:% +S').$f;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Convert GMT timestamp to EST/EDT (Time::Local + Time::Piece)
by ikegami (Patriarch) on Jul 28, 2015 at 18:39 UTC | |
by Your Mother (Archbishop) on Jul 28, 2015 at 19:26 UTC | |
by ikegami (Patriarch) on Jul 28, 2015 at 20:03 UTC | |
|
Re^3: Convert GMT timestamp to EST/EDT (Time::Local + Time::Piece)
by jellisii2 (Hermit) on Jul 27, 2015 at 13:27 UTC |