On 08/24/2015 11:35 PM, Peter Wetz wrote: > > hm, I get this error though: > ... > File "/var/lib/mailman/Mailman/Archiver/HyperArch.py", line 1072, in > write_index_entry > 'date': time.strftime("%d %b %Y %H:%M:%S", time.localtime(article.date)), > TypeError: a float is required > > "a float is required" > this implies that "article.date" is not a float in my case. maybe it > needs to be converted to a float explicitly? > any other suggestions?
No. Converting it to float is the appropriate thing. e.g. > 'date': time.strftime("%d %b %Y %H:%M:%S", time.localtime(float(article.date))), The issue is that while article.date is a *nix timestamp, it is a string rather than an int or float. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org