DateBuilder EvenHourDateAfterNow Method Quartz.NET API Documentation
Returns a date that is rounded to the next even hour after the current time.

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

public static DateTimeOffset EvenHourDateAfterNow()

Return Value

Type: DateTimeOffset
the new rounded date
Remarks

For example a current time of 08:13:54 would result in a date with the time of 09:00:00. If the date's time is in the 23rd hour, the date's 'day' will be promoted, and the time will be set to 00:00:00.
See Also