Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style, syntax
Scripting_function


Panel
titleDescription

Returns a sequence of all of the holidays available.

Client permissions restrictions


Panel
titleSyntax

system.user.getHolidays()

  • Parameters

noneNothing

  • Returns

List - A list of holidays, as HolidayModel objects. 

  • Scope

Gateway, Vision Client, Perspective Session

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()
Panel
titleKeywords

system user getHolidays, user.getHolidays