Date/Time format

Asked by Nate Walker

Can I propose using this:

153 from time import strftime
154 report_str += str(strftime("%a, %d %b %Y %H:%M")) + "\n"

Instead of:
153 report_str += time.ctime() + "\n"

To allow for a nicer date format (I mean, who really needs to know about seconds?)

Question information

Language:
English Edit question
Status:
Solved
For:
Weather wallpaper Edit question
Assignee:
No assignee Edit question
Solved by:
Raúl González Duque
Solved:
Last query:
Last reply:
Revision history for this message
Best Raúl González Duque (zootropo) said :
#1

It's prettier, yeah.
Thanks for the suggestion Nate :-)

Revision history for this message
Nate Walker (kiwinewt) said :
#2

No problems. I really want to get into the open-source community and I thought this project would be a nice place to start, given that it is currently so young :)

Revision history for this message
Nate Walker (kiwinewt) said :
#3

Thanks Raúl González Duque, that solved my question.