http://bugs.gpodder.org/show_bug.cgi?id=9





--- Comment #29 from Thomas Perl <[EMAIL PROTECTED]>  2008-07-15 16:54:10 ---
Hint: Instead of

+            s = []
+            s.append(time.strftime("%Y",d))
+            s.append(time.strftime("%m",d))
+            s.append(time.strftime("%d",d))
+            s.append("-") # free separator
+            s.append(time.strftime("%H",d))
+            s.append(time.strftime("%M",d))
+            s.append(time.strftime("%S",d))
+            s.append(".0Z") # indicates that a gmt time is stored
+            return ''.join(s) 

you can simply use:

s = time.strftime("%Y%m%d-%H%M%S.0Z", d)

This should be faster and easier to write/read :)


-- 
Configure bugmail: http://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to