Java Doc for CalendarImpl.java in  » 6.0-JDK-Modules » j2me » com » sun » cldc » util » j2me » 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 » 6.0 JDK Modules » j2me » com.sun.cldc.util.j2me 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.Calendar
      com.sun.cldc.util.j2me.CalendarImpl

CalendarImpl
public class CalendarImpl extends Calendar (Code)
This class is an implementation of the subsetted CLDC 1.1 Calendar class.
See Also:   java.util.Calendar
See Also:   java.util.TimeZone


Field Summary
static  String[]days
    
static  String[]months
    

Constructor Summary
public  CalendarImpl()
    

Method Summary
protected  voidcomputeFields()
     Converts UTC as milliseconds to time field values.
protected  voidcomputeTime()
     Converts time field values to UTC as milliseconds.
public static  StringtoISO8601String(Calendar calendar)
     Converts this Date object to a String. The output format is as follows:
yyyy MM dd hh mm ss +zzzz
where:
  • yyyy
    is the year, as four decimal digits. Year values larger than
    9999
    will be truncated to
    9999
    .
  • MM
    is the month (
    01
    through
    12
    ), as two decimal digits.
  • dd
    is the day of the month (
    01
    through
    31
    ), as two decimal digits.
  • hh
    is the hour of the day (
    00
    through
    23
    ), as two decimal digits.
  • mm
    is the minute within the hour (
    00
    through
    59
    ), as two decimal digits.
  • ss
    is the second within the minute (
    00
    through
    59
    ), as two decimal digits.
  • zzzz
    is the time zone offset in hours and minutes (four decimal digits
    "hhmm"
    ) relative to GMT, preceded by a "+" or "-" character (
    -1200
    through
    +1200
    ). For instance, Pacific Standard Time zone is printed as
    -0800
    .
public static  StringtoString(Calendar calendar)
     Converts this Date object to a String of the form:
 dow mon dd hh:mm:ss zzz yyyy
where:
  • dow is the day of the week (Sun, Mon, Tue, Wed, Thu, Fri, Sat).
  • mon is the month (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec).
  • dd is the day of the month (01 through 31), as two decimal digits.
  • hh is the hour of the day (00 through 23), as two decimal digits.
  • mm is the minute within the hour (00 through 59), as two decimal digits.
  • ss is the second within the minute (00 through 61, as two decimal digits.
  • zzz is the time zone (and may reflect daylight savings time).

Field Detail
days
static String[] days(Code)



months
static String[] months(Code)




Constructor Detail
CalendarImpl
public CalendarImpl()(Code)




Method Detail
computeFields
protected void computeFields()(Code)
Converts UTC as milliseconds to time field values.



computeTime
protected void computeTime()(Code)
Converts time field values to UTC as milliseconds.
exception:
  IllegalArgumentException - if any fields are invalid.



toISO8601String
public static String toISO8601String(Calendar calendar)(Code)
Converts this Date object to a String. The output format is as follows:
yyyy MM dd hh mm ss +zzzz
where:
  • yyyy
    is the year, as four decimal digits. Year values larger than
    9999
    will be truncated to
    9999
    .
  • MM
    is the month (
    01
    through
    12
    ), as two decimal digits.
  • dd
    is the day of the month (
    01
    through
    31
    ), as two decimal digits.
  • hh
    is the hour of the day (
    00
    through
    23
    ), as two decimal digits.
  • mm
    is the minute within the hour (
    00
    through
    59
    ), as two decimal digits.
  • ss
    is the second within the minute (
    00
    through
    59
    ), as two decimal digits.
  • zzzz
    is the time zone offset in hours and minutes (four decimal digits
    "hhmm"
    ) relative to GMT, preceded by a "+" or "-" character (
    -1200
    through
    +1200
    ). For instance, Pacific Standard Time zone is printed as
    -0800
    . GMT is printed as
    +0000
    .
a string representation of this date.



toString
public static String toString(Calendar calendar)(Code)
Converts this Date object to a String of the form:
 dow mon dd hh:mm:ss zzz yyyy
where:
  • dow is the day of the week (Sun, Mon, Tue, Wed, Thu, Fri, Sat).
  • mon is the month (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec).
  • dd is the day of the month (01 through 31), as two decimal digits.
  • hh is the hour of the day (00 through 23), as two decimal digits.
  • mm is the minute within the hour (00 through 59), as two decimal digits.
  • ss is the second within the minute (00 through 61, as two decimal digits.
  • zzz is the time zone (and may reflect daylight savings time). If time zone information is not available, then zzz is empty - that is, it consists of no characters at all.
  • yyyy is the year, as four decimal digits.
a string representation of this date.



Fields inherited from java.util.Calendar
final public static int AM(Code)(Java Doc)
final public static int AM_PM(Code)(Java Doc)
final public static int APRIL(Code)(Java Doc)
final public static int AUGUST(Code)(Java Doc)
final public static int DATE(Code)(Java Doc)
final public static int DAY_OF_MONTH(Code)(Java Doc)
final public static int DAY_OF_WEEK(Code)(Java Doc)
final public static int DECEMBER(Code)(Java Doc)
final public static int FEBRUARY(Code)(Java Doc)
final public static int FRIDAY(Code)(Java Doc)
final public static int HOUR(Code)(Java Doc)
final public static int HOUR_OF_DAY(Code)(Java Doc)
final public static int JANUARY(Code)(Java Doc)
final public static int JULY(Code)(Java Doc)
final public static int JUNE(Code)(Java Doc)
final public static int MARCH(Code)(Java Doc)
final public static int MAY(Code)(Java Doc)
final public static int MILLISECOND(Code)(Java Doc)
final public static int MINUTE(Code)(Java Doc)
final public static int MONDAY(Code)(Java Doc)
final public static int MONTH(Code)(Java Doc)
final public static int NOVEMBER(Code)(Java Doc)
final public static int OCTOBER(Code)(Java Doc)
final public static int PM(Code)(Java Doc)
final public static int SATURDAY(Code)(Java Doc)
final public static int SECOND(Code)(Java Doc)
final public static int SEPTEMBER(Code)(Java Doc)
final public static int SUNDAY(Code)(Java Doc)
final public static int THURSDAY(Code)(Java Doc)
final public static int TUESDAY(Code)(Java Doc)
final public static int WEDNESDAY(Code)(Java Doc)
final public static int YEAR(Code)(Java Doc)
protected int fields(Code)(Java Doc)
protected boolean isSet(Code)(Java Doc)
protected long time(Code)(Java Doc)

Methods inherited from java.util.Calendar
public boolean after(Object when)(Code)(Java Doc)
public boolean before(Object when)(Code)(Java Doc)
abstract protected void computeFields()(Code)(Java Doc)
abstract protected void computeTime()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
final public int get(int field)(Code)(Java Doc)
public static synchronized Calendar getInstance()(Code)(Java Doc)
public static synchronized Calendar getInstance(TimeZone zone)(Code)(Java Doc)
final public Date getTime()(Code)(Java Doc)
protected long getTimeInMillis()(Code)(Java Doc)
public TimeZone getTimeZone()(Code)(Java Doc)
final public void set(int field, int value)(Code)(Java Doc)
final public void setTime(Date date)(Code)(Java Doc)
protected void setTimeInMillis(long millis)(Code)(Java Doc)
public void setTimeZone(TimeZone value)(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.