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

Use type_formatters to format datetime (if specified) #3

Merged
merged 1 commit into from
Apr 18, 2016

Conversation

jlstevens
Copy link
Collaborator

This PR gives a bit more flexibility when formatting dates by allowing a format string to be set as the formatter for datetime.datetime objects. For instance you can now do:

import datetime
hv.Dimension.type_formatters[datetime.datetime] = "%m/%y %Hh"

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 54.693% when pulling a822871 on date_type_formatter into 81b0191 on master.

@jlstevens
Copy link
Collaborator Author

I don't intend to make any more changes to this PR. It can be merged whenever you are ready.

@philippjfr
Copy link
Collaborator

Looks fine to me. Merging.

@philippjfr philippjfr merged commit 1f81686 into master Apr 18, 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
3 participants