|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15061 strtotime
Submitted: 2002-01-15 19:54 UTC Modified: 2002-01-15 20:29 UTC
From: info at altamiranet dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.0.5 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: info at altamiranet dot com
New email:
PHP Version: OS:


 [2002-01-15 19:54 UTC] info at altamiranet dot com
result from following operation is 23 hours instead of expected 24:

echo ((StrToTime ('02-04-01') - StrToTime ('02-03-31')) / 3600)

everything seems to work, for example, in this case:

echo ((StrToTime ('02-04-02') - StrToTime ('02-04-01')) / 3600)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-15 20:29 UTC]
daylight savings time.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 11:01:30 2024 UTC