Maria GDK 4.6.0.140
Documentation of managed code in release branch
Loading...
Searching...
No Matches
Cronos.CronExpression Class Reference

Provides a parser and scheduler for cron expressions. More...

Inheritance diagram for Cronos.CronExpression:

Public Member Functions

DateTime? GetNextOccurrence (DateTime fromUtc, bool inclusive=false)
 Calculates next occurrence starting with fromUtc (optionally inclusive ) in UTC time zone.
 
IEnumerable< DateTime > GetOccurrences (DateTime fromUtc, DateTime toUtc, bool fromInclusive=true, bool toInclusive=false)
 Returns the list of next occurrences within the given date/time range, including fromUtc and excluding toUtc by default, and UTC time zone. When none of the occurrences found, an empty list is returned.
 
DateTime? GetNextOccurrence (DateTime fromUtc, TimeZoneInfo zone, bool inclusive=false)
 Calculates next occurrence starting with fromUtc (optionally inclusive ) in given zone
 
IEnumerable< DateTime > GetOccurrences (DateTime fromUtc, DateTime toUtc, TimeZoneInfo zone, bool fromInclusive=true, bool toInclusive=false)
 Returns the list of next occurrences within the given date/time range, including fromUtc and excluding toUtc by default, and specified time zone. When none of the occurrences found, an empty list is returned.
 
DateTimeOffset? GetNextOccurrence (DateTimeOffset from, TimeZoneInfo zone, bool inclusive=false)
 Calculates next occurrence starting with from (optionally inclusive ) in given zone
 
IEnumerable< DateTimeOffset > GetOccurrences (DateTimeOffset from, DateTimeOffset to, TimeZoneInfo zone, bool fromInclusive=true, bool toInclusive=false)
 Returns the list of occurrences within the given date/time offset range, including from and excluding to by default. When none of the occurrences found, an empty list is returned.
 
override string ToString ()
 
bool Equals (CronExpression other)
 Determines whether the specified Object is equal to the current Object.
 
override bool Equals (object obj)
 Determines whether the specified System.Object is equal to this instance.
 
override int GetHashCode ()
 Returns a hash code for this instance.
 

Static Public Member Functions

static CronExpression Parse (string expression)
 
static unsafe CronExpression Parse (string expression, CronFormat format)
 
static bool operator== (CronExpression left, CronExpression right)
 Implements the operator ==.
 
static bool operator!= (CronExpression left, CronExpression right)
 Implements the operator !=.
 

Detailed Description

Provides a parser and scheduler for cron expressions.

Member Function Documentation

◆ Equals() [1/2]

bool Cronos.CronExpression.Equals ( CronExpression  other)
inline

Determines whether the specified Object is equal to the current Object.

Parameters
otherThe Object to compare with the current Object.
Returns
true if the specified Object is equal to the current Object; otherwise, false.

◆ Equals() [2/2]

override bool Cronos.CronExpression.Equals ( object  obj)

Determines whether the specified System.Object is equal to this instance.

Parameters
objThe System.Object to compare with this instance.
Returns
true if the specified System.Object is equal to this instance; otherwise, false.

◆ GetHashCode()

override int Cronos.CronExpression.GetHashCode ( )
inline

Returns a hash code for this instance.

Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

◆ Parse()

static CronExpression Cronos.CronExpression.Parse ( string  expression)
inlinestatic

summary> Constructs a new CronExpression based on the specified cron expression. It's supported expressions consisting of 5 or 6 fields: second (optional), minute, hour, day of month, month, day of week. See more: https://github.com/HangfireIO/Cronos


The documentation for this class was generated from the following file: