[thelist] setlocale on meo

Lachlan Cannon tiedefenderdelta6 at yahoo.com
Sun Mar 10 19:12:00 CST 2002


--- "Warden, Matt" <mwarden at mattwarden.com> wrote:
> I don't believe setlocale() is enabled on meo.
>
> Either way, I think what you want is the date() function:
>
> http://www.php.net/manual/en/function.date.php
>
> The first argument is a format string, so you can pull
> out whichever parts
> of the date you want in any order/format you want.

Actually, I know how to format the date. The trouble is,
there's one place where I'll use dates just to compare the
time files were modified, so the timezone doesn'tmatter
there, but I'm writing a weblog script, and since I'm in
AEDST I want the dates for the blog in AEDST format. I
could just find the time difference between the server and
local time, but then I have to adjust it for daylight
savings shifts here, and there - andI won't even know when
daylight savings there goes on. That's why I'd prefer a
solution that's already right there.

Lach

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/



More information about the thelist mailing list