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
On 06/28/2014 02:39 PM, Alan Gauld wrote:
On 28/06/14 18:59, Ken G. wrote:
datecode = "20140101" # from database on file
month = datecode[4:6]
day = datecode[6:8]
year = datecode[0:4]
use strptime() to parse dates, its much more reliable.
datecode = year + "-" + month + "-" + day
today