// SDLDateTime.h // #import "SDLRPCStruct.h" NS_ASSUME_NONNULL_BEGIN /** A struct referenced in SendLocation for an absolute date */ @interface SDLDateTime : SDLRPCStruct - (instancetype)initWithHour:(UInt8)hour minute:(UInt8)minute; - (instancetype)initWithHour:(UInt8)hour minute:(UInt8)minute second:(UInt8)second millisecond:(UInt16)millisecond; - (instancetype)initWithHour:(UInt8)hour minute:(UInt8)minute second:(UInt8)second millisecond:(UInt16)millisecond day:(UInt8)day month:(UInt8)month year:(UInt16)year; - (instancetype)initWithHour:(UInt8)hour minute:(UInt8)minute second:(UInt8)second millisecond:(UInt16)millisecond day:(UInt8)day month:(UInt8)month year:(UInt16)year timezoneMinuteOffset:(UInt8)timezoneMinuteOffset timezoneHourOffset:(int)timezoneHourOffset; /** * Milliseconds part of time * * Optional, Integer 0 - 999 */ @property (copy, nonatomic) NSNumber *millisecond; /** * Seconds part of time * * Optional, Integer 0 - 59 */ @property (copy, nonatomic) NSNumber *second; /** * Minutes part of time * * Optional, Integer 0 - 59 */ @property (copy, nonatomic) NSNumber *minute; /** * Hour part of time * * Optional, Integer 0 - 23 */ @property (copy, nonatomic) NSNumber *hour; /** * Day of the month * * Optional, Integer 1 - 31 */ @property (copy, nonatomic) NSNumber *day; /** * Month of the year * * Optional, Integer 1 - 12 */ @property (copy, nonatomic) NSNumber *month; /** * The year in YYYY format * * Optional, Max Value 4095 */ @property (copy, nonatomic) NSNumber *year; /** * Time zone offset in Min with regard to UTC * * Optional, Integer 0 - 59 */ @property (copy, nonatomic) NSNumber *timezoneMinuteOffset; /** * Time zone offset in Hours with regard to UTC * * Optional, Integer -12 - 14 */ @property (copy, nonatomic) NSNumber *timezoneHourOffset; @end NS_ASSUME_NONNULL_END