Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Scripting_function



Panel
titleDescription

Returns a specific holiday.


Panel
titleClient Permission Restrictions

This scripting function has no Client Permission restrictions.


Panel
titleSyntax

system.user.getHoliday(holidayName)

  • Parameters

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

  • Returns

HolidayModel - The holiday, or None if not found.

  • Scope

All



Panel
titleCode Examples


Code Block
languagepy
titleCode 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()


Code Block
languagetext
titleOutput
Labor Day 2015-09-07 00:00:00.0 False