php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #11878 __DATE__ /__TIME__ constants
Submitted: 2001-07-04 09:51 UTC Modified: 2002-04-27 15:38 UTC
From: hparissi at laposte dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: any
Private report: No CVE-ID: None
 [2001-07-04 09:51 UTC] hparissi at laposte dot net
Could it be possible to add __DATE__ and __TIME__ 
constants ?
They could containt the last modified date/time of the 
calling script.

Thank you for your great job!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-04 17:07 UTC] cmv@php.net
What's wrong with using filemtime(__FILE__) ?

You can also use fileatime() and filectime().
 [2002-04-27 15:38 UTC] jimw@php.net
or getlastmod().
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 22:01:32 2024 UTC