GData JavaScript Client 2.2

Class google.gdata.DateTime

Object
   |
   +--google.gdata.DateTime

class 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} date

dateOnly

{boolean} dateOnly

Constructor Detail

google.gdata.DateTime

google.gdata.DateTime(<Date> date, <boolean> opt_dateOnly)

Method Detail

equals

boolean equals(<google.gdata.DateTime> otherDateTime)

getDate

Date getDate()

isDateOnly

boolean isDateOnly()

setDate

void setDate(<Date> date)

setDateOnly

void setDateOnly(<boolean> dateOnly)

fromIso8601

<static> google.gdata.DateTime fromIso8601(<string> isoString)

toIso8601

<static> string toIso8601(<google.gdata.DateTime|Date> dateTime)

GData JavaScript Client 2.2

Documentation generated by JSDoc on Mon Dec 14 15:04:11 2009