php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-15 20:29 UTC] jimw@php.net
daylight savings time.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC