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

time: Pivot year used when parsing two digit years is not documented. #36549

takeyourhatoff opened this issue Jan 14, 2020 · 2 comments


Copy link

@takeyourhatoff takeyourhatoff commented Jan 14, 2020

What version of Go are you using (go version)?

$ go version
go version go1.13.3 darwin/amd64

Does this issue reproduce with the latest release?


What did you do?

Try to parse dates with two digit years.

What did you expect to see?

Documentation regarding the pivot year used when parsing two digit years.

What did you see instead?

No mention of the pivot year used.

Copy link

@ianlancetaylor ianlancetaylor commented Jan 14, 2020

The pivot year is 1969 (two-digit-year >= 69 => add 1900, < 69 => add 2000). I agree that this should be documented somewhere, perhaps in the doc comment for time.Parse.

Copy link

@gopherbot gopherbot commented Jan 15, 2020

Change mentions this issue: Update documentation(#36549)

@gopherbot gopherbot closed this in 8453844 Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.