Skip to content

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

Description

@mincequi

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions