note 59732 added to function.date

From: Date: Wed, 14 Dec 2005 13:43:32 +0000
Subject: note 59732 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-100130@lists.php.net to get a copy of this message
here a little two functions for rewind the month in for example calendar I couldn't find it anywhere, maybe sombody need it peace :) function next_month($m, $y) { if ($m%12==0) { $mi_n=$m-11; $ye_n=$y+01; } else { $mi_n=$m+1; $ye_n=$y; } return $m; return $y; } function previous_month($m,$y) { if (($m-1)%12==0) { $mi_p=$m+11; $ye_p=$y-01; } else { $mi_p=$m-1; $ye_p=$y; } return $m; return $y; } ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59732 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59732&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59732&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59732&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59732&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59732&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59732&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59732&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59732&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100130) next »