Re: Translating MySQL timestamp to datetime
From: Geoff Berrow (blthecat_at_ckdog.co.uk)
Date: 04/22/04
- Next message: Justin Koivisto: "Re: Free site translations"
- Previous message: Joshua Beall: "Translating MySQL timestamp to datetime"
- In reply to: Joshua Beall: "Translating MySQL timestamp to datetime"
- Next in thread: Joshua Beall: "Re: Translating MySQL timestamp to datetime"
- Reply: Joshua Beall: "Re: Translating MySQL timestamp to datetime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Apr 2004 14:20:09 +0100
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...
-- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/
- Next message: Justin Koivisto: "Re: Free site translations"
- Previous message: Joshua Beall: "Translating MySQL timestamp to datetime"
- In reply to: Joshua Beall: "Translating MySQL timestamp to datetime"
- Next in thread: Joshua Beall: "Re: Translating MySQL timestamp to datetime"
- Reply: Joshua Beall: "Re: Translating MySQL timestamp to datetime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|