php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11024 fileatime do not return date of file but date of system
Submitted: 2001-05-22 13:16 UTC Modified: 2001-05-22 22:44 UTC
From: lan at v-r dot be Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.5 OS: AIX 4.3
Private report: No CVE-ID: None
 [2001-05-22 13:16 UTC] lan at v-r dot be
I have a strange thing

there is my code :

print "[".date("d/m/Y",
        fileatime("/usr/log/010521101953.82"))."-".
          date("H:i:s",
        filectime("/usr/log/010521101953.82"))."]".
      "010521101953.82";  

Result :

[22/05/2001-10:20:09] 010521101953.82  

And when I run ls -l /usr/log/010521101953.82, I see

-rw-rw-rw-   1 usr  staff       1806 May 21 10:20 /usr/log/010521101953.82

The time is good, but not the date.






Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-22 22:44 UTC] sniper@php.net
Use filemtime() and only that.
(RTFM)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC