Floor Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
Floor(TimeSpan, TimeSpan)
Returns a TimeSpan value that is rounded towards negative infinity.
public static TimeSpan Floor(this TimeSpan value, TimeSpan interval)
Parameters
valueTimeSpanA TimeSpan value to be rounded.
intervalTimeSpanThe TimeSpan value that specifies the rounding of
value.
Returns
Floor(TimeSpan, double, TimeUnit)
Returns a TimeSpan value that is rounded towards negative infinity.
public static TimeSpan Floor(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.