Class Time

    • Method Detail

      • getAsCalendar

        public Calendar getAsCalendar()
        Returns the time as a calendar. Ignores the year, month and date fields.
        Returns:
        Returns calendar value; may be null.
      • setTime

        public void setTime​(Calendar date)
        Sets the time; ignores year, month, date
        Parameters:
        date -
      • setTime

        public void setTime​(Date date)
        Sets the time from a date instance.
        Parameters:
        date -
      • toString

        public String toString()
        Returns the time as it would be in GMT. This is accurate to the seconds. Milliseconds probably gets lost.
        Overrides:
        toString in class Object
        Returns:
        Returns String.
      • hashCode

        public int hashCode()
        Returns the hashcode of the underlying calendar.
        Overrides:
        hashCode in class Object
        Returns:
        Returns an int value.