Skip to main content
This class is used to represent a year schedule. A year can be composed of several WeekSchedules.

Constructors

YearSchedule()

This class is used to represent a year schedule. A year can be composed of several WeekSchedules.

Methods

addTimeSpan(DateTime,TimeSpan)

This function adds a time span to the current year schedule.
Returns: CRMScript.Global.DateTime

addWS(WeekSchedule,Integer,Integer)

This function adds a week schedule to the year schedule.
Returns: CRMScript.Global.Void

getDifference(DateTime,DateTime)

Gets difference between two given times. The function returns a timespan. Counting will skip inactive periodes, defined by the different weekschedules that may be crossed.
Parameters: Returns: CRMScript.Native.TimeSpan