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
This should return another Utc. This will be needed to support loops over time, such as:
letmut current = Utc::new(/*...*/);let end = Utc::new(/*...*/);while current < end {/* do stuff */
current += std::time::Duration(1,0)// Or current += 1*SECOND}
Eventually also include in this PR some short cuts such as:
Note that these short cut will need to support multiplications with floats and unsigned integers to make it useful. This may require some custom implementation such as hifitime::StdDuration::from_hours() or hifitime::StdDuration::from_seconds(10). I am pretty sure I cannot just use hifitime::Duration since it's re-exported.
The text was updated successfully, but these errors were encountered:
This should return another
Utc
. This will be needed to support loops over time, such as:Eventually also include in this PR some short cuts such as:
Note that these short cut will need to support multiplications with floats and unsigned integers to make it useful. This may require some custom implementation such as
hifitime::StdDuration::from_hours()
orhifitime::StdDuration::from_seconds(10)
. I am pretty sure I cannot just usehifitime::Duration
since it's re-exported.The text was updated successfully, but these errors were encountered: