| java.lang.Object java.lang.Number gnu.math.Numeric gnu.math.Quantity gnu.math.DateTime
DateTime | public class DateTime extends Quantity implements Cloneable(Code) | | Represents a date and/or time.
Similar functionality as java.util.Calendar (and uses GregorianCalendar
internally) but supports arithmetic.
Can be for XML Schema date/time types, specifically as used in XPath/Xquery..
|
Method Summary | |
public static DateTime | add(DateTime x, Duration y, int k) | public Numeric | add(Object y, int k) | public static DateTime | addMinutes(DateTime x, int y) | public Numeric | addReversed(Numeric x, int k) | public static DateTime | addSeconds(DateTime x, int y) | public DateTime | adjustTimezone(int newOffset) | public DateTime | cast(int newComponents) | public static int | compare(DateTime date1, DateTime date2) Return -1, 0, or 1, depending on which value is greater. | public int | compare(Object obj) | public int | components() | public static int | daysInMonth(int month, int year) | public int | getDay() | public int | getHours() | public int | getMinutes() | public int | getMonth() | public int | getNanoSecondsOnly() | public int | getSecondsOnly() | public int | getWholeSeconds() | public int | getYear() | public int | getZoneMinutes() | public boolean | isExact() | public static boolean | isLeapYear(int year) | public boolean | isZero() | public boolean | isZoneUnspecified() | public static TimeZone | minutesToTimeZone(int minutes) Get a TimeZone object for a given offset. | public Complex | number() | public static DateTime | parse(String value, int mask) | int | parseDate(String str, int start, int mask) | int | parseTime(String str, int start) | int | parseZone(String str, int start) | int | parseZoneMinutes(String str, int start) Return (MINUTES<<16)|END_POS if time-zone indicator was seen.
Returns START otherwise, or 0 on an error. | public void | setTimeZone(TimeZone timeZone) | public static Duration | sub(DateTime date1, DateTime date2) | public void | toString(StringBuffer sbuf) | public String | toString() | public void | toStringDate(StringBuffer sbuf) | public void | toStringTime(StringBuffer sbuf) | public void | toStringZone(StringBuffer sbuf) | public static void | toStringZone(int minutes, StringBuffer sbuf) | public Unit | unit() | public DateTime | withZoneUnspecified() |
DATE_MASK | final public static int DATE_MASK(Code) | | |
DAY_COMPONENT | final static int DAY_COMPONENT(Code) | | |
DAY_MASK | final public static int DAY_MASK(Code) | | |
HOURS_COMPONENT | final static int HOURS_COMPONENT(Code) | | |
HOURS_MASK | final public static int HOURS_MASK(Code) | | |
MINUTES_COMPONENT | final static int MINUTES_COMPONENT(Code) | | |
MINUTES_MASK | final public static int MINUTES_MASK(Code) | | |
MONTH_COMPONENT | final static int MONTH_COMPONENT(Code) | | |
MONTH_MASK | final public static int MONTH_MASK(Code) | | |
SECONDS_COMPONENT | final static int SECONDS_COMPONENT(Code) | | |
SECONDS_MASK | final public static int SECONDS_MASK(Code) | | |
TIMEZONE_COMPONENT | final static int TIMEZONE_COMPONENT(Code) | | |
TIMEZONE_MASK | final public static int TIMEZONE_MASK(Code) | | |
TIME_MASK | final public static int TIME_MASK(Code) | | |
YEAR_COMPONENT | final static int YEAR_COMPONENT(Code) | | |
YEAR_MASK | final public static int YEAR_MASK(Code) | | |
nanoSeconds | int nanoSeconds(Code) | | Fractional seconds, in units of nanoseconds.
|
DateTime | public DateTime(int mask)(Code) | | |
compare | public static int compare(DateTime date1, DateTime date2)(Code) | | Return -1, 0, or 1, depending on which value is greater.
|
components | public int components()(Code) | | |
daysInMonth | public static int daysInMonth(int month, int year)(Code) | | |
getDay | public int getDay()(Code) | | |
getHours | public int getHours()(Code) | | |
getMinutes | public int getMinutes()(Code) | | |
getMonth | public int getMonth()(Code) | | |
getNanoSecondsOnly | public int getNanoSecondsOnly()(Code) | | |
getSecondsOnly | public int getSecondsOnly()(Code) | | |
getWholeSeconds | public int getWholeSeconds()(Code) | | |
getYear | public int getYear()(Code) | | |
getZoneMinutes | public int getZoneMinutes()(Code) | | |
isExact | public boolean isExact()(Code) | | |
isLeapYear | public static boolean isLeapYear(int year)(Code) | | |
isZero | public boolean isZero()(Code) | | |
isZoneUnspecified | public boolean isZoneUnspecified()(Code) | | |
minutesToTimeZone | public static TimeZone minutesToTimeZone(int minutes)(Code) | | Get a TimeZone object for a given offset.
Parameters: minutes - timezone offset in minutes. |
parseDate | int parseDate(String str, int start, int mask)(Code) | | |
parseZoneMinutes | int parseZoneMinutes(String str, int start)(Code) | | Return (MINUTES<<16)|END_POS if time-zone indicator was seen.
Returns START otherwise, or 0 on an error.
|
Methods inherited from gnu.math.Quantity | public Numeric abs()(Code)(Java Doc) public static Quantity add(Quantity x, Quantity y, int k)(Code)(Java Doc) public Numeric add(Object y, int k)(Code)(Java Doc) public Numeric addReversed(Numeric x, int k)(Code)(Java Doc) public static int compare(Quantity x, Quantity y)(Code)(Java Doc) public int compare(Object obj)(Code)(Java Doc) public int compareReversed(Numeric x)(Code)(Java Doc) public Dimensions dimensions()(Code)(Java Doc) public Numeric div(Object y)(Code)(Java Doc) public Numeric divReversed(Numeric x)(Code)(Java Doc) public static Quantity divide(Quantity x, Quantity y)(Code)(Java Doc) public double doubleImagValue()(Code)(Java Doc) public double doubleValue()(Code)(Java Doc) public RealNum im()(Code)(Java Doc) final public double imValue()(Code)(Java Doc) public static Quantity make(Complex x, Unit u)(Code)(Java Doc) public static Quantity make(RealNum re, RealNum im, Unit unit)(Code)(Java Doc) public static Quantity make(double re, double im, Unit unit)(Code)(Java Doc) public Numeric mul(Object y)(Code)(Java Doc) public Numeric mulReversed(Numeric x)(Code)(Java Doc) public Numeric neg()(Code)(Java Doc) abstract public Complex number()(Code)(Java Doc) public RealNum re()(Code)(Java Doc) final public double reValue()(Code)(Java Doc) public static Quantity times(Quantity x, Quantity y)(Code)(Java Doc) public String toString(int radix)(Code)(Java Doc) public Unit unit()(Code)(Java Doc)
|
|
|