MySQL Forums
Forum List  »  Knowledge Base

Re: Convert Long value into Date
Posted by: Paul Svirin
Date: October 06, 2009 04:08AM

Here is the example:

mysql> select FROM_UNIXTIME( unix_timestamp( now() ) );
+------------------------------------------+
| FROM_UNIXTIME( unix_timestamp( now() ) ) |
+------------------------------------------+
| 2009-10-06 13:07:31 |
+------------------------------------------+


unix_timestamp returns long.

----------
StarWind Software developer ( http://www.starwindsoftware.com )

Options: ReplyQuote


Subject
Views
Written By
Posted
5271
September 23, 2009 01:29AM
Re: Convert Long value into Date
3457
October 06, 2009 04:08AM
2904
October 06, 2009 11:51PM
6664
October 08, 2009 05:08PM
4165
October 08, 2009 10:57PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.