Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types: How does Time3339 differ from time.Time? #45

Open
dmitshur opened this issue Jun 23, 2019 · 0 comments
Open

types: How does Time3339 differ from time.Time? #45

dmitshur opened this issue Jun 23, 2019 · 0 comments

Comments

@dmitshur
Copy link
Contributor

dmitshur commented Jun 23, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant