|
GData JavaScript Client 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--google.gdata.DateTime
Represents a timestamp that is either a calendar date or a more
specific time with millisecond precision.
Defined in gdata.js
Field Summary | |
{Date} |
date
Date value. |
{boolean} |
dateOnly
Whether this timestamp represents a calendar date. |
Constructor Summary | |
google.gdata.DateTime(<Date> date, <boolean> opt_dateOnly)
Constructs a timestamp. |
Method Summary | |
boolean
|
equals(<google.gdata.DateTime> otherDateTime)
Returns whether the given timestamp is equal to this timestamp. |
Date
|
getDate()
Returns the Date value. |
boolean
|
isDateOnly()
Returns whether this timestamp represents a calendar date. |
void
|
setDate(<Date> date)
Sets the Date value. |
void
|
setDateOnly(<boolean> dateOnly)
Sets whether this timestamp represents a calendar date. |
<static> google.gdata.DateTime
|
fromIso8601(<string> isoString)
Returns the GData timestamp for the ISO 8601 string representation. |
<static> string
|
toIso8601(<google.gdata.DateTime|Date> dateTime)
Returns the ISO 8601 string representation of the GData timestamp or Date class. |
Field Detail |
{Date} date
{boolean} dateOnly
Constructor Detail |
google.gdata.DateTime(<Date> date, <boolean> opt_dateOnly)
date
- Date value.
opt_dateOnly
- Optionally set that this timestamp represents a calendar date (defaults to false).
Method Detail |
boolean equals(<google.gdata.DateTime> otherDateTime)
otherDateTime
- other timestamp.
Date getDate()
boolean isDateOnly()
void setDate(<Date> date)
date
- Date value.
void setDateOnly(<boolean> dateOnly)
dateOnly
- Whether this timestamp represents a calendar date.
<static> google.gdata.DateTime fromIso8601(<string> isoString)
isoString
- ISO 8601 string representation.
<static> string toIso8601(<google.gdata.DateTime|Date> dateTime)
dateTime
- GData timestamp or Date value to represent a timestamp with millesecond precision.
|
GData JavaScript Client 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |