469,286 Members | 2,522 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,286 developers. It's quick & easy.

time format

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
1 1222
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.

Similar topics

4 posts views Thread by Gord | last post: by
6 posts views Thread by Kenneth | last post: by
6 posts views Thread by Rene | last post: by
10 posts views Thread by scorpion53061 | last post: by
7 posts views Thread by Jerome | last post: by
18 posts views Thread by Dirk Hagemann | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.