DateBuilder EvenHourDateBefore Method Quartz.NET 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: 2.2.1.400
Syntax

public static DateTimeOffset EvenHourDateBefore(
	Nullable<DateTimeOffset> date
)

Parameters

date
Type: System Nullable DateTimeOffset 
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