FirebaseFirestore Framework Reference

TimeGranularity

public struct TimeGranularity : Sendable, Equatable, Hashable

Undocumented

  • Undocumented

    Declaration

    Swift

    public static let microsecond: TimeGranularity
  • Undocumented

    Declaration

    Swift

    public static let millisecond: TimeGranularity
  • Undocumented

    Declaration

    Swift

    public static let second: TimeGranularity
  • Undocumented

    Declaration

    Swift

    public static let minute: TimeGranularity
  • Undocumented

    Declaration

    Swift

    public static let hour: TimeGranularity
  • day

    The day in the Gregorian calendar year that contains the value to truncate.

    Declaration

    Swift

    public static let day: TimeGranularity
  • The first day in the week that contains the value to truncate. Weeks begin on Sundays. WEEK is equivalent to WEEK(SUNDAY).

    Declaration

    Swift

    public static let week: TimeGranularity
  • The first day in the week that contains the value to truncate. Weeks begin on Monday.

    Declaration

    Swift

    public static let weekMonday: TimeGranularity
  • The first day in the week that contains the value to truncate. Weeks begin on Tuesday.

    Declaration

    Swift

    public static let weekTuesday: TimeGranularity
  • The first day in the week that contains the value to truncate. Weeks begin on Wednesday.

    Declaration

    Swift

    public static let weekWednesday: TimeGranularity
  • The first day in the week that contains the value to truncate. Weeks begin on Thursday.

    Declaration

    Swift

    public static let weekThursday: TimeGranularity
  • The first day in the week that contains the value to truncate. Weeks begin on Friday.

    Declaration

    Swift

    public static let weekFriday: TimeGranularity
  • The first day in the week that contains the value to truncate. Weeks begin on Saturday.

    Declaration

    Swift

    public static let weekSaturday: TimeGranularity
  • The first day in the week that contains the value to truncate. Weeks begin on Sunday.

    Declaration

    Swift

    public static let weekSunday: TimeGranularity
  • The first day in the ISO 8601 week that contains the value to truncate. The ISO week begins on Monday. The first ISO week of each ISO year contains the first Thursday of the corresponding Gregorian calendar year.

    Declaration

    Swift

    public static let isoweek: TimeGranularity
  • The first day in the month that contains the value to truncate.

    Declaration

    Swift

    public static let month: TimeGranularity
  • The first day in the quarter that contains the value to truncate.

    Declaration

    Swift

    public static let quarter: TimeGranularity
  • The first day in the year that contains the value to truncate.

    Declaration

    Swift

    public static let year: TimeGranularity
  • The first day in the ISO 8601 week-numbering year that contains the value to truncate. The ISO year is the Monday of the first week where Thursday belongs to the corresponding Gregorian calendar year.

    Declaration

    Swift

    public static let isoyear: TimeGranularity
  • Undocumented

    Declaration

    Swift

    public let rawValue: String