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

Add format and parse token Y, so it actually works #2868

Closed
wants to merge 2 commits into from

Conversation

ichernev
Copy link
Contributor

@ichernev ichernev commented Jan 6, 2016

Fix #2859

@mattjohnsonpint mattjohnsonpint added this to the 2.11.1 milestone Jan 6, 2016
} else {
// force plus for longer years.
return ' ' y;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could just be return y < 1e4 ? y : ' ' y;

Also, do we need to always return a string, and do years between 0 and 999 need to be zero-padded to 4-digits? (not sure)

ichernev added a commit that referenced this pull request Jan 9, 2016
Add format and parse token Y, so it actually works
@ichernev
Copy link
Contributor Author

ichernev commented Jan 9, 2016

Merged in 74141ae

@ichernev ichernev closed this Jan 9, 2016
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

Successfully merging this pull request may close these issues.

2 participants