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

time format

P: n/a
I have a ctime() object that when I convert to string returns this
string:
"Tue May 15 12:27:11 2007"

Now I need to convert it in the following (string) format:
"Tue, 15 May 2007 10:25:40 GMT"

How can I format a ctime() object?
Can anyone give me (or lead me to) an example of a solution to my
problem?
Thanks

May 15 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 15 May, 12:29, Alchemist <alextab...@gmail.comwrote:
>
How can I format a ctime() object?
Can anyone give me (or lead me to) an example of a solution to my
problem?
Use time.strftime. See...

http://docs.python.org/lib/module-time.html#tex2html122

Paul

May 15 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.