Skip to end of metadata
Go to start of metadata

This feature is new in Ignition version 7.8.0
Click here to check out the other new features

Description

Returns a specific holiday.

Syntax

  • Parameters

String holidayName - The name of the holiday to return. Case-sensitive

  • Returns

HolidayModel - The holiday, or None if not found.

  • Scope

All

Code Examples
Code Snippet
# 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()
Output
Labor Day 2015-09-07 00:00:00.0 False