Package com.complexible.common.base

# Class DateTime

java.lang.Object
com.complexible.common.base.DateTime

public final class DateTime extends Object
Immutable representation of date time.

Author:
  Evren Sirin

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DateTime(long time)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `long`
  `getTime()`
  `int`
  `hashCode()`
  `static DateTime`
  `now()`
  `GregorianCalendar`
  `toCalendar()`
  `Date`
  `toDate()`
  `String`
  `toString()`
  String representation of date time in XML schema format.
  `static DateTime`
  `valueOf(String str)`
  Creates a DateTime instance from XML schema serialization of xsd:dateTime.

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### DateTime

    public DateTime(long time)

- ## Method Details

  - ### now

    public static DateTime now()

  - ### getTime

    public long getTime()

  - ### toDate

    public Date toDate()

  - ### toCalendar

    public GregorianCalendar toCalendar()

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### equals

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

  - ### toString

    public String toString()
    String representation of date time in XML schema format.
    Overrides:
      `toString` in class `Object`

  - ### valueOf

    public static DateTime valueOf(String str)
    Creates a DateTime instance from XML schema serialization of xsd:dateTime.