| java.lang.Object | |
| ↳ | com.google.gdata.data.DateTime |
Represents a date/time, or a date without a time. Optionally includes a time zone.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| GMT | |||||||||||
| dateOnly | Specifies whether this is a date-only value. | ||||||||||
| datePattern | XML date pattern. | ||||||||||
| dateTimeChoicePattern | XML date/time or date pattern. | ||||||||||
| dateTimeFormat822 | RFC 822 date/time format. | ||||||||||
| dateTimePattern | XML date/time pattern. | ||||||||||
| tzShift | Time zone shift from UTC in minutes. | ||||||||||
| value | Date/time value expressed as the number of ms since the Unix epoch. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compares instance with DateTime or Date objects.
| |||||||||||
Parses an xs:date string.
| |||||||||||
Parses an xs:dateTime string.
| |||||||||||
Parses an XML value that's either an xs:date or xs:dateTime string.
| |||||||||||
Parses the value as an RFC 822 date/time.
| |||||||||||
Formats the value as an xs:date or xs:dateTime string.
| |||||||||||
Formats the value as an RFC 822 date/time.
| |||||||||||
Formats the value as a human-readable string.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
Specifies whether this is a date-only value.
XML date pattern.
XML date/time or date pattern.
RFC 822 date/time format.
XML date/time pattern.
Time zone shift from UTC in minutes. If null, no time zone
is set, and the time is always interpreted as local time.
Date/time value expressed as the number of ms since the Unix epoch. If the time zone is specified, this value is normalized to UTC, so to format this date/time value, the time zone shift has to be applied.
| value |
|---|
| value |
|---|
| value | |
|---|---|
| tzShift |
| value | |
|---|---|
| zone |
| o |
|---|
Compares instance with DateTime or Date objects. Does not take the tzShift value into account. Therefore, two DateTime objects are equal independent to the time zone they refer to. Equals with a instance of java.util.Date is asymmetric.
| o |
|---|
Parses an xs:date string.
| str |
|---|
| NumberFormatException |
|---|
Parses an xs:dateTime string.
| str |
|---|
| NumberFormatException |
|---|
Parses an XML value that's either an xs:date or xs:dateTime string.
| value |
|---|
| NumberFormatException | Invalid RFC 3339 date or date/time string. |
|---|
| v |
|---|
| v |
|---|
| v |
|---|
Formats the value as an xs:date or xs:dateTime string.
Formats the value as an RFC 822 date/time.
Formats the value as a human-readable string.