Skip to main content
Version: 7.9

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.getHoliday(holidayName)

Parameters

TypeParameterDescription
StringholidayNameThe name of the holiday to return. Case-sensitive

Returns

List - The holiday, or None if not found.

Scope

Gateway, Designer, Client

Code Examples

Example #1
# This example will get a holiday and print info about it
holidayName = "Labor Day"
holiday = system.user.getHoliday(holidayName)
if holiday == None:
print holidayName, "not found"
else:
print holiday.getName(), holiday.getDate(), holiday.isRepeatAnually()
Example #1 Output
Labor Day 2015-09-07 00:00:00.0 False