-
Notifications
You must be signed in to change notification settings - Fork 207
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
lubridate hms function doesn't Roll hrs, min and secs correctly when added. #417
Comments
There is no automatic normalization of period components in lubridate. Components could be whatever and should give same result when used with date-times. While normalization of hms would make sense, how would you you normalize periods that contain days months and years? |
I believe the principle should be the same. In hms we need roll minutes and seconds and normalise hours accordingly Do you agree to this? |
I don't understand this.
What's your use case more concretely? Why do you need hms to roll up? If it does roll, when do you propose it to stop rolling, hours or days? |
The case is , If i have a csv file that contain two columns of hours (hh:mm:ss) and i wish to know the total hours; a result such as this I am not concerned with So I now have begun to think if its at all possible in R or perhaps I am too inclined to think in a csv(excel) way of storing hours. Hope this explains my use case and the thought that i present. |
We should probably have |
I have added I am still thinking if I should make that argument TRUE by default. |
Lubridate hms function
hms("34:45:12") + hms("05:16:48")
; expected out is"40H 02M 00S"
However, the result looks like this
"39H 61M 60S"
The text was updated successfully, but these errors were encountered: