TimeUnit

public enum TimeUnit : Int, Encodable

A unit of time supported by the Shortcuts app. See TimeSpanValue for usage.

  • A time unit representing a number of years.

    Declaration

    Swift

    case years = 4
  • A time unit representing a number of months.

    Declaration

    Swift

    case months = 8
  • A time unit representing a number of weeks.

    Declaration

    Swift

    case weeks = 8192
  • A time unit representing a number of days.

    Declaration

    Swift

    case days = 16
  • A time unit representing a number of hours.

    Declaration

    Swift

    case hours = 32
  • A time unit representing a number of minutes.

    Declaration

    Swift

    case minutes = 64
  • A time unit representing a number of seconds.

    Declaration

    Swift

    case seconds = 128