Table of Contents

Class CronExpression

Namespace
Millrace.Scheduling
Assembly
Millrace.dll

A five-field cron expression (minute hour day-of-month month day-of-week) in the vixie-cron dialect: lists (1,15), ranges (8-18), steps (/5, 8-18/2, 5/15), JANDEC and SUNSAT names, and 0 or 7 for Sunday. When both day fields are restricted (neither is exactly ), the day matches when either field matches — the classic vixie OR rule; the restriction flags only choose OR-versus-AND, the field masks always apply (so */2 in a day field steps as written). Evaluation is UTC-only at minute resolution; time zones are a later phase.

public sealed class CronExpression
Inheritance
CronExpression
Inherited Members

Methods

GetNextOccurrence(DateTimeOffset)

The next occurrence strictly after after, in UTC at minute resolution, or null when no occurrence exists within five years (e.g. February 30).

Parse(string)

Parses a five-field expression: minute, hour, day-of-month, month, day-of-week.

ToString()

The expression exactly as it was given, not a normalized rendering.

TryParse(string, out CronExpression?)

Parse(string) without the exception; false and null on anything malformed.