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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fboudon at lemel dot fr
New email:
PHP Version: OS:

 

 [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: Wed Oct 14 01:00:01 2026 UTC