date conversion by neil watson - Thursday, 24 January 2008, 7:30 PM Number of replies: 3 Hi, looking at the last asccess date in MYSQL, how do I convert it to something more meaningful? What format is this? 1201016302 cheers, neil Average of ratings: - Permalink Reply In reply to neil watson Re: date conversion by Petr Kalis - Thursday, 24 January 2008, 7:44 PM HiIt's UNIX timestamp (total seconds from year 1970,forgot the details ).Try this (for sql queries) http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_from-unixtime(or userdate() in moodle code)PK Average of ratings: - Permalink Show parent Reply In reply to neil watson Re: date conversion by Joseph Rézeau - Thursday, 24 January 2008, 8:24 PM Hi Neil,Use Convert Unix timestamp to Readable Date/timeFor instance your 1201016302 unix timestamp date is = Tue, 22 Jan 2008 15:38:22 GMTJoseph Average of ratings: - Permalink Show parent Reply In reply to Joseph Rézeau Re: date conversion by john s - Sunday, 27 January 2008, 6:05 PM Thanks! Neil Average of ratings: - Permalink Show parent Reply
In reply to neil watson Re: date conversion by Petr Kalis - Thursday, 24 January 2008, 7:44 PM HiIt's UNIX timestamp (total seconds from year 1970,forgot the details ).Try this (for sql queries) http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_from-unixtime(or userdate() in moodle code)PK Average of ratings: - Permalink Show parent Reply
In reply to neil watson Re: date conversion by Joseph Rézeau - Thursday, 24 January 2008, 8:24 PM Hi Neil,Use Convert Unix timestamp to Readable Date/timeFor instance your 1201016302 unix timestamp date is = Tue, 22 Jan 2008 15:38:22 GMTJoseph Average of ratings: - Permalink Show parent Reply In reply to Joseph Rézeau Re: date conversion by john s - Sunday, 27 January 2008, 6:05 PM Thanks! Neil Average of ratings: - Permalink Show parent Reply
In reply to Joseph Rézeau Re: date conversion by john s - Sunday, 27 January 2008, 6:05 PM Thanks! Neil Average of ratings: - Permalink Show parent Reply