18 May
2001
18 May
'01
20:36
On Fre, 18 Mai 2001, Stefan Onken wrote:
Wie kann ich einen Unix Timestamp wieder in ein richtiges Datum umrechnen ?
==== ~/bin/epochtodate ==== #!/usr/bin/perl -w use POSIX qw(strftime); if ($ARGV[0]) { $secs=$ARGV[0]; } else { $secs=time(); } $date = strftime "%a %d.%m.%Y %H:%M:%S %Z", localtime($secs); print "$date\n"; ==== -dnh -- Perl is a mess. But that's okay, because the problem space is also a mess. -- Larry Wall