php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33521 support for "@timestamp"-syntax in strtotime()
Submitted: 2005-06-30 15:14 UTC Modified: 2005-06-30 16:34 UTC
From: messju at lammfellpuschen dot de Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5CVS-2005-06-30 (dev) OS: any
Private report: No CVE-ID: None
 [2005-06-30 15:14 UTC] messju at lammfellpuschen dot de
Description:
------------
According to it's documentation, strtotime() parses dates 
in the "GNU Date Input Formats syntax".

http://www.gnu.org/software/tar/manual/html_chapter/tar_7.html#SEC117
Describes the format "@number" to specify a timestamp as a datestring. It would be great if php's strtotime() also supported this kind of dateformat.

This would to help avoid ambiguity-problems when passing return values of time() to strtotime(). like here:
http://bugs.php.net/bug.php?id=30215



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-30 16:34 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Already implemented in PHP 5.1CVS too.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 07:01:32 2024 UTC