GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSEvent
@interface GMSEvent : NSObject
A class representing a open/close event in GMSPeriod
.
-
Day of week the associated with the event.
Declaration
Objective-C
@property (nonatomic, readonly) GMSDayOfWeek day;
-
The representation of time of the event in 24hr clock. 0000
Declaration
Objective-C
@property (nonatomic, strong, readonly) GMSTime *_Nonnull time;
-
Declaration
Swift
var date: Date? { get }
Objective-C
@property (nonatomic, strong, readonly, nullable) NSDate *date;
-
Boolean value indicating whether or not the opening or close details were truncated due to the
seven day window, where the window starts at midnight of the day of the request, and ends at
11:59 pm six days later.
Returns true if the open or close times for this period extends past this seven day window.
Declaration
Swift
var truncated: Bool { get }
Objective-C
@property (nonatomic, readonly) BOOL truncated;
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\u003eGMSEvent\u003c/code\u003e represents an opening or closing event within a \u003ccode\u003eGMSPeriod\u003c/code\u003e, specifying the day, time, and potential date.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a \u003ccode\u003etruncated\u003c/code\u003e property indicating if the event's time extends beyond a seven-day window from the request time.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSEvent\u003c/code\u003e uses \u003ccode\u003eGMSDayOfWeek\u003c/code\u003e for the day of the week and \u003ccode\u003eGMSTime\u003c/code\u003e for the time in a 24-hour format.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003edate\u003c/code\u003e property provides the specific date of the event.\u003c/p\u003e\n"]]],["`GMSEvent` represents an open/close event, characterized by the `day` of the week, represented as a `GMSDayOfWeek` enum. The `time` of the event is defined using a 24-hour clock via `GMSTime`. The `date` attribute indicates the specific date of the event and is nullable. The `truncated` property, a boolean, indicates whether event details were cut off due to a seven-day window limitation.\n"],null,["# GooglePlaces Framework Reference\n\nGMSEvent\n========\n\n @interface GMSEvent : NSObject\n\nA class representing a open/close event in [GMSPeriod](../Classes/GMSPeriod.html).\n- `\n ``\n ``\n `\n\n ### [day](#/c:objc(cs)GMSEvent(py)day)\n\n `\n ` \n Day of week the associated with the event. \n\n #### Declaration\n\n Swift \n\n var day: ../Enums/GMSDayOfWeek.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GMSDayOfWeek.html day;\n\n- `\n ``\n ``\n `\n\n ### [time](#/c:objc(cs)GMSEvent(py)time)\n\n `\n ` \n The representation of time of the event in 24hr clock. 0000 \n\n #### Declaration\n\n Swift \n\n var time: ../Classes/GMSTime.html { get }\n\n Objective-C \n\n @property (nonatomic, strong, readonly) ../Classes/GMSTime.html *_Nonnull time;\n\n- `\n ``\n ``\n `\n\n ### [date](#/c:objc(cs)GMSEvent(py)date)\n\n `\n ` \n The date of the event. \n\n #### Declaration\n\n Swift \n\n var date: Date? { get }\n\n Objective-C \n\n @property (nonatomic, strong, readonly, nullable) NSDate *date;\n\n- `\n ``\n ``\n `\n\n ### [truncated](#/c:objc(cs)GMSEvent(py)truncated)\n\n `\n ` \n Boolean value indicating whether or not the opening or close details were truncated due to the\n seven day window, where the window starts at midnight of the day of the request, and ends at\n 11:59 pm six days later.\n\n Returns true if the open or close times for this period extends past this seven day window. \n\n #### Declaration\n\n Swift \n\n var truncated: Bool { get }\n\n Objective-C \n\n @property (nonatomic, readonly) BOOL truncated;"]]