> # I then have values for a date&time coming out of a column in the
database
> # I use a DATE_FORMAT function in the sql so my datetime comes out like
> # 2nd March 14:00
> # I thought putting this into localtime function of Time::Local module
would
> produce
> # date and CET time
>
> my $localisedstartdatetime = localtime($start);


The localtime function is looking for a the total number of seconds from the
epoch to now.  The date format from the database would be the string that
you
have documented above. A possible suggestion for fixing this would be to
break
the date up into the localtime functions individual fields and output the
number of
seconds into a variable followed by putting the output of that variable into
the line
above.

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to