com.google.api.server.spi.types

## Class DateAndTime

- java.lang.Object
- - com.google.api.server.spi.types.DateAndTime

-     public final class DateAndTime
      extends java.lang.Object

  A class for storing date-time values. Unlike `java.util.Date`, this preserves time zone information.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `int` | `hashCode()`
    `static DateAndTime` | `parseRfc3339String(java.lang.String rfc3339String)` Constructs a new date-time from an RFC 3339 formatted string.
    `java.lang.String` | `toRfc3339String()` Returns the RFC 3339 representation of the date-time.
    `java.lang.String` | `toString()`

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

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### toRfc3339String

          public java.lang.String toRfc3339String()

      Returns the RFC 3339 representation of the date-time.
      Returns:
        an RFC 3339 string

    - #### parseRfc3339String

          public static DateAndTime parseRfc3339String(java.lang.String rfc3339String)

      Constructs a new date-time from an RFC 3339 formatted string.
      Parameters:
        `rfc3339String` - An RFC 3339 string to parse.
      Returns:
        the parsed datetime

    - #### equals

          public boolean equals(java.lang.Object obj)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`