[Tutor] Finding numeric day in a year...

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Jun 28 22:35:47 CEST 2014


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

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com




More information about the Tutor mailing list