Doc #64532 [Opn->Nab]: Documentation doesn't say what date time format is returned
Edit report at https://bugs.php.net/bug.php?id=64532&edit=1
ID: 64532
Updated by: salathe@php.net
Reported by: copong at gmail dot com
Summary: Documentation doesn't say what date time format is
returned
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2013-03-27 11:03:29] 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?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64532&edit=1
Thread (2 messages)