note 102423 added to function.strftime
| From: | ciprianmp at yahoo dot com | Date: | Sun, 13 Feb 2011 22:26:20 +0000 |
| Subject: | note 102423 added to function.strftime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-176956@lists.php.net to get a copy of this message | ||
This worked for me to distinguish between windows and linux, for stripping leading zeros from
days/months in the short formats (like for Czech):
stristr(PHP_OS,"win") ? "%#d.%#m.%Y" : "%-d.%-m.%Y"
----
Server IP: 69.147.83.197
Probable Submitter: 188.26.139.222
----
Manual Page -- http://www.php.net/manual/en/function.strftime.php
Edit -- https://master.php.net/note/edit/102423
Del: integrated -- https://master.php.net/note/delete/102423/integrated
Del: useless -- https://master.php.net/note/delete/102423/useless
Del: bad code -- https://master.php.net/note/delete/102423/bad+code
Del: spam -- https://master.php.net/note/delete/102423/spam
Del: non-english -- https://master.php.net/note/delete/102423/non-english
Del: in docs -- https://master.php.net/note/delete/102423/in+docs
Del: other reasons-- https://master.php.net/note/delete/102423
Reject -- https://master.php.net/note/reject/102423
Search -- https://master.php.net/manage/user-notes.php