Class NCronTabParser
Implements ICronTabParser using the NCrontab library
Inheritance
object
Namespace: Umbraco.Cms.Core.Configuration
Assembly: Umbraco.Infrastructure.dll
Syntax
public class NCronTabParser : ICronTabParser
Methods
View SourceGetNextOccurrence(string, DateTime)
Returns the next occurence for the given chrontab expression from the given time.
Declaration
public DateTime GetNextOccurrence(string cronTab, DateTime time)
Parameters
| Type | Name | Description |
|---|---|---|
| string | cronTab | The chrontab expression to parse. |
| DateTime | time | The date and time to start from. |
Returns
| Type | Description |
|---|---|
| DateTime | The System.DateTime representing the next occurence. |
IsValidCronTab(string)
Returns a value indicating whether a given chrontab expression is valid.
Declaration
public bool IsValidCronTab(string cronTab)
Parameters
| Type | Name | Description |
|---|---|---|
| string | cronTab | The chrontab expression to parse. |
Returns
| Type | Description |
|---|---|
| bool | The bool result. |