go4org / go4

go4 hosts the go4.org packages.

Home Page:https://go4.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

types: How does Time3339 differ from time.Time?

dmitshur opened this issue · comments

types.Time3339 documentation describes it as:

Time3339 is a time.Time which encodes to and from JSON as an RFC 3339 time in UTC.

How does it differ from time.Time, which also encodes to and from JSON as RFC 3339 time with sub-second precision added if present. Is the only difference that types.Time3339 always converts to UTC timezone? Or is there more?