[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: AW: AW: change timezone // Zeitzone dndern



And UnknownX@gmx.de spoke unto the world. And said:
> Can at least anyone explain to me how i can use a mysql date such like
> "YYYY-MM-DD HH:MM:SS" to use in the script below ?

> so i want to convert
> "2004-01-21 22:46:00" which maybe is GMT
> to
> "2004-01-21 24:46:00" => MET 

The Time::ParseDate module could probably help you or something like:

  my ($year,$month,$day,$hour,$minute,$second) = split /[ :-]/, $string;

-- 
Jonas J Linde <jonas@init.se>  http://www.init.se/~jonas/ +46-707-492496
------------------------------------------------------------------------
GE/IT$ d-() s++: a C++(++++)$ UBVL++(++++)$ P++ L+++$ E++ W++(-) N+ o--
K+ !w(+) O M@ V PS+ PE++(-) Y+ PGP+>++ t 5 X R-@ tv- b+>++ DI D++ G++(-)
e+++ h--(----) r++ y++++ UF+



Reply to: