php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6894 strftime and 2000-10-29
Submitted: 2000-09-26 23:03 UTC Modified: 2000-10-30 11:17 UTC
From: martin dot m dot luethi at ascom dot ch Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.2 OS: win32 (windows2000)
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: martin dot m dot luethi at ascom dot ch
New email:
PHP Version: OS:

 

 [2000-09-26 23:03 UTC] martin dot m dot luethi at ascom dot ch
hi,

i use following php script:

$actualday = mktime(0,0,0);
for ($i = 0; $i < 60; $i++)
{
  echo strftime("%d.%m.%Y", $actualday)."<br>";
  $actualday += 60*60*24; //= 1 day
}

it just prints out a list with some dates, but why does the date 2000-10-29 (or 2001-10-28 ...) appears twice?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-30 11:17 UTC] stas@php.net
Again and again... Not every day has 60*60*24 seconds, when daylight settings are in effect. On the border of daylight settings day can have one hour more or one hour less.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 10:01:26 2024 UTC