[LA.pm] time conversion question

Peter Scott Peter at psdt.com
Fri Jul 28 13:08:10 PDT 2006


At 9:31 PM -0700 7/27/06, William Yardley wrote:
>  > my $datetime = strftime('%Y-%m-%d %H:%M:%S', str2time($sometime));
>
>After messing with it a little and looking at TFM, looks like that
>should be:
>
>strftime('%Y-%m-%d %H:%M:%S', localtime(str2time($date)));

Right, I always forget that.  Seems like it shouldn't be necessary :-)


More information about the Losangeles-pm mailing list