Skip to content

Commit 06a2c2d

Browse files
authored
fix: UTCUnixTimestamp is used for seconds, actually (#47)
AFAICT, this comment is wrong, but all the code is right. Several places this is used describe it as seconds, and the `exp` field in a delegation uses seconds. It's just the comment here at the type declaration that says milliseconds.
2 parents 5b4326a + ac09401 commit 06a2c2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ucan/ucan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type Link = ipld.Link
4343
// It MUST have format `${number}.${number}.${number}`
4444
type Version = string
4545

46-
// UTCUnixTimestamp is a timestamp in milliseconds since the Unix epoch.
46+
// UTCUnixTimestamp is a timestamp in seconds since the Unix epoch.
4747
type UTCUnixTimestamp = int
4848

4949
// https://github.com/ucan-wg/spec/#324-nonce

0 commit comments

Comments
 (0)