Thread Timestamp erstellen mit localtime(time) ? (4 answers)
Opened by crojay at 2011-04-04 16:08

payx
 2011-04-04 16:28
#147371 #147371
User since
2006-05-04
564 Artikel
BenutzerIn

user image
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

View full thread Timestamp erstellen mit localtime(time) ?