TheCommonUtils..::..RoundDateToMinuteInterval Method
Rounds a date value to a given minute interval.
Namespace:
nsCDEngine.BaseClassesAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public static DateTimeOffset RoundDateToMinuteInterval( DateTimeOffset time, int minuteInterval, TheCommonUtils..::..RoundingDirection direction )
Public Shared Function RoundDateToMinuteInterval ( _ time As DateTimeOffset, _ minuteInterval As Integer, _ direction As TheCommonUtils..::..RoundingDirection _ ) As DateTimeOffset
public: static DateTimeOffset^ RoundDateToMinuteInterval( DateTimeOffset^ time, int^ minuteInterval, TheCommonUtils..::..RoundingDirection^ direction )
Parameters
- time
- Type: DateTimeOffset
Original time value.
- minuteInterval
- Type: Int32
Minute to round up or down to.
- direction
- Type: nsCDEngine.BaseClasses..::..TheCommonUtils..::..RoundingDirection
Round up, down or nearest.