php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64532 Documentation doesn't say what date time format is returned
Submitted: 2013-03-27 11:03 UTC Modified: 2013-03-27 12:21 UTC
From: copong at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: copong at gmail dot com
New email:
PHP Version: OS:

 

 [2013-03-27 11:03 UTC] copong at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.filemtime#refsect1-
function.filemtime-description
---

It returns a UNIX timestamp. Documentation should reflect this - how do I know it 
doesn't return a DateTime object, for example?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-27 12:21 UTC] salathe@php.net
-Status: Open +Status: Not a bug
 [2013-03-27 12:21 UTC] salathe@php.net
The page already states:

    The time is returned as a Unix timestamp, which is suitable for the date() 
function.

And the function prototype at the top of the page says:

    int filemtime ( string $filename )

That should be information enough to know it doesn't return a DateTime object.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC