|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-01-18 03:35 UTC] miroslav dot sulc at startnet dot cz
Function strftime("%V") does not return any value. Should return ISO number of week.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
I don't know the relation of the function to OS. But when I use this code: echo "%V: ".strftime("%V")."<br>\n"; echo "%U: ".strftime("%U")."<br>\n"; echo "%W: ".strftime("%W")."<br>\n"; ... the HTML result is: %V: %U: 02 %W: 03 ... so only %V does not work.I have tried all possible formatting characters ... echo "%a: ".strftime("%a")."\n"; echo "%A: ".strftime("%A")."\n"; echo "%b: ".strftime("%b")."\n"; echo "%B: ".strftime("%B")."\n"; echo "%c: ".strftime("%c")."\n"; echo "%C: ".strftime("%C")."\n"; echo "%d: ".strftime("%d")."\n"; echo "%D: ".strftime("%D")."\n"; echo "%e: ".strftime("%e")."\n"; echo "%h: ".strftime("%h")."\n"; echo "%H: ".strftime("%H")."\n"; echo "%I: ".strftime("%I")."\n"; echo "%j: ".strftime("%j")."\n"; echo "%m: ".strftime("%m")."\n"; echo "%M: ".strftime("%M")."\n"; echo "%n: ".strftime("%n")."\n"; echo "%p: ".strftime("%p")."\n"; echo "%r: ".strftime("%r")."\n"; echo "%R: ".strftime("%R")."\n"; echo "%S: ".strftime("%S")."\n"; echo "%t: ".strftime("%t")."\n"; echo "%T: ".strftime("%T")."\n"; echo "%u: ".strftime("%u")."\n"; echo "%U: ".strftime("%U")."\n"; echo "%V: ".strftime("%V")."\n"; echo "%W: ".strftime("%W")."\n"; echo "%w: ".strftime("%w")."\n"; echo "%x: ".strftime("%x")."\n"; echo "%X: ".strftime("%X")."\n"; echo "%y: ".strftime("%y")."\n"; echo "%Y: ".strftime("%Y")."\n"; echo "%Z: ".strftime("%Z")."\n"; ... and the result is ... %a: Fri %A: Friday %b: Jan %B: January %c: 01/19/01 08:38:12 %C: %d: 19 %D: %e: %h: %H: 08 %I: 08 %j: 019 %m: 01 %M: 38 %n: %p: AM %r: %R: %S: 12 %t: %T: %u: %U: 02 %V: %W: 03 %w: 5 %x: 01/19/01 %X: 08:38:12 %y: 01 %Y: 2001 %Z: St?edn? Evropa (b??n? ?as) I also updated OS information. I have Win98 SE (sorry for that). I have PHP running on Apache 1.3.14 as an Apache modul. I hope it will help.