DayOfWeek

public enum DayOfWeek : String, Codable
  • Declaration

    Swift

    case monday = "MONDAY"
  • Declaration

    Swift

    case tuesday = "TUESDAY"
  • Declaration

    Swift

    case wednesday = "WEDNESDAY"
  • Declaration

    Swift

    case thursday = "THURSDAY"
  • Declaration

    Swift

    case friday = "FRIDAY"
  • Declaration

    Swift

    case saturday = "SATURDAY"
  • Declaration

    Swift

    case sunday = "SUNDAY"
  • Declaration

    Swift

    case publicHoliday = "PUBLIC_HOLIDAY"
  • Declaration

    Swift

    public static let weekdays: [DayOfWeek]
  • Integer matching NSDateComponents.weekday or nil in case of public holiday.

    Declaration

    Swift

    public var weekday: Int? { get }