File: nevada.py

package info (click to toggle)
python-calendra 7.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,600 kB
  • sloc: python: 16,840; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from ..core import FRI
from ..registry_tools import iso_register
from .core import UnitedStates


@iso_register('US-NV')
class Nevada(UnitedStates):
    """Nevada"""
    include_thanksgiving_friday = True
    thanksgiving_friday_label = "Family Day"
    include_columbus_day = False

    def get_variable_days(self, year):
        days = super().get_variable_days(year)
        days.append(
            (self.get_last_weekday_in_month(year, 10, FRI), "Nevada Day")
        )
        return days