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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lan at v-r dot be
New email:
PHP Version: OS:

 

 [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

Pull Requests

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 Oct 31 22:01:27 2024 UTC