Re: file times and so on
| From: | Rasmus Lerdorf | Date: | Mon, 19 Jun 2000 06:59:15 +0000 |
| Subject: | Re: file times and so on | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2182@lists.php.net to get a copy of this message | ||
> when i'm using the filectime() function i get int that look like:
> 960410350
> how can i work with this int?
> i want for exemple to find out if this file whas created befor 24 hours.
That's a UNIX timestamp that you can feed to PHP's date() function as its
second argument. Or you can get the current timestamp from the
time() function and compare it to that. It represents the number of
seconds since 1970.
-Rasmus