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 changed timestamp in ms since the epoch, not seconds #6

Closed
simonw opened this issue Apr 9, 2023 · 2 comments
Closed

Store changed timestamp in ms since the epoch, not seconds #6

simonw opened this issue Apr 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Apr 9, 2023

I want more accurate timestamps, but I still want them to fit in an integer field.

@simonw simonw added the enhancement New feature or request label Apr 9, 2023
@simonw
Copy link
Owner Author

simonw commented Apr 9, 2023

Figured out the recipe for that here: #1 (comment)

It's a bit weird!

cast((julianday('now') - 2440587.5) * 86400.0 * 1000 as integer)

@simonw simonw changed the title Store changed timestamp in Unix ms, not s Store changed timestamp in ms since the epoch, not seconds Apr 9, 2023
@simonw simonw closed this as completed in 1ecfe51 Apr 9, 2023
simonw added a commit that referenced this issue Apr 9, 2023
simonw added a commit to simonw/til that referenced this issue Apr 9, 2023
@simonw
Copy link
Owner Author

simonw commented Apr 9, 2023

simonw added a commit that referenced this issue Apr 9, 2023
Refs #2, #3, #5, #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant