Provides methods for working with calendars.
Property |
Type
|
Access |
Description |
Id |
Numeric |
Read
|
Internal calendar’s identifier |
Name |
Character |
Read
|
Calendar’s name |
Description |
Character |
Read
|
Calendar’s description |
Evaluates if a date corresponds to a holiday according to the calendar.
IsHoliday (date): Boolean
|
Name |
Type |
Movement |
Description |
1 |
date |
Date |
Input |
Date to be evaluated |
Evaluates if a date corresponds to a weekend according to the calendar.
IsWeekend (date): Boolean
|
Name |
Type |
Movement |
Description |
1 |
Date |
Date |
Input |
Date to be evaluated |
Evaluates if a date corresponds to a working day according to the calendar.
IsWorkDay (date): Boolean
|
Name |
Type |
Movement |
Description |
1 |
Date |
Date |
Input |
Date to be evaluated |
Returns the date of the first working day for a sepcified month and year according to the calendar.
FirstWorkdayInMonth (month, year): Date
|
Name |
Type |
Movement |
Description |
1 |
month |
Numeric |
Input |
Month |
2 |
year |
Numeric |
Input |
Year
|
Returns the date of the last working day for a sepcified month and year according to the calendar.
LastWorkdayInMonth (month, year): Date
|
Name |
Type |
Movement |
Description |
1 |
month |
Numeric |
Input |
Month |
2 |
year |
Numeric |
Input |
Year
|
Returns the date of the next working day from a given start date according to the calendar.
NextWorkday (startDate): Date
|
Name |
Type |
Movement |
Description |
1 |
startDate |
Date |
Input |
Initial date |
Returns the date resulting from adding a number of working days to a given initial date.
Workday (startDate, days): Date
|
Name |
Type |
Movement |
Description |
1 |
startDate |
Date |
Input |
Initial date |
2 |
days |
Numeric |
Input |
Amount of working days |
It returns the date and time resulting from adding a number of working seconds to a given initial date and time.
Worktime (startTime, seconds): DateTime
|
Name |
Type |
Movement |
Description |
1 |
startTime |
DateTime |
Input |
Initial Date time |
2 |
seconds |
Numeric |
Input |
Amount of working seconds |
Return the duration, in working seconds, of a given date according to the calendar.
WorkdayDuration (date): Numeric
|
Name |
Type |
Movement |
Description |
1 |
date |
Date |
Input |
Date of the journal day |
Returns work days between two dates.
WorkdaysBetweenDates (startDate, endDate): Numeric
|
Name |
Type |
Movement |
Description |
1 |
startDate |
Date |
Input |
Initial date range |
2 |
endDate |
Date |
Input |
Final date range |