DATETIME
Honza Pazdziora
adelton na informatics.muni.cz
Čtvrtek Duben 11 13:53:35 MEST 2002
On Thu, Apr 11, 2002 at 01:47:18PM +0200, AKlimek na ebanka.cz wrote:
>
> muzete mi nekdo poradit jak prevest cas ve formatu sssssssssss(sekunda) od
> zacatku epochy (pulnoc 1.1.1970 ci tak neco)
> na YYMMDDHHMM (rokmesicdenhodinaminuta).
my @x = (localtime)[5, 4, 3, 2, 1];
printf "%02d%02d%02d%02d%02d\n", substr($x[0], -2), $x[1] + 1, @x[2 .. 4];
--
------------------------------------------------------------------------
Honza Pazdziora | adelton na fi.muni.cz | http://www.fi.muni.cz/~adelton/
... all of these signs saying sorry but we're closed ...
------------------------------------------------------------------------
Další informace o konferenci Perl