View Single Post
Old 04-17-2023, 03:06 PM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,467
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
What kind of time formatting uses 101 as an epoch anyways? Google is failing me...
Some value must be chosen for undefined. That value must work in sqlite, in python (2 & 3), and in other libraries, which means that NULL, None, and empty don't work.

Many years ago (probably > 15) the choice was made to use 1 Jan 0101 as the undefined date. It is up to the user to check. Somewhere lost in time that check disappeared from save-to-disk template handing, which BTW although it looks a bit like SFM it is *not* using the calibre template language. Again, historical. There are a few cases like this that predate the template language or require processing where the template processor doesn't exist.

I often run across code I wrote before templates existed. And before a consolodated metadata structure existed. And before consistent custom columns existed. And ...
chaley is offline   Reply With Quote