|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fraunhofer.ipsi.xpathDatatypes.XS_AnySimpleType
de.fraunhofer.ipsi.xpathDatatypes.XDT_AnyAtomicType
de.fraunhofer.ipsi.xpathDatatypes.XS_Date
public class XS_Date
Constructor Summary | |
---|---|
XS_Date(boolean positive,
int years,
int months,
int days)
Constructor |
|
XS_Date(java.lang.String s)
Constructor |
Method Summary | ||
---|---|---|
XS_Date |
add(XDT_DayTimeDuration dayTimeDuration)
Method add |
|
XS_Date |
add(XDT_YearMonthDuration yearMonthDuration)
Method addToDate |
|
|
castas(java.lang.Class<T> type)
Method castas |
|
int |
compareTo(java.lang.Object o)
Method compareTo |
|
static XS_Date |
currentDate()
Method currentDate |
|
XS_Integer |
getDay()
Method getDayFromDate |
|
XS_Integer |
getMonth()
Method getMonthFromDate |
|
XS_Integer |
getYear()
Method getYearFromDate |
|
XS_Boolean |
isPositive()
Returns Positive |
|
XS_Date |
secondsToDate(double seconds,
boolean positive)
Method secondsToDate |
|
XS_Date |
subtract(XDT_DayTimeDuration dayTimeDuration)
Method subtract |
|
XS_Date |
subtract(XDT_YearMonthDuration yearMonthDuration)
Method subtractFromDate |
|
double |
toSeconds()
Method toSeconds |
|
java.lang.String |
toString()
Method toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XS_Date(boolean positive, int years, int months, int days)
positive
- a booleanyears
- an intmonths
- an intdays
- an intpublic XS_Date(java.lang.String s)
date
- a XS_StringMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static XS_Date currentDate()
public <T extends XDT_AnyAtomicType> T castas(java.lang.Class<T> type) throws java.lang.ClassCastException, XPathDTException
castas
in class XDT_AnyAtomicType
type
- a BuiltinSimpleType
CastError
java.lang.ClassCastException
XPathDTException
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public XS_Integer getYear()
type
- XS_Date
public XS_Integer getMonth()
type
- XS_Date
public XS_Integer getDay()
type
- XS_Date
public double toSeconds()
public XS_Date secondsToDate(double seconds, boolean positive)
double
-
public XS_Date add(XDT_DayTimeDuration dayTimeDuration)
public XS_Date subtract(XDT_DayTimeDuration dayTimeDuration)
public XS_Date add(XDT_YearMonthDuration yearMonthDuration)
public XS_Date subtract(XDT_YearMonthDuration yearMonthDuration)
public XS_Boolean isPositive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |