Class JourneySat.Date

Object
   |
   +--JourneySat.Date

class JourneySat.Date


This class represents dates
Defined in travel.js


Field Summary
 Object dd
          
 Object mm
          
 Object yyyy
          
 
Constructor Summary
JourneySat.Date ()
           
 
Method Summary
 boolean equals(<JourneySat.Date> date)
           Compares two dates and return true if they are the same
 String format(<String> sep)
           Returns a string representation of the date.
 int getDay()
           Returns the day of the date
 int getMonth()
           Returns the month of the date
 int getYear()
           Returns the year of the date
 boolean greaterThan(<JourneySat.Date> date)
           Compares to a date and return true if it is greater than that one A null or empty date is always less than any other non-null and non-empty date.
 boolean isNull()
           Checks if the date is initialized (no private attribute == null)
 boolean isValid()
           Checks if the date is valid.
 boolean lessThan(<JourneySat.Date> date)
           Compares to a date and return true if it is less than that one.
 void parseDate(<String> dateStr)
           Converts a string into a Date object.
 void setDate(<int> yyyy, <int> mm, <int> dd)
           Sets a date.
 String toString()
           Returns a string representation of the date.

Field Detail

dd

Object dd

mm

Object mm

yyyy

Object yyyy

Constructor Detail

JourneySat.Date

JourneySat.Date()

Method Detail

equals

boolean equals(<JourneySat.Date> date)

format

String format(<String> sep)

getDay

int getDay()

getMonth

int getMonth()

getYear

int getYear()

greaterThan

boolean greaterThan(<JourneySat.Date> date)

isNull

boolean isNull()

isValid

boolean isValid()

lessThan

boolean lessThan(<JourneySat.Date> date)

parseDate

void parseDate(<String> dateStr)

setDate

void setDate(<int> yyyy, <int> mm, <int> dd)

toString

String toString()


Documentation generated by JSDoc on Thu Oct 20 14:28:29 2005