FormatTimeRound Method | |
Round time up or down of Min step.
Examples Example: pRoundMinStep = 15 minute and pDateTime = 4 minutes
when pRound is Up then is return value 15 minutes and
when pRound is Down is return value 0 minute
Namespace:
SOWIData.Helper
Assembly:
SOWIData.Helper (in SOWIData.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static DateTime TimeRound(
DateTime pDateTime,
int pRoundMinStep,
Rounds pRound
)
Public Shared Function TimeRound (
pDateTime As DateTime,
pRoundMinStep As Integer,
pRound As Rounds
) As DateTime
Parameters
- pDateTime
- Type: SystemDateTime
is an value of data type DateTime - pRoundMinStep
- Type: SystemInt32
minute value for rounding step - pRound
- Type: SOWIData.HelperRounds
is an value of enumeration Round (Up or Down)
Return Value
Type:
DateTimeReturn a type of DateTime
See Also