-
Notifications
You must be signed in to change notification settings - Fork 304
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
How to custom format a time range #656
Comments
Hi, sorry for the delay... I'm showing |
no problem on the delay, thanks for responding. Of course I could use just hours, just minutes or just seconds. But in a real world application, for example a countdown timer would look silly displaying something like |
Gotcha... well in that regard all I can say is that the DateRange object itself is maybe not as mature as it potentially could be, and I'll definitely take this use case into consideration for the next iteration. For now you I'd say you can achieve what you want with some app-side logic and I'll see what I can do about taking this use case into consideration for an upcoming version... but to answer your immediate question yes for now you're going to have to roll this yourself... |
Date.range('00:00', '04:30').seconds()
this is fine but I want to understand it in hours and mintues, or even in days, hours, minutes and seconds!Date.range('00:00', '04:30').format('%Hh %Mm')
produces aDate.range(...).format is not a function
error.The text was updated successfully, but these errors were encountered: