Re: [PHP4BETA] filemtime : Help Needed!!!!!!!!!!!!!!!
| From: | garyb at fxt dot com | Date: | Thu, 16 Dec 1999 04:02:26 +0000 |
| Subject: | Re: [PHP4BETA] filemtime : Help Needed!!!!!!!!!!!!!!! | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7990@lists.php.net to get a copy of this message | ||
> hi
> I had executed this instruction
> $file_m = filemtime($fileinput);
> the $file_m should give me the modified time of the $fileinput.
> this is what i get = 945314651
> How do i extract the day, month, year and timestamp
Welcome to Unix time. 945314651 is the no. of seconds since midnight, Jan 1, 1970 (I think GMT, but
I'm not sure).
Use date ("h:i:s A, M d, Y",$file_m);
(for example)
Attachment: [text/enriched]
Attachment: [text/enriched]