Click or drag to resize

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
)

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: DateTime
Return a type of DateTime
See Also