Codeunit 4690 Recurrence Schedule

System Application, System.DateTime

Source AL, 189 lines

src/System Application/App/Recurrence Schedule/src/RecurrenceSchedule.Codeunit.allines 11 to 26 of 189, Copyright (c) Microsoft Corporation. MIT

codeunit 4690 "Recurrence Schedule"{    Access = Public;    InherentEntitlements = X;    InherentPermissions = X;    /// <summary>    /// Sets the earliest date to be returned from CalculateNextOccurrence.    /// The default MinDateTime is today at the start time set in recurrence.    /// </summary>    /// <param name="DateTime">The minimum datetime.</param>    /// See <see cref="Recurrence.CalculateNextOccurrence"/> to calculate next occurrence.    /// <example>    /// To start calculating recurrence from January 1st, 2000,    /// call SetMinDateTime(CREATEDATETIME(DMY2DATE(1, 1, 2000), 0T)).    /// </example>

All 189 lines

Public procedures 10 in 29

SetMinDateTime(DateTime: DateTime)17-29
CalculateNextOccurrence(RecurrenceID: Guid; LastOccurrence: DateTime): DateTime17-29
CreateDaily(StartTime: Time; StartDate: Date; EndDate: Date; DaysBetween: Integer): Guid17-29
CreateWeekly(StartTime: Time; StartDate: Date; EndDate: Date; WeeksBetween: Integer; Monday: Boolean; Tuesday: Boolean; Wednesday: Boolean; Thursday: Boolean; Friday: Boolean; Saturday: Boolean; Sunday: Boolean): Guid17-29
CreateMonthlyByDay(StartTime: Time; StartDate: Date; EndDate: Date; MonthsBetween: Integer; DayOfMonth: Integer): Guid17-29
CreateMonthlyByDayOfWeek(StartTime: Time; StartDate: Date; EndDate: Date; MonthsBetween: Integer; InWeek: Enum "Recurrence - Ordinal No."; DayOfWeek: Enum "Recurrence - Day of Week"): Guid17-29

All 10 procedures