Skip to content

Add quarter (%q) format directive. #58

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

Closed
wants to merge 1 commit into from
Closed

Conversation

jheer
Copy link
Contributor

@jheer jheer commented Mar 10, 2019

Adds support for a quarter (%q) directive to the format and utcFormat methods. This directive is not affected by the locale definition.

  • Jan-Mar -> 1
  • Apr-Jun -> 2
  • Jul-Sep -> 3
  • Oct-Dec -> 4

Closes #56.

@mbostock
Copy link
Member

This looks good, but we’ll need to implement parsing support also.

@mbostock
Copy link
Member

Merged as f7e8e14 and adding parsing in cd830bc.

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

Successfully merging this pull request may close these issues.

Add support for quarter?
2 participants