php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3772 the function stat($file) don't return any date
Submitted: 2000-03-08 12:47 UTC Modified: 2000-03-08 14:14 UTC
From: fboudon at lemel dot fr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.14 OS: Win 95
Private report: No CVE-ID: None
 [2000-03-08 12:47 UTC] fboudon at lemel dot fr
the function stat($file) must return an array with some date in it like the last modification date. But it return  nine digit numbers.

I work on win95 with php3.0.14, apache 1.3.9 and Mysql 3.22.29

Thanks

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-08 14:14 UTC] joey at cvs dot php dot net
The date is given as a unix timestamp.
Try passing it as the timestamp arg to date...ie

$stat = stat("somefile.txt");
$mod_date = date("D-M-Y", $stat[9]);
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 21:00:01 2026 UTC