Thread (stat($file))[10] => YYYY.MM.DD HH:MM:SS: Wie???? (10 answers)
Opened by pktm at 2005-08-14 18:55

pktm
 2005-08-14 19:37
#57189 #57189
User since
2003-08-07
2921 Artikel
BenutzerIn
[Homepage]
user image
[quote=jan,14.08.2005, 17:22]lass doch mysql das umwandeln und vergleichen erledigen:
Quote
FROM_UNIXTIME(unix_timestamp) , FROM_UNIXTIME(unix_timestamp,format)

Returns a representation of the unix_timestamp argument as a value in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS format, depending on whether the function is used in a string or numeric context.

mysql> SELECT FROM_UNIXTIME(875996580);
       -> '1997-10-04 22:23:00'


http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html[/quote]
Der Vergleich findet leider außerhalb des SQL-Statements statt.
Habe jetzt aber das Datum von der Abfrage in das überführt, das ich auch bekomme wenn ich localtime(time()) benutze.

@EB: wie bekomme ich denn das Erstellungsdatum der Datei heraus?

Grüße, pktm
http://www.intergastro-service.de (mein erstes CMS :) )

View full thread (stat($file))[10] => YYYY.MM.DD HH:MM:SS: Wie????