|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsale.Date
This class is an implementation of the Time interface.
The time is represented in the form of a simple date. The format is "dd.mm.yy".
Note: This is a very simple implementation and it is not Y2K safe!
| Constructor Summary | |
Date()
Deprecated. Creates a new date with standard starting time "01.01.00". |
|
Date(String sNewDate)
Deprecated. Creates a new date with the given starting time. |
|
| Method Summary | |
Date |
getDateValue()
Deprecated. Convert the date to a Date object.
|
Object |
getDefaultInterval()
Deprecated. Get the default time interval. |
Object |
getTime()
Deprecated. Get the current date. |
Comparable |
getTimeStamp(long lStampNumber)
Deprecated. Create and return a time stamp. |
void |
goAhead(Object oInterval)
Deprecated. Increment the time by the given time interval. |
void |
setTime(Object oTime)
Deprecated. Set the given date. |
String |
toString()
Deprecated. Returns the current date. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Date()
public Date(String sNewDate)
throws IllegalArgumentException
sNewDate - a String representing the date to be set, format: dd.mm.yy (day.month.year)
IllegalArgumentException - if the given String has an invalid format| Method Detail |
public void setTime(Object oTime)
throws IllegalArgumentException
setTime in interface TimeoTime - a String representing the date to be set, format: dd.mm.yy (day.month.year)
IllegalArgumentException - if the given String has an invalid formatpublic Object getTime()
getTime in interface Time
public void goAhead(Object oInterval)
throws IllegalArgumentException
goAhead in interface TimeoInterval - the interval to increment time. Must be a String that gives the number of days by which
to increment.
IllegalArgumentException - if the given interval is no String or cannot be transformed into a
long value.public Object getDefaultInterval()
getDefaultInterval in interface Timepublic Comparable getTimeStamp(long lStampNumber)
getTimeStamp in interface TimelStampNumber - the number of the stamp
public String toString()
public Date getDateValue()
Date object.
Note: As the entire sale.Date class is not Y2K compliant, this method also is not.
|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||