Class DateTime

java.lang.Object
org.apache.james.mime4j.dom.datetime.DateTime

public class DateTime extends Object
  • Field Details

    • date

      private final Date date
    • year

      private final int year
    • month

      private final int month
    • day

      private final int day
    • hour

      private final int hour
    • minute

      private final int minute
    • second

      private final int second
    • timeZone

      private final int timeZone
  • Constructor Details

    • DateTime

      public DateTime(String yearString, int month, int day, int hour, int minute, int second, int timeZone)
  • Method Details

    • parse

      public static DateTime parse(InputStream inputStream) throws ParseException
      Throws:
      ParseException
    • convertToYear

      private int convertToYear(String yearString)
    • convertToDate

      public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, int timeZone)
    • asDate

      public Date asDate()
    • getDate

      public Date getDate()
    • getYear

      public int getYear()
    • getMonth

      public int getMonth()
    • getDay

      public int getDay()
    • getHour

      public int getHour()
    • getMinute

      public int getMinute()
    • getSecond

      public int getSecond()
    • getTimeZone

      public int getTimeZone()
    • print

      public void print()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object