Robert Maurency wrote:
OK Thanks for that. Clears things up a bit for me.

Would that also explain why my php format date script is returing:

02:14 19 Jan 2038

all the time?

Is there a neat php way to format a value like this 20030320085056 into
something readable for us mortals?

There are lots of ways to do it.


Have a look around sites like phpclasses.org and phpbuilder, and
also in the PEAR library, and see if you can find some classes for
date/time manipulations.  There are all sorts of routines to convert
datetime strings / timestamp strings / unix timestamp values to
and from human readable dates of all formats.

It's worth doing a bit of dumpster diving to look at the code other
folks have written to do this even if it doesn't do exactly what you
want it to do, because it will give you some good ideas.

--
Del

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to