Re: Translating MySQL timestamp to datetime
From: Joshua Beall (jbeall_at_donotspam.remove.me.heraldic.us)
Date: 04/22/04
- Next message: Jon Kraft: "Re: Translating MySQL timestamp to datetime"
- Previous message: Justin Koivisto: "Re: Free site translations"
- In reply to: Geoff Berrow: "Re: Translating MySQL timestamp to datetime"
- Next in thread: Jon Kraft: "Re: Translating MySQL timestamp to datetime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Apr 2004 13:37:05 GMT
"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:hehf80tvedssi6vpt7k9qij4hl0j2o2og3@4ax.com...
> I noticed that Message-ID: <MxPhc.44294$L31.36599@nwrddc01.gnilink.net>
> from Joshua Beall contained the following:
>
> >I already tried date("Y-m-d H:i:s",strtotime("20040422090941")), and had
no
> >luck. strtotime cannot handle that format.
>
> Try converting it to a UNIX timestamp in the query e.g
> SELECT UNIX_TIMESTAMP(mysql_timestamp)) AS unixtimestamp...
Is this function an ANSI standard? Or a MySQL specific extension?
I try to avoid the MySQL specific stuff. Not religiously, but when
alternatives exist, I opt for the standards-compliant way of doing it.
- Next message: Jon Kraft: "Re: Translating MySQL timestamp to datetime"
- Previous message: Justin Koivisto: "Re: Free site translations"
- In reply to: Geoff Berrow: "Re: Translating MySQL timestamp to datetime"
- Next in thread: Jon Kraft: "Re: Translating MySQL timestamp to datetime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|