![]() |
Time Issues?
So im running a timestamp with my mysql and im using
PHP Code:
Quote:
Thanks, Randy |
That is the Unix timestamp of the current time and date. It is the amount of seconds since midnight of January the 1st, 1970. It is pretty standard in the programming world because it takes everything into consideration, leap years included.
It contains all the data you require for the time and date, with a precision of a second. If we're to convert that Unix timestamp you supplied then we would convert it using the date function, in the specified format. All the available formats are described on its PHP.net page.Just from that data you supplied I can tell you that is 02:36:48 using the following line of code: Unfortunately, I am not sure on the date because I've not requested that information, but the timestamp still contains that data. To see the time and the date for that timestamp I can do the following to tell you what it is: I now know that timestamp is the 10th of June, 2009 at 02:36:48. This is also timezone specific because to me there are still the same amount of seconds since 1970, as there are to you, because the changes in the timezone are relative. At this very second the timestamp is 1244598646. In Google we can see that is the equivalent to a very precise 39.4397936 years. Edit: Sorry, I probably misread your post as I am ever so tired. In MySQL you can do the following: sql Code:
|
Great and simple explanation, Wildhoney! Even thou you answered the wrong question ;)
Yours, Runar |
He did answer it differently then i had expected but he gave me info on how to use that time format and just how put it correctly.
|
He did answer it differently then i had expected but he gave me info on how to use that time format and just output it correctly.
|
|
Quote:
date('d-m-y H:i:s'); |
| All times are GMT. The time now is 04:51 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0