Versions Compared

Key

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


Scripting_function



Panel
titleDescription

Returns a sequence of all of the holidays available.


Panel
titleClient Permission Restrictions

This scripting function has no Client Permission restrictions.


Panel
titleSyntax

system.user.getHolidays()

  • Parameters

none

  • Returns

List - A list of holidays.

  • Scope

All



Panel
titleCode Examples


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


Code Block
languagetext
titleOutput
Labor Day 2015-09-07 00:00:00.0 False
Groundhog Day 2016-03-02 00:00:00.0 False