system.user.getHolidays
This feature is new in Ignition version 7.8.0
Description
Returns a sequence of all of the holidays available.
Syntax
-
Parameters
none
-
Returns
List - A list of holidays.
-
Scope
All
Code Examples
Code Snippet
# This example prints information about every holidayholidays = system.user.getHolidays()if len(holidays) == 0: print "No holidays defined"for holiday in holidays: print holiday.getName(), holiday.getDate(), holiday.isRepeatAnnually()Output
Labor Day 2015-09-07 00:00:00.0 FalseGroundhog Day 2016-03-02 00:00:00.0 False