Duration.-
-that
Group: Operators
Aliases: subtract duration
Documentation
Subtract the specified amount of time from this duration.
Arguments
that
: The duration to subtract fromself
.
Examples
Substract 30 minutes from a duration of 6 hours.
import Standard.Base.Data.Time.Duration
example_subtract = (Duration.new hours=6) - (Duration.new minutes=30)