sony / sonyflake

A distributed unique ID generator inspired by Twitter's Snowflake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What should be the StartTime for sonyflake initialization to ensure that the parsed ID corresponds to the UTC creation time?

moksh-samespace opened this issue · comments

Any StartTime is OK. You can get the UTC time for a Sonyflake ID:
st.StartTime.Add(ElapsedTime(id)).UTC()