Skip to main content
Version: 8.1

system.user.getHolidays

This function is used in Python Scripting.

Description

Returns a sequence of all of the holidays available.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.user.getHolidays()

Parameters

Nothing

Returns

List - A list of holidays, as HolidayModel objects. Add holidays using the system.user.addHoliday function.

Scope

Gateway, Vision Client, Perspective Session

Code Examples

Example #1
# This example prints information about every holiday.
holidays = system.user.getHolidays()
if len(holidays) == 0:
print "No holidays defined"
for holiday in holidays:
print holiday.getName(), holiday.getDate(), holiday.isRepeatAnnually()