Click or drag to resize

TimeUtilsRoundDateToMinuteInterval Method (DateTime, Int32, RoundingDirection)

Rounds a date value to a given minute interval

Namespace:  Koden.Utils
Assembly:  Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntax
public static DateTime RoundDateToMinuteInterval(
	DateTime time,
	int minuteInterval,
	RoundingDirection direction
)

Parameters

time
Type: SystemDateTime
Original time value
minuteInterval
Type: SystemInt32
Number of minutes to round up or down to
direction
Type: Koden.Utils.ModelsRoundingDirection
The direction.

Return Value

Type: DateTime

[Missing <returns> documentation for "M:Koden.Utils.TimeUtils.RoundDateToMinuteInterval(System.DateTime,System.Int32,Koden.Utils.Models.RoundingDirection)"]

See Also