simonw / til

Today I Learned

Home Page:https://til.simonwillison.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLite timestamps with floating point seconds

Moaneschien opened this issue · comments

as this seems the only way to respond:

select strftime('%FT%R:%f'); gives 2024-03-14T06:22:01.416

or whith 'subsec' unix time stamps in the table

with t(ue) as (select('subsec'))
select strftime('%FT%R:%f',  (select ue from t))

Cheers.