new format character in date function

php.internals

Bányai Zsolt

22 years ago
Hi, I usually have to work with dates and i miss a date format character wich returns year of the week. I'm not a C developer, i could just play with it in datetime.c, but i send the patch file, please check this and if you are interest in it, use in the future. About the working: in case 01/01/2003 returns 2003 in case 31/12/2003 returns 2004 the format character is X. thanks zsolt banyai [bazso] kirowski rt. hungary

Sara Golemon

22 years ago
I havn't looked at your patch yet, but does this differ in any way from strftime('%G') ? -Sara "Bányai Zsolt" <zsolt.banyai@kirowski.com> wrote in message news:1072186947.3443.13.camel@bazso...

Bányai Zsolt

22 years ago
The funcionality is the same. But i think it could have place in the date() function... or no? :) Sara Golemon wrote:

Derick Rethans

22 years ago
On Mon, 29 Dec 2003, Banyai Zsolt wrote:
> The funcionality is the same. But i think it could have place in the > date() function... or no? :)
If it's the same why add a new modifier? Derick

Bányai Zsolt

22 years ago
1. the G modifier is already used in date() function 2. i'm really a beginner in this list, so please don't cross-question me :)) zsolt 2003-12-29, h keltezéssel 11:55-kor Derick Rethans ezt írta:

jason davidson

22 years ago
Derick Rethans wrote:
>On Mon, 29 Dec 2003, Banyai Zsolt wrote: > > > >>The funcionality is the same. But i think it could have place in the >>date() function... or no? :) >> >> > >If it's the same why add a new modifier? > >Derick > > >
I agree date should have it, week of year is a common format for a date function to return, i was surprised to see it wasnt in there. Jason

Sara Golemon

22 years ago
> >>The funcionality is the same. But i think it could have place in the > >>date() function... or no? :) > I agree date should have it, week of year is a common format for a date > function to return, i was surprised to see it wasnt in there. >
I didn't mean to imply it didn't belong in date() simply because it already existed in strftime(), I just wanted to make sure I understood what was being asked for. +1 -Sara

Nagy Balázs

22 years ago
On Dec 29, 2003, at 11:55, Derick Rethans wrote:
> If it's the same why add a new modifier?
To invert the question: why date() exists? Life should be more simpler. Besides, you have to set C LANG whether some texty date representation comes.
-- jul