Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store time.Time in a format compatible with sqlite's date/time funcs #8

Open
thehowl opened this issue Jan 27, 2025 · 0 comments
Open

Comments

@thehowl
Copy link
Collaborator

thehowl commented Jan 27, 2025

https://www.sqlite.org/lang_datefunc.html

SQLite does not have a dedicated date/time datatype. Instead, date and time values can stored as any of the following:
ISO-8601: A text string that is one of the ISO 8601 date/time values shown in items 1 through 10 below. Example: '2025-05-29 14:16:00'
Julian day number The number of days including fractional days since -4713-11-24 12:00:00 Example: 2460825.09444444
Unix timestamp The number of seconds including fractional seconds since 1970-01-01 00:00:00 Example: 1748528160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant