|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Date
watch.Date
public class Date
Date model class, providing parsing and formatting. All dates are aligned to midnight time. The public visibility is set for unit tests purpose.
Field Summary | |
---|---|
protected static java.util.Locale |
m_jCurrentLocale
Current locale. |
Constructor Summary | |
---|---|
Date(Date W_Date)
Copy constructor (from a Watch date object). |
|
Date(java.util.Date J_Date)
Copy constructor (from a Java date object). |
|
Date(java.lang.String J_Date)
Constructor. |
Method Summary | |
---|---|
static int |
delay(Date W_Date1,
Date W_Date2)
Delay in days between two dates. |
Date |
nextDay()
Date incrementation. |
Date |
prevDay()
Date decrementation. |
static boolean |
setCurrentLocale(java.util.Locale J_CurrentLocale)
Current locale setting. |
static Date |
today()
Today date accessor. |
java.lang.String |
toString()
String representation of the date. |
static Date |
zero()
Zero date accessor. |
Methods inherited from class java.util.Date |
---|
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.util.Locale m_jCurrentLocale
Constructor Detail |
---|
public Date(java.lang.String J_Date)
J_Date
- Date in its string format.public Date(Date W_Date)
W_Date
- Watch date to copy.public Date(java.util.Date J_Date)
J_Date
- Java date to copy.Method Detail |
---|
public static boolean setCurrentLocale(java.util.Locale J_CurrentLocale)
J_CurrentLocale
- New current locale. Must not be null.
public java.lang.String toString()
toString
in class java.util.Date
public static Date zero()
public static Date today()
public Date nextDay()
public Date prevDay()
public static int delay(Date W_Date1, Date W_Date2)
W_Date1
- First date.W_Date2
- Second date.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |