# GooglePlaces Framework Reference

# GMSOpeningHours

    @interface GMSOpeningHours : NSObject

A class to handle storing and accessing opening hours information for `https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlace.html`.
- `


  ### [periods](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSOpeningHours#/c:objc(cs)GMSOpeningHours(py)periods)


  ` Contains all `https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPeriod.html`s of open and close events for the week.

  Note: Multiple periods can be associated with a day (eg. Monday 7am - Monday 2pm,
  Monday 5pm - Monday 10pm).

         Periods may also span multiple days (eg Friday 7pm - Saturday 2am).

  #### Declaration

  Swift

      var periods: [https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPeriod.html]? { get }

  Objective-C

      @property (nonatomic, strong, readonly, nullable) NSArray<https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPeriod.html *> *periods;

- `


  ### [weekdayText](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSOpeningHours#/c:objc(cs)GMSOpeningHours(py)weekdayText)


  ` Contains localized strings of the daily opening hours for the week.

  Note: The order of the text depends on the language and may begin on Monday or Sunday.
  Do not use the `https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSDayOfWeek.html` enum to index into the array.

  #### Declaration

  Swift

      var weekdayText: [String]? { get }

  Objective-C

      @property (nonatomic, strong, readonly, nullable) NSArray<NSString *> *weekdayText;

- `


  ### [hoursType](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSOpeningHours#/c:objc(cs)GMSOpeningHours(py)hoursType)


  ` Returns the `https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlaceHoursType.html` of the opening hours.

  #### Declaration

  Swift

      var hoursType: https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlaceHoursType.html { get }

  Objective-C

      @property (nonatomic, readonly) https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Enums/GMSPlaceHoursType.html hoursType;

- `


  ### [specialDays](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSOpeningHours#/c:objc(cs)GMSOpeningHours(py)specialDays)


  ` Returns a list of `https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceSpecialDay.html` entries, corresponding to the next
  seven days which may have opening hours that differ from the normal operating hours.

  #### Declaration

  Swift

      var specialDays: [https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceSpecialDay.html]? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSArray<https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceSpecialDay.html *> *specialDays;