Ceiling Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
Ceiling(TimeSpan, TimeSpan)
Returns a TimeSpan value that is rounded towards positive infinity.
public static TimeSpan Ceiling(this TimeSpan value, TimeSpan interval)
Parameters
valueTimeSpanA TimeSpan value to be rounded.
intervalTimeSpanThe TimeSpan value that specifies the rounding of
value.
Returns
Ceiling(TimeSpan, double, TimeUnit)
Returns a TimeSpan value that is rounded towards positive infinity.
public static TimeSpan Ceiling(this TimeSpan value, double interval, TimeUnit timeUnit)
Parameters
valueTimeSpanA TimeSpan value to be rounded.
intervaldoubleThe double value that in combination with
timeUnitspecifies the rounding ofvalue.timeUnitTimeUnitOne of the enumeration values that specifies the time unit of
interval.