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

Add timestamp for date only (days since 1970-01-01, years since 1970). #296

Open
mincequi opened this issue Feb 14, 2021 · 0 comments
Open

Comments

@mincequi
Copy link

timestamp 16 stores the number of days that have elapsed since 1970-01-01 00:00:00 UTC
in an 16-bit unsigned integer:
+--------+--------+-----------------+-----------------+
| 0xd5 | -1 | days in 16-bit unsigned int |
+--------+--------+-----------------+-----------------+

timestamp 8 stores the number of years that have elapsed since 1970-01-01 00:00:00 UTC
in an 8-bit unsigned integer:
+--------+--------+-----------------------------------+
| 0xd4 | -1 | years in 8-bit unsigned int |
+--------+--------+-----------------------------------+

What do you think?

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