Int

struct Int : FixedWidthInteger, SignedInteger
  • Obtains the Period instance for the year.

    Declaration

    Swift

    public var year: Period { get }
  • Obtains the Period instance for the month.

    Declaration

    Swift

    public var month: Period { get }
  • Obtains the Period instance for the week.

    Declaration

    Swift

    public var week: Period { get }
  • day

    Obtains the Period instance for the day.

    Declaration

    Swift

    public var day: Period { get }
  • Obtains the Period instance for the hour.

    Declaration

    Swift

    public var hour: Period { get }
  • Obtains the Period instance for the minute.

    Declaration

    Swift

    public var minute: Period { get }
  • Obtains the Period instance for the second.

    Declaration

    Swift

    public var second: Period { get }
  • Obtains the Period instance for the nano-of-second.

    Declaration

    Swift

    public var nanosecond: Period { get }