Skip to content

Question(not issue): Readme.md regarding the max year#44

Description

@jays306

README.md mentioned this below.

  • Won't run out of space till the year 10895 AD.

Isn't it approximately 10889 AD 馃挱 ? Just out of curiosity, how 10895 AD was calculated.
I used code below.

max_ulid_timestamp = ("1" * 48).to_i(2)
time = Time.at(max_ulid_timestamp / 1000.0).utc
The result is 10889-08-02 05:31:50 2683/4096 UTC

I also see https://github.com/ulid/spec/blob/master/README.md mentions 'AD 10899'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions