Skip to content

Add max_units option to stringify, so that the maximum unit is specified#8

Open
igitur wants to merge 5 commits into
domchristie:masterfrom
igitur:stringify_max_units
Open

Add max_units option to stringify, so that the maximum unit is specified#8
igitur wants to merge 5 commits into
domchristie:masterfrom
igitur:stringify_max_units

Conversation

@igitur
Copy link
Copy Markdown

@igitur igitur commented Jun 21, 2014

Allows the parser to assume a certain unit if no units were specified in the input string. For example, in my case, I want to display 48h still in hours and not as 2 days. It's just a project requirement.

@domchristie
Copy link
Copy Markdown
Owner

Thanks for this.

I’d love it if there were some test coverage for this feature.

Thanks again

@igitur
Copy link
Copy Markdown
Author

igitur commented Jun 27, 2014

Yes, I didn't even notice the tests. Will add them for both my PRs.

@domchristie
Copy link
Copy Markdown
Owner

Great, thanks

@igitur
Copy link
Copy Markdown
Author

igitur commented Sep 25, 2014

Test cases added.

@igitur
Copy link
Copy Markdown
Author

igitur commented Nov 19, 2014

ping

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