GData JavaScript Client 1.1

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(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(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 1.1

Documentation generated by JSDoc on Thu Oct 18 16:10:01 2007