You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, that would be great if hms could implement comparaison with character like Date or nanotime, right now it does not throw and the result is wrong
as_hms("16:00:00") <"16:30:00"
[1] FALSE
That would also be great if we could use operators - and +
# class is lost
as_hms("16:00:00") -1Timedifferenceof57599secs# class is lost
as_hms("16:00:00") - as_hms("00:00:01")
Timedifferenceof57599secs# I'd expect this result
as_hms(as_hms("16:00:00") -1)
15:59:59
The text was updated successfully, but these errors were encountered:
Unfortunately, the current design makes it very difficult to preserve the "hms" class after arithmetic operations, again you need to coerce with as_hms(). Original issue: #18.
Hello, I can definitely make it explicit but truth is I do not really want to. I guess you're afraid people start silently to use comparison on 1000000s of items, maybe we can check for right end side to be of lenghth 1 ?
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Hello, that would be great if hms could implement comparaison with character like
Date
ornanotime
, right now it does not throw and the result is wrongThat would also be great if we could use operators - and +
The text was updated successfully, but these errors were encountered: