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