Closed simonw closed 1 year ago
Figured out the recipe for that here: https://github.com/simonw/sqlite-history/issues/1#issuecomment-1501013498
It's a bit weird!
cast((julianday('now') - 2440587.5) * 86400.0 * 1000 as integer)
Got a TIL out of this: https://til.simonwillison.net/sqlite/unix-timestamp-milliseconds-sqlite
I want more accurate timestamps, but I still want them to fit in an integer field.