Forum Moderators: coopster

Message Too Old, No Replies

Dates past 1970

1960....wha?

         

gettopreacherman

9:01 pm on Mar 10, 2005 (gmt 0)

10+ Year Member



Aight, so i have a gmmketime() for a date and parse

04011980 into April 1, 1980...works great, I so happy...now as well all know, the next level of insanity ensues...what about dates older than Jan 1, 1970?

04011954 shows as December 31, 1969...AAAAAAAARRRRRRGGGGGGGGGGG....anyone know a way around this?

badone

10:51 am on Mar 11, 2005 (gmt 0)

10+ Year Member



Go here;
[au.php.net...]

Do a search for MakeTime()

Alternatively, look at adodb time library.

Cheers,
BAD

gettopreacherman

2:41 pm on Mar 11, 2005 (gmt 0)

10+ Year Member



I have looked at this site many times...it all links back to the fact that the mktime() and gmmktime() are all based on the date of Jan 1, 1970. Anything older isn't recognized, as that is the Unix start time thingy mabopper...I am sure there is a way around this with inventive manipulation, but I haven't found one yet.

Timotheos

3:06 pm on Mar 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So is gmmketime() your own function or a typo?

I'm thinking the first user contributed note under strtotime() [php.net] might be what you're after all though it doesn't work with the way your date is formatted in the first place.

Tim

outrun

3:12 pm on Mar 11, 2005 (gmt 0)

10+ Year Member



If you go to the php manual that badone suggested, and look look at the coments, it shows some working work arounds.