Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
SDLDateTime

SDLDateTime Class Reference

Section Contents

Overview

A struct referenced in SendLocation for an absolute date

-initWithHour:minute:

Convenience init for creating a date

Objective-C

- (nonnull instancetype)initWithHour:(UInt8)hour minute:(UInt8)minute;

Swift

init(hour: UInt8, minute: UInt8)

Parameters

hour

Hour part of time

minute

Minutes part of time

Return Value

An SDLDateTime object

-initWithHour:minute:second:millisecond:

Convenience init for creating a date

Objective-C

- (nonnull instancetype)initWithHour:(UInt8)hour
                              minute:(UInt8)minute
                              second:(UInt8)second
                         millisecond:(UInt16)millisecond;

Swift

init(hour: UInt8, minute: UInt8, second: UInt8, millisecond: UInt16)

Parameters

hour

Hour part of time

minute

Minutes part of time

second

Seconds part of time

millisecond

Milliseconds part of time

Return Value

An SDLDateTime object

-initWithHour:minute:second:millisecond:day:month:year:

Convenience init for creating a date

Objective-C

- (nonnull instancetype)initWithHour:(UInt8)hour
                              minute:(UInt8)minute
                              second:(UInt8)second
                         millisecond:(UInt16)millisecond
                                 day:(UInt8)day
                               month:(UInt8)month
                                year:(UInt16)year;

Swift

init(hour: UInt8, minute: UInt8, second: UInt8, millisecond: UInt16, day: UInt8, month: UInt8, year: UInt16)

Parameters

hour

Hour part of time

minute

Minutes part of time

second

Seconds part of time

millisecond

Milliseconds part of time

day

Day of the month

month

Month of the year

year

The year in YYYY format

Return Value

An SDLDateTime object

-initWithHour:minute:second:millisecond:day:month:year:timezoneMinuteOffset:timezoneHourOffset:

Convenience init for creating a date with all properties

Objective-C

- (nonnull 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;

Swift

init(hour: UInt8, minute: UInt8, second: UInt8, millisecond: UInt16, day: UInt8, month: UInt8, year: UInt16, timezoneMinuteOffset: UInt8, timezoneHourOffset: Int32)

Parameters

hour

Hour part of time

minute

Minutes part of time

second

Seconds part of time

millisecond

Milliseconds part of time

day

Day of the month

month

Month of the year

year

The year in YYYY format

timezoneMinuteOffset

Time zone offset in Min with regard to UTC

timezoneHourOffset

Time zone offset in Hours with regard to UTC

Return Value

An SDLDateTime object

millisecond

Milliseconds part of time

Optional, Integer 0 - 999

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull millisecond;

Swift

@NSCopying var millisecond: NSNumber & SDLInt { get set }

second

Seconds part of time

Optional, Integer 0 - 59

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull second;

Swift

@NSCopying var second: NSNumber & SDLInt { get set }

minute

Minutes part of time

Optional, Integer 0 - 59

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull minute;

Swift

@NSCopying var minute: NSNumber & SDLInt { get set }

hour

Hour part of time

Optional, Integer 0 - 23

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull hour;

Swift

@NSCopying var hour: NSNumber & SDLInt { get set }

day

Day of the month

Optional, Integer 1 - 31

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull day;

Swift

@NSCopying var day: NSNumber & SDLInt { get set }

month

Month of the year

Optional, Integer 1 - 12

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull month;

Swift

@NSCopying var month: NSNumber & SDLInt { get set }

year

The year in YYYY format

Optional, Max Value 4095

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull year;

Swift

@NSCopying var year: NSNumber & SDLInt { get set }

timezoneMinuteOffset

Time zone offset in Min with regard to UTC

Optional, Integer 0 - 59

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull timezoneMinuteOffset;

Swift

@NSCopying var timezoneMinuteOffset: NSNumber & SDLInt { get set }

timezoneHourOffset

Time zone offset in Hours with regard to UTC

Optional, Integer -12 - 14

Objective-C

@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull timezoneHourOffset;

Swift

@NSCopying var timezoneHourOffset: NSNumber & SDLInt { get set }
View on GitHub.com
Previous Section Next Section