<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

kCura.Utility.CronSchedule.CrontabSchedule

public class CrontabSchedule
Crontab implementation for use with statistics event handlers.

A time-based job scheduler in Unix-like computer operating systems.

People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like downloading files from the Internet and downloading email at regular intervals.[1] The origin of the name cron is from the Greek word for time, chronos.

public static CrontabSchedule Parse(string expression)

Parses a CrontabSchedule from a raw string.

public static ValueOrError<CrontabSchedule> TryParse(string expression)

Attempts to parse a CrontabSchedule from a raw string.

Gets the next time at which this schedule should next execute.

public DateTime GetNextOccurrence(DateTime baseTime, DateTime endTime)

Gets the next time within a range at which this schedule should next execute.

Enumerates all the occurrences of this schedule starting with a base time and up to an end time limit. This method uses deferred execution such that the occurrences are only calculated as they are enumerated.