note 71018 added to function.strtotime

From: Date: Wed, 08 Nov 2006 15:33:34 +0000
Subject: note 71018 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-119512@lists.php.net to get a copy of this message
similary, PrevYear and NextYear will be: function actionViewPrevYear() { $iMonthTmp = intval(date("m", $this->dateView)); while (intval(date("m", strtotime("-1 year", $this->dateView))) != $iMonthTmp) { $this->dateView -= _SecondsInDay; } $this->dateView = strtotime("-1 year", $this->dateView); } function actionViewNextYear() { while (intval(date("m", strtotime("+1 year", $this->dateView))) > (intval(date("m", $this->dateView)))) { $this->dateView -= _SecondsInDay; } $this->dateView = strtotime("+1 year", $this->dateView); } keywords: dateadd datesub add_date sub_date adddate subdate addmonth submonth addyear subyear mirko P.S.: define("_SecondsInDay", 86400); ---- Server IP: 193.27.201.10 (proxied: 193.27.201.10 1.0 www1.shellkonto.se:3128 (squid/2.5.STABLE4)) Probable Submitter: 194.237.142.21 ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit -- https://master.php.net/note/edit/71018 Del: integrated -- https://master.php.net/note/delete/71018/integrated Del: useless -- https://master.php.net/note/delete/71018/useless Del: bad code -- https://master.php.net/note/delete/71018/bad+code Del: spam -- https://master.php.net/note/delete/71018/spam Del: non-english -- https://master.php.net/note/delete/71018/non-english Del: in docs -- https://master.php.net/note/delete/71018/in+docs Del: other reasons-- https://master.php.net/note/delete/71018 Reject -- https://master.php.net/note/reject/71018 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119512) next »