Search

User Manual

GETTING STARTED


MODULES AND PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


GLOSSARY


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support
SDK Documentation
SDK Examples

ALL MANUAL VERSIONS

Ignition 8
Ignition 7.9
Ignition 7.8

Deprecated Pages

Skip to end of metadata
Go to start of metadata

This function is used in Python Scripting.

Description

Returns a specific holiday.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.user.getHoliday(holidayName)

  • Parameters

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

  • Returns

HolidayModel - The holiday, as a HolidayModel object, or None if not found.

  • Scope

Gateway, Vision Client, Perspective Session

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

"""The example above outputs the following:
Labor Day 2015-09-07 00:00:00.0 False
"""
Keywords

system user getHoliday, user.getHoliday

  • No labels