Get the latest tech news

Show HN: High-precision date/time in SQLite


A rich set of functions for working with date, time and durations.

Alternatively, you can store time values as a NUMBER (64-bit integer) of seconds (milli-, micro- or nanoseconds) since the Unix epoch (1970-01-01 00:00:00 UTC). Unix-like operating systems often record time as a 32-bit number of seconds, but since time_to_unix returns a 64-bit value, it is valid for billions of years into the past or future. Interactive examples in this post are powered by codapi — an open source tool I'm building.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Time

Time

Photo of precision date

precision date

Related news:

News photo

Trump campaign hack-and-leak appears like a rerun of 2016. This time, media outlets are responding differently

News photo

Apple Studio Display Gets All-Time Low Discounts on Amazon, Available From $1,299.99

News photo

Anker’s new power station can charge faster using two USB-C adapters at the same time