public interface DateTime extends Element
An element conforming to the Atom Date Construct. The data type implementation for this element is provided by the AtomDate class.
Modifier and Type | Method and Description |
---|---|
java.util.Calendar |
getCalendar()
Returns the content value of the element as a java.util.Calendar object
|
java.util.Date |
getDate()
Returns the content value of the element as a java.util.Date object
|
java.lang.String |
getString()
Returns the content value of the element as a string conforming to
RFC-3339
|
long |
getTime()
Returns the content value of the element as a long (equivalent to
calling DateTimeElement().getDate().getTime()
|
AtomDate |
getValue()
Returns the content value of the element as an AtomDate object
|
DateTime |
setCalendar(java.util.Calendar date)
Sets the content value of the element
|
DateTime |
setDate(java.util.Date date)
Sets the content value of the element
|
DateTime |
setString(java.lang.String date)
Sets the content value of the element
|
DateTime |
setTime(long date)
Sets the content value of the element
|
DateTime |
setValue(AtomDate dateTime)
Sets the content value of the element
|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText
AtomDate getValue()
java.util.Date getDate()
java.util.Calendar getCalendar()
long getTime()
java.lang.String getString()
DateTime setValue(AtomDate dateTime)
dateTime
- the Atom Date valueDateTime setDate(java.util.Date date)
date
- The java.util.Date valueDateTime setCalendar(java.util.Calendar date)
date
- The java.util.Calendar valueDateTime setTime(long date)
date
- the number of milliseconds since January 1, 1970, 00:00:00 GMTDateTime setString(java.lang.String date)
date
- The serialized string valueCopyright © 2010 - 2020 Adobe. All Rights Reserved