php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8776 strftime("%V")
Submitted: 2001-01-18 03:35 UTC Modified: 2001-01-22 22:27 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: miroslav dot sulc at startnet dot cz Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.4pl1 OS: Windows 98 SE
Private report: No CVE-ID: None
 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-18 06:16 UTC] sniper@php.net
This works for me in Linux just fine. (latest CVS) 
Maybe this is yet another 'Windows only' bug?

--Jani
 [2001-01-18 06:55 UTC] miroslav dot sulc at startnet dot cz
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.
 [2001-01-19 02:48 UTC] miroslav dot sulc at startnet dot cz
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.
 [2001-01-22 22:27 UTC] jimw@php.net
php just uses the underlying c library's strftime. bug microsoft. :)

(noted in the documentation.)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 05:01:32 2024 UTC