On 06/28/2014 04:35 PM, Mark Lawrence wrote:
On 28/06/2014 19:39, Alan Gauld wrote:
On 28/06/14 18:59, Ken G. wrote:

BTW You say you get it from "database on file".
Now if that is a real database such as SQLite you will find functions
there to convert it to julian at source... which is easier than reading
it as a string, parsing it, and then converting it back to a date again...


Well spotted :) Ken G. please see https://docs.python.org/3/library/sqlite3.html#default-adapters-and-converters
Thank you. Will take a look at it.

Ken

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to