sonyflake
sonyflake copied to clipboard
What should be the StartTime for sonyflake initialization to ensure that the parsed ID corresponds to the UTC creation time?
Any StartTime is OK. You can get the UTC time for a Sonyflake ID: st.StartTime.Add(ElapsedTime(id)).UTC()