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

Customisable hours_per_day for .humanize() #2737

Closed
freman opened this issue Nov 9, 2015 · 2 comments
Closed

Customisable hours_per_day for .humanize() #2737

freman opened this issue Nov 9, 2015 · 2 comments

Comments

@freman
Copy link

freman commented Nov 9, 2015

Hi there.

Someone naievely tossed moment.humanize calls all through our application which has resulted in some epic confusion.

it'd be super awesome to be able to define that a day is "8 hours" or "7.5 hours"

Not super urgent, just would be a nifty feature.

@gdurelle
Copy link

gdurelle commented Jul 8, 2016

+1
The 8 hours are a business day so yes, it would be super awesome.

@marwahaha
Copy link
Member

i don't think we will take a change like this.
But, you can set relative time thresholds to show things in hours instead of days.
https://momentjs.com/docs/#/durations/humanize/

Best of luck with your projects!

@marwahaha marwahaha changed the title Customisable day length for .humanize() Customisable hours_per_day for .humanize() May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants