note 105773 added to datetime.formats.relative

From: Date: Tue, 13 Sep 2011 21:51:12 +0000
Subject: note 105773 added to datetime.formats.relative
Groups: php.notes 
Request: Send a blank email to php-notes+get-183160@lists.php.net to get a copy of this message
Simply removing 'of' for versions of PhP that don't support it may cause some issues, since it does not reset the date to the beginning of the month. I have found that replacing 'of' with '1st' works well in this situation, even though it makes the relative date format somewhat illegible. For example: "Fourth Thursday of November" becomes "Fourth Thursday 1st November" ---- Server IP: 69.147.83.197 Probable Submitter: 151.138.254.21 ---- Manual Page -- http://www.php.net/manual/en/datetime.formats.relative.php Edit -- https://master.php.net/note/edit/105773 Del: integrated -- https://master.php.net/note/delete/105773/integrated Del: useless -- https://master.php.net/note/delete/105773/useless Del: bad code -- https://master.php.net/note/delete/105773/bad+code Del: spam -- https://master.php.net/note/delete/105773/spam Del: non-english -- https://master.php.net/note/delete/105773/non-english Del: in docs -- https://master.php.net/note/delete/105773/in+docs Del: other reasons-- https://master.php.net/note/delete/105773 Reject -- https://master.php.net/note/reject/105773 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183160) next »