Class ContentDate
java.lang.Object
com.oracle.content.sdk.model.AssetObject
com.oracle.content.sdk.model.date.ContentDate
- All Implemented Interfaces:
 Serializable
Represents content date as represented by the SDK.  Use 
ContentDateParser to parse the string values.- See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionContentDate(String value, String timezone, String description) Create Content Date field. - 
Method Summary
Modifier and TypeMethodDescriptionGets the default date parser using ZonedDateTime available in Android API 26+.Get description field for date.Gets a date parser compatible with older OS versions (less than API 26).Get raw timezone stringgetValue()Get raw string value of the date UseContentDateParserto parse the value. 
- 
Field Details
- 
DEFAULT_TIMEZONE
 
 - 
 - 
Constructor Details
- 
ContentDate
Create Content Date field.- Parameters:
 value- Date/time string (e.g. "2018-08-21T19:09:47.106")timezone- Timezone, can be null which will default to "UTC"description- Optional description (can be null)
 
 - 
 - 
Method Details
- 
getValue
Get raw string value of the date UseContentDateParserto parse the value.- Returns:
 - string value of date.
 
 - 
getTimezone
Get raw timezone string- Returns:
 - timezone string
 
 - 
getDescription
Get description field for date.- Returns:
 - date description
 
 - 
getDateParser
Gets the default date parser using ZonedDateTime available in Android API 26+. If older OS support is needed, usegetLegacyDateParser()- Returns:
 ContentDateParserto parse and display dates
 - 
getLegacyDateParser
Gets a date parser compatible with older OS versions (less than API 26).- Returns:
 ContentDateParserto parse and display dates
 
 -