note 59819 added to function.strftime

From: Date: Fri, 16 Dec 2005 15:04:00 +0000
Subject: note 59819 added to function.strftime
Groups: php.notes 
Request: Send a blank email to php-notes+get-100309@lists.php.net to get a copy of this message
I built a calendar that worked beautifully on linux for several years, and it would always start the first day of the month as 0 on windows. This works on linux, fails on windows: $dstart=strftime("%u",strtotime("$year-$mun-01")); I got the following working on the windows machine: (after looking here in the notes) $firstday_ts = mktime(1,0,0,$mun,1,$year); $dstart = date("w", $firstday_ts); Thought I'd share. ---- Manual Page -- http://www.php.net/manual/en/function.strftime.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59819 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59819&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59819&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59819&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59819&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59819&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59819&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59819&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59819&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100309) next »