Interface DateTime

  • All Superinterfaces:
    Base, java.lang.Cloneable, Element, java.lang.Iterable<Element>
    All Known Implementing Classes:
    DateTimeWrapper

    @Deprecated(since="2021-07-29")
    public interface DateTime
    extends Element
    Deprecated.
    This API is deprecated as Apache Abdera is a retired project since 2017.

    An element conforming to the Atom Date Construct. The data type implementation for this element is provided by the AtomDate class.

    • Method Detail

      • getValue

        AtomDate getValue()
        Deprecated.
        Returns the content value of the element as an AtomDate object
        Returns:
        The Atom Date value of this element
      • getDate

        java.util.Date getDate()
        Deprecated.
        Returns the content value of the element as a java.util.Date object
        Returns:
        The java.util.Date value of this element
      • getCalendar

        java.util.Calendar getCalendar()
        Deprecated.
        Returns the content value of the element as a java.util.Calendar object
        Returns:
        The java.util.Calendar value of this element
      • getTime

        long getTime()
        Deprecated.
        Returns the content value of the element as a long (equivalent to calling DateTimeElement().getDate().getTime()
        Returns:
        The number of milliseconds since January 1, 1970, 00:00:00 GMT
      • getString

        java.lang.String getString()
        Deprecated.
        Returns the content value of the element as a string conforming to RFC-3339
        Returns:
        The serialized string form of this element
      • setValue

        DateTime setValue​(AtomDate dateTime)
        Deprecated.
        Sets the content value of the element
        Parameters:
        dateTime - the Atom Date value
      • setDate

        DateTime setDate​(java.util.Date date)
        Deprecated.
        Sets the content value of the element
        Parameters:
        date - The java.util.Date value
      • setCalendar

        DateTime setCalendar​(java.util.Calendar date)
        Deprecated.
        Sets the content value of the element
        Parameters:
        date - The java.util.Calendar value
      • setTime

        DateTime setTime​(long date)
        Deprecated.
        Sets the content value of the element
        Parameters:
        date - the number of milliseconds since January 1, 1970, 00:00:00 GMT
      • setString

        DateTime setString​(java.lang.String date)
        Deprecated.
        Sets the content value of the element
        Parameters:
        date - The serialized string value