By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

Converting a time string to a more readable date, time

P: n/a
I have a python time string which has the following value:

1225137896

The above corresponds to 2008/10/27 16:04:56

What can I use to convert 1225137896 to a more readable date, time
format?
Oct 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Thierry Lam wrote:
I have a python time string which has the following value:
1225137896
The above corresponds to 2008/10/27 16:04:56
What can I use to convert 1225137896 to a more readable date, time
format?
(1) Read Smart Questions [you could at least have told us where this
number came from.]
(2) give system name and version and python version info.
And finally (hoping it doesn't reward you too much for skipping steps):
Look in the time module documents for localtime, gmtime, and strftime.

--Scott David Daniels
Sc***********@Acm.Org

Oct 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.