|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-05 13:01 UTC] scottmacvicar at ntlworld dot com
[2004-05-05 15:56 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 11 00:00:02 2025 UTC |
Description: ------------ strftime prints incorret (decreased by one) month, when directed to print only month. Reproduce code: --------------- <? $month=12; $year=2004; $day=15; $dat=strftime("%B",mktime(0,0,0,$month,0,0)); echo $dat,"<br>"; $dat1=strftime("%Y %B %d ",mktime(0,0,0,$month,$day,$year)); echo $dat1,"<br>"; ?> Expected result: ---------------- Result is self explaining: November 2004 December 15