View Single Post
Old 05-19-2011, 12:07 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Date functions: Use the as_utc parameter to have them return UTC dates

I don't know for sure, but I highly doubt that Python handles BC dates very well. The default strftime function that comes with python doesn't even handle dates before 1900 (this is a limitation inherited from strftime in C libraries).

Why not use a interface action plugin. That will add an icon to the calibre toolbar. Your friends click on it, a dialog pops up they enter the data and the plugin does the rest.

Slightly more complex to create this kind of plugin, though.
kovidgoyal is offline   Reply With Quote