// SDLDateTime.h // #import "SDLRPCStruct.h" NS_ASSUME_NONNULL_BEGIN @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; /** * @abstract Milliseconds part of time * * Optional, Integer 0 - 999 */ @property (copy, nonatomic) NSNumber *millisecond; /** * @abstract Seconds part of time * * Optional, Integer 0 - 59 */ @property (copy, nonatomic) NSNumber *second; /** * @abstract Minutes part of time * * Optional, Integer 0 - 59 */ @property (copy, nonatomic) NSNumber *minute; /** * @abstract Hour part of time * * Optional, Integer 0 - 23 */ @property (copy, nonatomic) NSNumber *hour; /** * @abstract Day of the month * * Optional, Integer 1 - 31 */ @property (copy, nonatomic) NSNumber *day; /** * @abstract Month of the year * * Optional, Integer 1 - 12 */ @property (copy, nonatomic) NSNumber *month; /** * @abstract The year in YYYY format * * Optional, Max Value 4095 */ @property (copy, nonatomic) NSNumber *year; /** * @abstract Time zone offset in Min with regard to UTC * * Optional, Integer 0 - 59 */ @property (copy, nonatomic) NSNumber *timezoneMinuteOffset; /** * @abstract Time zone offset in Hours with regard to UTC * * Optional, Integer -12 - 14 */ @property (copy, nonatomic) NSNumber *timezoneHourOffset; @end NS_ASSUME_NONNULL_END