Thread Timestamp erstellen mit localtime(time) ?
(4 answers)
Opened by crojay at 2011-04-04 16:08 Code (perl): (dl
)
1 2 3 4 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $mon++; $year += 1900; $yday++; my $zeitstempel = sprintf("%04d-%02d-%02d_%02d:%02d:%02d_%d", $year, $mon, $mday, $hour, $min, $sec, $isdst); print $zeitstempel; HTH Grüße payx |