DateBuilderEvenHourDateBefore Method

Quartz.NET 3.0 API Documentation
Returns a date that is rounded to the previous even hour below the given date.

Namespace:  Quartz
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
public static DateTimeOffset EvenHourDateBefore(
	Nullable<DateTimeOffset> date
)

Parameters

date
Type: SystemNullableDateTimeOffset
the Date to round, if the current time will be used

Return Value

Type: DateTimeOffset
the new rounded date
Remarks

For example an input date with a time of 08:13:54 would result in a date with the time of 08:00:00.
See Also

Reference