nidhoegg
19-09-2007, 15:04
Halo, ich stehe gerade auf dem Schlauch, was die Funktion localtime betrifft.
($sec,$min, $hour, $mon, $year) = localtime();
$year += 1900;
print "\n--------------------\n";
print "$sec, $min, $hour, $mon, $year";
ergibt bei mir die Ausgabe: 35,15,19, 1908
Was läuft da falsch? Laut manpage ist das Feld für $year "the number of years since 1900, not just the last two digits of the year". Aber es stimmt ja weder das eine noch das andere? Hab ich was wichtiges übersehen?
Viele Grüße,
nidhoegg
($sec,$min, $hour, $mon, $year) = localtime();
$year += 1900;
print "\n--------------------\n";
print "$sec, $min, $hour, $mon, $year";
ergibt bei mir die Ausgabe: 35,15,19, 1908
Was läuft da falsch? Laut manpage ist das Feld für $year "the number of years since 1900, not just the last two digits of the year". Aber es stimmt ja weder das eine noch das andere? Hab ich was wichtiges übersehen?
Viele Grüße,
nidhoegg