|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 |
Object dd
Object mm
Object yyyy
| Constructor Detail |
JourneySat.Date()
| Method Detail |
boolean equals(<JourneySat.Date> date)
date - The other date
String format(<String> sep)
sep - The separator
int getDay()
int getMonth()
int getYear()
boolean greaterThan(<JourneySat.Date> date)
date - The other date
boolean isNull()
boolean isValid()
boolean lessThan(<JourneySat.Date> date)
date - The other date
void parseDate(<String> dateStr)
dateStr - The date
void setDate(<int> yyyy, <int> mm, <int> dd)
yyyy - the year
mm - the month
dd - the day
String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||