Thread Datumsformat ändern
(7 answers)
Opened by user123 at 2010-10-12 08:18
das tr/// kannst du dir sparen. die methode dmy() nimmt einen parameter entgegen. also statt
machst du Code (perl): (dl
)
my $date = $dt->dmy("."); ich würde statt des substr dann aber eher sprintf nehmen, also: Code (perl): (dl
)
my $date = sprintf "%02d.%02d.", $dt->day, $dt->month; Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |