GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSTime
@interface GMSTime : NSObject
A class representing time in hours and minutes in a 24hr clock.
-
The hour representation of time in a day. (Range is between 0-23).
Declaration
Swift
var hour: UInt { get }
Objective-C
@property (nonatomic, readonly) NSUInteger hour;
-
The minute representation of time in a 1 hr period. (Range is between 0-59).
Declaration
Swift
var minute: UInt { get }
Objective-C
@property (nonatomic, readonly) NSUInteger minute;
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\u003eGMSTime\u003c/code\u003e is an Objective-C class that represents time using a 24-hour clock, storing hours and minutes.\u003c/p\u003e\n"],["\u003cp\u003eIt provides read-only access to the \u003ccode\u003ehour\u003c/code\u003e and \u003ccode\u003eminute\u003c/code\u003e components of the time, with \u003ccode\u003ehour\u003c/code\u003e ranging from 0-23 and \u003ccode\u003eminute\u003c/code\u003e ranging from 0-59.\u003c/p\u003e\n"]]],["GMSTime represents time using a 24-hour clock. It offers two key properties: `hour` and `minute`. The `hour` property, an unsigned integer, ranges from 0 to 23. The `minute` property, also an unsigned integer, ranges from 0 to 59. Both properties are read-only and are accessible in both Swift and Objective-C, providing the hour and minute components of a specific time.\n"],null,["# GooglePlaces Framework Reference\n\nGMSTime\n=======\n\n @interface GMSTime : NSObject\n\nA class representing time in hours and minutes in a 24hr clock.\n- `\n ``\n ``\n `\n\n ### [hour](#/c:objc(cs)GMSTime(py)hour)\n\n `\n ` \n The hour representation of time in a day. (Range is between 0-23). \n\n #### Declaration\n\n Swift \n\n var hour: UInt { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSUInteger hour;\n\n- `\n ``\n ``\n `\n\n ### [minute](#/c:objc(cs)GMSTime(py)minute)\n\n `\n ` \n The minute representation of time in a 1 hr period. (Range is between 0-59). \n\n #### Declaration\n\n Swift \n\n var minute: UInt { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSUInteger minute;"]]