[PHP] mktime() problem

2002-11-11 Thread Michael Mayer
Hi there, does anybody know, if the behaviour of mktime() on RedHat Linux 7.2 is fixed in one of the latest PHP versions? Since RH 7.3 it is not possible anymore, to get a negative integer from mktime(), that means you can't get a UNIX timestamp for a date before 1.1.1970I experienced this

[PHP] mktime() problem

2002-02-05 Thread toni baker
How can I make sure the user enters a date in format mm/dd/ and the date must be between the year 1600 and 2038. The script below meets the criterion above, except mktime() or strtotime() does not validate year 1600 dates. Any suggestions? Thanks $dateparts = explode('/', $Date); $month

[PHP] mktime() problem

2001-10-23 Thread james . fairbairn
Hi All, This is my first post to this list so forgive me if this has been covered a million times before I'm running 4.0.6 on a Solaris 8 box. The output given by echo mktime(0,0,0,1,1,1970); is 3600. Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write this we are

Re: [PHP] mktime() problem

2001-10-23 Thread DL Neil
I'm running 4.0.6 on a Solaris 8 box. The output given by echo mktime(0,0,0,1,1,1970); is 3600. Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write this we are in daylight savings (GMT+1). Would this make a difference? (I have already tried echo

RE: [PHP] mktime() problem

2001-10-23 Thread james . fairbairn
Thanks, I'll use gmmktime() from now on! James -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 13:54 To: Fairbairn,J,James,IVLH4 C; php-general Subject: Re: [PHP] mktime() problem I'm running 4.0.6 on a Solaris 8 box. The output given by echo mktime

RE: [PHP] mktime() problem

2001-10-23 Thread james . fairbairn
Oh dear, I still get -3600 when I do echo gmmktime(0,0,0,1,1,1970); Why? James -Original Message- From: Fairbairn,J,James,IVLH4 C Sent: 23 October 2001 13:57 To: [EMAIL PROTECTED] Subject: RE: [PHP] mktime() problem Thanks, I'll use gmmktime() from now on! James -Original

Re: [PHP] mktime() problem

2001-10-23 Thread DL Neil
-3600 when I do echo gmmktime(0,0,0,1,1,1970); Why? James -Original Message- From: Fairbairn,J,James,IVLH4 C Sent: 23 October 2001 13:57 To: [EMAIL PROTECTED] Subject: RE: [PHP] mktime() problem Thanks, I'll use gmmktime() from now on! James -Original Message- From