Re: [PHP-DEV] Date Support

2004-08-03 Thread Sara Golemon
> Also, I'd always wished that PHP would have support for dates after 32 bit > (2037)... > Funny my Athlon64 reports dates just fine up until 12/31/2147483647 (I blame glibc for not going clear out to 0x7FFF -- silly signed ints...) -Sara -- PHP Internals - PHP Runtime Development M

Re: [PHP-DEV] Date Support

2004-08-03 Thread Marcus Boerger
t;> the operators. >> >> >> >> Also, I'd always wished that PHP would have support for dates after 32 > bit >> >> (2037)... when do you think Pecl's Date would get into PHP? >> >> >> >> Jevon >> >> >> >

Re: [PHP-DEV] Date Support

2004-08-03 Thread John Lim
; (2037)... when do you think Pecl's Date would get into PHP? > >> > >> Jevon > >> > >> - Original Message - > >> From: "Jason Garber" <[EMAIL PROTECTED]> > >> To: <[EMAIL PROTECTED]> > >> Sent: Tuesday, Augu

Re: [PHP-DEV] Date Support

2004-08-03 Thread Marcus Boerger
>> Jevon >> >> - Original Message - >> From: "Jason Garber" <[EMAIL PROTECTED]> >> To: <[EMAIL PROTECTED]> >> Sent: Tuesday, August 03, 2004 2:36 PM >> Subject: [PHP-DEV] Date Support >> >> >> > Hello int

Re: [PHP-DEV] Date Support

2004-08-03 Thread John Lim
- > From: "Jason Garber" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 03, 2004 2:36 PM > Subject: [PHP-DEV] Date Support > > > > Hello internals, > > > > Not to take away from the wonderful and lively "GOTO"

Re: [PHP-DEV] Date Support

2004-08-03 Thread Derick Rethans
On Tue, 3 Aug 2004, Jevon Wright wrote: > I always wished that PHP had VB's set of operators on dates/times... (and > also in SQL): year(), month(), date(), time_serial(), and the like. Yes, you > can do it with date("...", $x); but then it's just awkward to remember all > the operators. Good poi

Re: [PHP-DEV] Date Support

2004-08-03 Thread Derick Rethans
On Mon, 2 Aug 2004, George Schlossnagle wrote: > > On Aug 2, 2004, at 10:36 PM, Jason Garber wrote: > > > Hello internals, > > > > Not to take away from the wonderful and lively "GOTO" discussion, > > but... I've got a couple simple questions. > > What's insufficient in strtotime() and strfti

Re: [PHP-DEV] Date Support

2004-08-03 Thread Derick Rethans
On Mon, 2 Aug 2004, Jason Garber wrote: > Hello internals, > > Not to take away from the wonderful and lively "GOTO" discussion, > but... I've got a couple simple questions. > > 1. Is there a particular reason that PHP does not have a really good > set of functions for dealing with true d

RE: [PHP-DEV] Date Support

2004-08-03 Thread Joseph Lee
http://pear.php.net/package/Date/docs/1.4.2/ -Original Message- From: Jason Garber [mailto:[EMAIL PROTECTED] Sent: 03 August 2004 04:08 To: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Date Support Hello Wez, I must be missing something... I went to the link and couldn't fin

Re: [PHP-DEV] Date Support

2004-08-02 Thread Jevon Wright
HP would have support for dates after 32 bit (2037)... when do you think Pecl's Date would get into PHP? Jevon - Original Message - From: "Jason Garber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 03, 2004 2:36 PM Subject: [PHP-DEV] Date

Re: [PHP-DEV] Date Support

2004-08-02 Thread Wez Furlong
Urgh, blame PEAR for that ;-) There is a PECL date extension that you can obtain from our CVS (see http://www.php.net/anoncvs.php): cvs -d :pserver:[EMAIL PROTECTED]:/repository co pecl/date cd pecl/date phpize ./configure make install [ add date.so to php.ini ] --Wez. On Mon, 2 Aug 2004 23:07:4

Re: [PHP-DEV] Date Support

2004-08-02 Thread Robert Amos
On Mon, 2 Aug 2004 23:08:17 -0400, Jason Garber <[EMAIL PROTECTED]> wrote: > Hello George, > > Because they both operate on an integer timestamp... > > two things: > SELECT CURDATE() + INTERVAL 7 MONTH; > echo strtotime("7/12/1900"); > > Timestamps are fine for things that are happe

Re: [PHP-DEV] Date Support

2004-08-02 Thread Jason Garber
Hello George, Because they both operate on an integer timestamp... two things: SELECT CURDATE() + INTERVAL 7 MONTH; echo strtotime("7/12/1900"); Timestamps are fine for things that are happening within a very limited range of dates. How do you add a given number of months to a d

Re: [PHP-DEV] Date Support

2004-08-02 Thread Jason Garber
Hello Wez, I must be missing something... I went to the link and couldn't find any documentation. I downloaded it and all the .tgz contained were a couple of .php scripts? -- Best regards, Jasonmailto:[EMAIL PROTECTED] Monday, August 2, 2004, 10:41:09 PM, you wrot

Re: [PHP-DEV] Date Support

2004-08-02 Thread Wez Furlong
http://pecl.php.net/package-info.php?package=Date It's not in the core because it is still relatively young. Maybe in a future release... --Wez. On Mon, 2 Aug 2004 22:36:14 -0400, Jason Garber <[EMAIL PROTECTED]> wrote: > Hello internals, > > Not to take away from the wonderful and lively "GO

Re: [PHP-DEV] Date Support

2004-08-02 Thread George Schlossnagle
On Aug 2, 2004, at 10:36 PM, Jason Garber wrote: Hello internals, Not to take away from the wonderful and lively "GOTO" discussion, but... I've got a couple simple questions. What's insufficient in strtotime() and strftime()? George -- PHP Internals - PHP Runtime Development Mailing List To un

[PHP-DEV] Date Support

2004-08-02 Thread Jason Garber
Hello internals, Not to take away from the wonderful and lively "GOTO" discussion, but... I've got a couple simple questions. 1. Is there a particular reason that PHP does not have a really good set of functions for dealing with true date and time types (i.e. not timestamps)? 2. I t