Thread Umrechnung von Unix Time mit Perl (22 answers)
Opened by Rambo at 2007-06-28 12:35

renee
 2007-07-02 14:07
#77963 #77963
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
[quote=Rambo,02.07.2007, 11:51]
Code: (dl )
1
2
3
4
[...]
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime($time);

[...]
[/quote]
Warum holst Du Dir mehr als Du brauchst?

Code (perl): (dl )
my ($sec, $min, $hour, $mday, $mon, $year) = (localtime($time))[0..5];


bzw.

Code (perl): (dl )
my ($sec, $min, $hour, $mday, $mon, $year) = localtime($time);


reicht doch völlig...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Umrechnung von Unix Time mit Perl