Date

Object
   |
   +--Date


 
Methods Summary
 Object diff(dateObj)
           returns the difference between this and another date object in milliseconds
 Object equals(date, extend)
           checks if a date object equals another date object
 Object format(format, locale, timezone)
           format a Date to a string
 Object getAge(param)
           return the past timespan between this Date object and the current Date or a different Date object
 Object getExpiry(param)
           return the future timespan between this Date object and the current Date or a different Date object
 Object getTimespan(param)
           return the timespan to current date/time or a different Date object
 void toLocalTime()
           set the date/time to local time by adding the timezone offset
 void toUtc()
           set the date/time to UTC by subtracting the timezone offset


Method Detail

diff

Object diff(dateObj)

equals

Object equals(date, extend)

format

Object format(format, locale, timezone)

getAge

Object getAge(param)

getExpiry

Object getExpiry(param)

getTimespan

Object getTimespan(param)

toLocalTime

void toLocalTime()

toUtc

void toUtc()


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007