// Copyright (c) Umbraco. // See LICENSE for more details. namespace Umbraco.Cms.Core.Configuration; /// /// Defines the contract for that allows the parsing of chrontab expressions. /// public interface ICronTabParser { /// /// Returns a value indicating whether a given chrontab expression is valid. /// /// The chrontab expression to parse. /// The result. bool IsValidCronTab(string cronTab); /// /// Returns the next occurence for the given chrontab expression from the given time. /// /// The chrontab expression to parse. /// The date and time to start from. /// The representing the next occurence. DateTime GetNextOccurrence(string cronTab, DateTime time); }