note 33209 added to function.strftime
| From: | krausedammann at NOSPAMweb dot de | Date: | Thu, 19 Jun 2003 10:45:44 +0000 |
| Subject: | note 33209 added to function.strftime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50630@lists.php.net to get a copy of this message | ||
Hello everybody outthere using PHP ;-).
The examples
print "12/23/2004 - %V,%G,%Y = " .
strftime("%V,%G,%Y",strtotime("12/23/2004")) . "\n";
// Ausgabe: 12/31/2004 - %V,%G,%Y = 53,2004,2004
print "12/31/2004 - %V,%G,%Y = " .
strftime("%V,%G,%Y",strtotime("12/31/2004")) . "\n";
// Ausgabe: 1/2/2005 - %V,%G,%Y = 53,2004,2005
print "1/2/2005 - %V,%G,%Y = " .
strftime("%V,%G,%Y",strtotime("1/2/2005")) . "\n";
// Ausgabe: 1/3/2005 - %V,%G,%Y = 1,2005,2005
print "1/3/2005 - %V,%G,%Y = " .
strftime("%V,%G,%Y",strtotime("1/3/2005")) . "\n";
don't work on my web server with PHP 4.2.3. My server output is something like
12/23/2004 - %V,%G,%Y = ,,2004 12/31/2004 - %V,%G,%Y = ,,2004 1/2/2005 - %V,%G,%Y = ,,2005 1/3/2005
- %V,%G,%Y = ,,2005
Have fun,
Jan-Christian Krause
----
Manual Page -- http://www.php.net/manual/en/function.strftime.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33209
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33209&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33209&report=yes