GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSOpeningHours
@interface GMSOpeningHours : NSObject
A class to handle storing and accessing opening hours information for GMSPlace
.
-
Contains all GMSPeriod
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
Objective-C
@property (nonatomic, strong, readonly, nullable) NSArray<GMSPeriod *> *periods;
-
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 GMSDayOfWeek
enum to index into the array.
Declaration
Swift
var weekdayText: [String]? { get }
Objective-C
@property (nonatomic, strong, readonly, nullable) NSArray<NSString *> *weekdayText;
-
-
Returns a list of GMSPlaceSpecialDay
entries, corresponding to the next
seven days which may have opening hours that differ from the normal operating hours.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSArray<GMSPlaceSpecialDay *> *specialDays;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSOpeningHours\u003c/code\u003e stores and manages the opening hours information for a \u003ccode\u003eGMSPlace\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the weekly opening and closing periods using the \u003ccode\u003eperiods\u003c/code\u003e property, which contains an array of \u003ccode\u003eGMSPeriod\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eLocalized daily opening hours are available through the \u003ccode\u003eweekdayText\u003c/code\u003e property, presented as an array of strings.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ehoursType\u003c/code\u003e property indicates the type of opening hours using the \u003ccode\u003eGMSPlaceHoursType\u003c/code\u003e enum.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003especialDays\u003c/code\u003e stores an array of \u003ccode\u003eGMSPlaceSpecialDay\u003c/code\u003e objects representing exceptions or variations in opening hours for the next seven days.\u003c/p\u003e\n"]]],[],null,["# GooglePlaces Framework Reference\n\nGMSOpeningHours\n===============\n\n @interface GMSOpeningHours : NSObject\n\nA class to handle storing and accessing opening hours information for [GMSPlace](../Classes/GMSPlace.html).\n- `\n ``\n ``\n `\n\n ### [periods](#/c:objc(cs)GMSOpeningHours(py)periods)\n\n `\n ` \n Contains all [GMSPeriod](../Classes/GMSPeriod.html)s of open and close events for the week.\n\n Note: Multiple periods can be associated with a day (eg. Monday 7am - Monday 2pm,\n Monday 5pm - Monday 10pm). \n\n Periods may also span multiple days (eg Friday 7pm - Saturday 2am).\n\n #### Declaration\n\n Swift \n\n var periods: [../Classes/GMSPeriod.html]? { get }\n\n Objective-C \n\n @property (nonatomic, strong, readonly, nullable) NSArray\u003c../Classes/GMSPeriod.html *\u003e *periods;\n\n- `\n ``\n ``\n `\n\n ### [weekdayText](#/c:objc(cs)GMSOpeningHours(py)weekdayText)\n\n `\n ` \n Contains localized strings of the daily opening hours for the week.\n\n Note: The order of the text depends on the language and may begin on Monday or Sunday.\n Do not use the [GMSDayOfWeek](../Enums/GMSDayOfWeek.html) enum to index into the array. \n\n #### Declaration\n\n Swift \n\n var weekdayText: [String]? { get }\n\n Objective-C \n\n @property (nonatomic, strong, readonly, nullable) NSArray\u003cNSString *\u003e *weekdayText;\n\n- `\n ``\n ``\n `\n\n ### [hoursType](#/c:objc(cs)GMSOpeningHours(py)hoursType)\n\n `\n ` \n Returns the [GMSPlaceHoursType](../Enums/GMSPlaceHoursType.html) of the opening hours. \n\n #### Declaration\n\n Swift \n\n var hoursType: ../Enums/GMSPlaceHoursType.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMSPlaceHoursType.html hoursType;\n\n- `\n ``\n ``\n `\n\n ### [specialDays](#/c:objc(cs)GMSOpeningHours(py)specialDays)\n\n `\n ` \n Returns a list of [GMSPlaceSpecialDay](../Classes/GMSPlaceSpecialDay.html) entries, corresponding to the next\n seven days which may have opening hours that differ from the normal operating hours. \n\n #### Declaration\n\n Swift \n\n var specialDays: [../Classes/GMSPlaceSpecialDay.html]? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSArray\u003c../Classes/GMSPlaceSpecialDay.html *\u003e *specialDays;"]]