HolidayStateType

public struct HolidayStateType : Codable

HolidayStateType

See also

HolidayStateType
  • iso

    An ISO 3166-1 country or ISO 3166-2 country state code (see [ISO3166]).

    Note

    Certain countries also list holidays of other (related) countries. At the time of writing, 2019-04-01, the holidays for the following countries may return an ISO3166-1-alpha-2 country code (in parenthesis) instead of an ISO3166-2 country state code.

    Australia

    • Christmas Island (cx)
    • Norfolk Island (nf)
    • Cocos and Keeling Islands (cc)
    • Heard and McDonald Islands (hm)

    United Kingdom.

    • Guernsey (gg)
    • Jersey (je)

    Declaration

    Swift

    public let iso: String?
  • id

    Unique id of the state/subdivision.

    Declaration

    Swift

    public let id: Int?
  • Abbreviation of the state/subdivision.

    Declaration

    Swift

    public let abbrev: String?
  • Common name of the state/subdivision.

    Declaration

    Swift

    public let name: String?
  • Eventual exception if the holiday does not affect the whole state/subdivision.

    Declaration

    Swift

    public let exception: String?