SchedulingHelperGetFirstRunTime Method |
Returns date and time when the very first scheduling moment occurs based on the current date and time and the scheduling pattern.
Namespace: CMS.SchedulerAssembly: CMS.Scheduler (in CMS.Scheduler.dll) Version: 12.0.0
Syntax public static DateTime GetFirstRunTime(
TaskInterval taskInterval,
Nullable<DateTime> currentTime = null
)
Parameters
- taskInterval
- Type: CMS.SchedulerTaskInterval
Information about task repeating - currentTime (Optional)
- Type: SystemNullableDateTime
Date and time to resolve against, if null DateTime.Now is used
Return Value
Type:
DateTimeExceptions Remarks See Also