Java Doc for DateTime.java in  » Scripting » Kawa » gnu » math » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » Kawa » gnu.math 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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..


Field Summary
final public static  intDATE_MASK
    
final static  intDAY_COMPONENT
    
final public static  intDAY_MASK
    
public static  TimeZoneGMT
    
final static  intHOURS_COMPONENT
    
final public static  intHOURS_MASK
    
final static  intMINUTES_COMPONENT
    
final public static  intMINUTES_MASK
    
final static  intMONTH_COMPONENT
    
final public static  intMONTH_MASK
    
final static  intSECONDS_COMPONENT
    
final public static  intSECONDS_MASK
    
final static  intTIMEZONE_COMPONENT
    
final public static  intTIMEZONE_MASK
    
final public static  intTIME_MASK
    
final static  intYEAR_COMPONENT
    
final public static  intYEAR_MASK
    
 GregorianCalendarcalendar
    
 intmask
    
 intnanoSeconds
     Fractional seconds, in units of nanoseconds.
 Unitunit
    

Constructor Summary
public  DateTime(int mask)
    
public  DateTime(int mask, GregorianCalendar calendar)
    

Method Summary
public static  DateTimeadd(DateTime x, Duration y, int k)
    
public  Numericadd(Object y, int k)
    
public static  DateTimeaddMinutes(DateTime x, int y)
    
public  NumericaddReversed(Numeric x, int k)
    
public static  DateTimeaddSeconds(DateTime x, int y)
    
public  DateTimeadjustTimezone(int newOffset)
    
public  DateTimecast(int newComponents)
    
public static  intcompare(DateTime date1, DateTime date2)
     Return -1, 0, or 1, depending on which value is greater.
public  intcompare(Object obj)
    
public  intcomponents()
    
public static  intdaysInMonth(int month, int year)
    
public  intgetDay()
    
public  intgetHours()
    
public  intgetMinutes()
    
public  intgetMonth()
    
public  intgetNanoSecondsOnly()
    
public  intgetSecondsOnly()
    
public  intgetWholeSeconds()
    
public  intgetYear()
    
public  intgetZoneMinutes()
    
public  booleanisExact()
    
public static  booleanisLeapYear(int year)
    
public  booleanisZero()
    
public  booleanisZoneUnspecified()
    
public static  TimeZoneminutesToTimeZone(int minutes)
     Get a TimeZone object for a given offset.
public  Complexnumber()
    
public static  DateTimeparse(String value, int mask)
    
 intparseDate(String str, int start, int mask)
    
 intparseTime(String str, int start)
    
 intparseZone(String str, int start)
    
 intparseZoneMinutes(String str, int start)
     Return (MINUTES<<16)|END_POS if time-zone indicator was seen. Returns START otherwise, or 0 on an error.
public  voidsetTimeZone(TimeZone timeZone)
    
public static  Durationsub(DateTime date1, DateTime date2)
    
public  voidtoString(StringBuffer sbuf)
    
public  StringtoString()
    
public  voidtoStringDate(StringBuffer sbuf)
    
public  voidtoStringTime(StringBuffer sbuf)
    
public  voidtoStringZone(StringBuffer sbuf)
    
public static  voidtoStringZone(int minutes, StringBuffer sbuf)
    
public  Unitunit()
    
public  DateTimewithZoneUnspecified()
    

Field Detail
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)



GMT
public static TimeZone GMT(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)



calendar
GregorianCalendar calendar(Code)



mask
int mask(Code)



nanoSeconds
int nanoSeconds(Code)
Fractional seconds, in units of nanoseconds.



unit
Unit unit(Code)




Constructor Detail
DateTime
public DateTime(int mask)(Code)



DateTime
public DateTime(int mask, GregorianCalendar calendar)(Code)




Method Detail
add
public static DateTime add(DateTime x, Duration y, int k)(Code)



add
public Numeric add(Object y, int k)(Code)



addMinutes
public static DateTime addMinutes(DateTime x, int y)(Code)



addReversed
public Numeric addReversed(Numeric x, int k)(Code)



addSeconds
public static DateTime addSeconds(DateTime x, int y)(Code)



adjustTimezone
public DateTime adjustTimezone(int newOffset)(Code)



cast
public DateTime cast(int newComponents)(Code)



compare
public static int compare(DateTime date1, DateTime date2)(Code)
Return -1, 0, or 1, depending on which value is greater.



compare
public int compare(Object obj)(Code)



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.



number
public Complex number()(Code)



parse
public static DateTime parse(String value, int mask)(Code)



parseDate
int parseDate(String str, int start, int mask)(Code)



parseTime
int parseTime(String str, int start)(Code)



parseZone
int parseZone(String str, int start)(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.



setTimeZone
public void setTimeZone(TimeZone timeZone)(Code)



sub
public static Duration sub(DateTime date1, DateTime date2)(Code)



toString
public void toString(StringBuffer sbuf)(Code)



toString
public String toString()(Code)



toStringDate
public void toStringDate(StringBuffer sbuf)(Code)



toStringTime
public void toStringTime(StringBuffer sbuf)(Code)



toStringZone
public void toStringZone(StringBuffer sbuf)(Code)



toStringZone
public static void toStringZone(int minutes, StringBuffer sbuf)(Code)



unit
public Unit unit()(Code)



withZoneUnspecified
public DateTime withZoneUnspecified()(Code)



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)

Fields inherited from gnu.math.Numeric
final public static int CEILING(Code)(Java Doc)
final public static int FLOOR(Code)(Java Doc)
final public static int ROUND(Code)(Java Doc)
final public static int TRUNCATE(Code)(Java Doc)

Methods inherited from gnu.math.Numeric
abstract public Numeric abs()(Code)(Java Doc)
abstract public Numeric add(Object obj, int k)(Code)(Java Doc)
final public Numeric add(Object obj)(Code)(Java Doc)
public Numeric addReversed(Numeric x, int k)(Code)(Java Doc)
public int compare(Object obj)(Code)(Java Doc)
public int compareReversed(Numeric x)(Code)(Java Doc)
abstract public Numeric div(Object obj)(Code)(Java Doc)
public Numeric divReversed(Numeric x)(Code)(Java Doc)
public Numeric div_inv()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public float floatValue()(Code)(Java Doc)
public boolean geq(Object x)(Code)(Java Doc)
public boolean grt(Object x)(Code)(Java Doc)
public int intValue()(Code)(Java Doc)
abstract public boolean isExact()(Code)(Java Doc)
abstract public boolean isZero()(Code)(Java Doc)
public long longValue()(Code)(Java Doc)
abstract public Numeric mul(Object obj)(Code)(Java Doc)
public Numeric mulReversed(Numeric x)(Code)(Java Doc)
public Numeric mul_ident()(Code)(Java Doc)
abstract public Numeric neg()(Code)(Java Doc)
public Numeric power(IntNum y)(Code)(Java Doc)
final public Numeric sub(Object obj)(Code)(Java Doc)
abstract public String toString(int radix)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Number
public byte byteValue()(Code)(Java Doc)
abstract public double doubleValue()(Code)(Java Doc)
abstract public float floatValue()(Code)(Java Doc)
abstract public int intValue()(Code)(Java Doc)
abstract public long longValue()(Code)(Java Doc)
public short shortValue()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.