3.1.0
This release includes new functionality (PR #31) to help consumers extract a
time.Time value out of a Version 1 UUID.
UUIDs have their own internal timestamp, which is a counter of 100ns increments
since the start of the Gregorian Calendar (00:00:00 UTC on 15 Oct, 1582). To
represent that a new Timestamp
type was added, with a Time()
method used to
convert the timestamp value to a time.Time
value.
To extract the timestamp from a Version 1 UUID, a new package
function (TimestampFromV1
) was added to extract a Timestamp
out of a UUID.
If it's not a V1 UUID it returns an error.
Big thanks to Ron Kuris (@rkuris) for this contribution!