Y
Hacker News
new
|
ask
|
show
|
jobs
by
sheept
17 days ago
Why not store them as integers? Representing dates is a UI responsibility
2 comments
nullisland00
17 days ago
Forcing all dates to be cast to a single time zone (UTC) complicates workflows when you’re on the other side of the globe. Many DBs have added a timestamp offset type for this to keep the data in the offset it occurred in.
link
panzi
17 days ago
I also want to be able to debug the database in an SQL console with nice looking date-times.
link
thaumasiotes
17 days ago
You can already do that:
https://sqlite.org/lang_datefunc.html
link
masfuerte
17 days ago
Just to state the obvious, you can create a view which uses these functions to make your integer date/times readable, and then debugging is easy.
link