Skip to content

Commit 950e40e

Browse files
committed
fix typo
1 parent b6353ae commit 950e40e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uuid.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ func TimestampFromV7(u UUID) (Timestamp, error) {
147147
(int64(u[4]) << 8) |
148148
int64(u[5])
149149

150-
// UUIDv7 stores MS since 1979-01-01 00:00:00, but the Timestamp
150+
// UUIDv7 stores MS since 1970-01-01 00:00:00, but the Timestamp
151151
// type stores 100-nanosecond increments since 1582-10-15 00:00:00.
152152
// This conversion multiplies ms by 10,000 to get 100-ns chunks and adds
153-
// the difference between October 1582 and January 1979.
153+
// the difference between October 1582 and January 1970.
154154
tsNanos := epochStart + (t * _100nsPerMillisecond)
155155
return Timestamp(tsNanos), nil
156156
}

0 commit comments

Comments
 (0)