Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
DateTime

Class DateTime

Hierarchy

java.lang.Object
     com.smartdevicelink.proxy.RPCStruct

Package
com.smartdevicelink.proxy.rpc

Fields

KEY_MILLISECOND

public static final java.lang.String KEY_MILLISECOND
Constant Value
"millisecond"

KEY_SECOND

public static final java.lang.String KEY_SECOND
Constant Value
"second"

KEY_MINUTE

public static final java.lang.String KEY_MINUTE
Constant Value
"minute"

KEY_HOUR

public static final java.lang.String KEY_HOUR
Constant Value
"hour"

KEY_DAY

public static final java.lang.String KEY_DAY
Constant Value
"day"

KEY_MONTH

public static final java.lang.String KEY_MONTH
Constant Value
"month"

KEY_YEAR

public static final java.lang.String KEY_YEAR
Constant Value
"year"

KEY_TZ_HOUR

public static final java.lang.String KEY_TZ_HOUR
Constant Value
"tz_hour"

KEY_TZ_MINUTE

public static final java.lang.String KEY_TZ_MINUTE
Constant Value
"tz_minute"

Inherited Fields

From Class Fields
com.smartdevicelink.proxy.RPCStruct KEY_BULK_DATA, KEY_PROTECTED, store

Constructors

DateTime()

public DateTime()

DateTime( java.util.Hashtable<java.lang.String, java.lang.Object> hash )

public DateTime(java.util.Hashtable<java.lang.String, java.lang.Object> hash)

Constructor Parameters

hash

Methods

getMilliSecond()

Gets the Milliseconds portion of the DateTime class

public java.lang.Integer getMilliSecond()

setMilliSecond( Integer milliSecond )

Sets the Milliseconds portion of the DateTime class

public com.smartdevicelink.proxy.rpc.DateTime setMilliSecond(Integer milliSecond)

Method Parameters

milliSecond
The milliseconds associated with this DateTime class

getSecond()

Gets the Seconds portion of the DateTime class

public java.lang.Integer getSecond()

setSecond( Integer second )

Sets the Seconds portion of the DateTime class

public com.smartdevicelink.proxy.rpc.DateTime setSecond(Integer second)

Method Parameters

second
The Seconds associated with this DateTime class

getMinute()

Gets the Minutes portion of the DateTime class

public java.lang.Integer getMinute()

setMinute( Integer minute )

Sets the Minutes portion of the DateTime class

public com.smartdevicelink.proxy.rpc.DateTime setMinute(Integer minute)

Method Parameters

minute
The Minutes associated with this DateTime class

getHour()

Gets the Hours portion of the DateTime class.

public java.lang.Integer getHour()

setHour( Integer hour )

Sets the Hours portion of the DateTime class.

public com.smartdevicelink.proxy.rpc.DateTime setHour(Integer hour)

Method Parameters

hour
The Hours associated with this DateTime class. This structure is used to store hours in a 24 hour format.

getDay()

Gets the Day portion of the DateTime class.

public java.lang.Integer getDay()

setDay( Integer day )

Sets the Day portion of the DateTime class

public com.smartdevicelink.proxy.rpc.DateTime setDay(Integer day)

Method Parameters

day
The Day of the month associated with this DateTime class

getMonth()

Gets the Month portion of the DateTime class.

public java.lang.Integer getMonth()

setMonth( Integer month )

Sets the Month portion of the DateTime class

public com.smartdevicelink.proxy.rpc.DateTime setMonth(Integer month)

Method Parameters

month
The Month of the year associate with this DateTime class

getYear()

Gets the Year portion of the DateTime class.

public java.lang.Integer getYear()

setYear( Integer year )

Sets the Year portion of the DateTime class

public com.smartdevicelink.proxy.rpc.DateTime setYear(Integer year)

Method Parameters

year
The Year in YYYY format associated with this DateTime class

getTzHour()

Gets the Time Zone Hours portion of the DateTime class.

public java.lang.Integer getTzHour()

setTzHour( Integer tzHour )

Sets the Time Zone Hours portion of the DateTime class

public com.smartdevicelink.proxy.rpc.DateTime setTzHour(Integer tzHour)

Method Parameters

tzHour
The time zone offset in Hours with regard to UTC time associated with this DateTime class

getTzMinute()

Gets the Time Zone Minutes portion of the DateTime class.

public java.lang.Integer getTzMinute()

setTzMinute( Integer tzMinute )

Sets the Time Zone Minutes portion of the DateTime class

public com.smartdevicelink.proxy.rpc.DateTime setTzMinute(Integer tzMinute)

Method Parameters

tzMinute
The time zone offset in Minutes with regard to UTC associated with this DateTime class

Inherited Methods

From Class Methods
com.smartdevicelink.proxy.RPCStruct getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section