How to convert timelaston to a date
In the character_ table is a column timelaston with a number which is the number of seconds since Jan 1, 1970. I was wondering how to convert this to a date, and finally found a way:
Code:
SELECT DATE_ADD('1970-01-01', INTERVAL character_.timelaston/86400 DAY) AS 'DateLastPlayed' FROM character_; |
This shows the date and time:
Code:
select name, FROM_UNIXTIME(timelaston) as 'DateLastPlayed' from character_; |
Thanks, I was hoping someone would post that.
|
All times are GMT -4. The time now is 10:58 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.