"

2013 FRC Java API

"

com.sun.cldc.util.j2me
Class CalendarImpl

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

public class CalendarImpl
extends Calendar

This class is an implementation of the subsetted CLDC 1.1 Calendar class.

See Also:
Calendar, TimeZone

Field Summary
 
Fields inherited from class java.util.Calendar
AM, AM_PM, APRIL, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DECEMBER, FEBRUARY, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, time, TUESDAY, WEDNESDAY, YEAR
 
Constructor Summary
CalendarImpl()
           
 
Method Summary
protected  void computeFields()
          Converts UTC as milliseconds to time field values.
protected  void computeTime()
          Converts time field values to UTC as milliseconds.
static String toISO8601String(Calendar calendar)
          Converts this Date object to a String.
static String toString(Calendar calendar)
          Converts this Date object to a String of the form:
 
Methods inherited from class java.util.Calendar
after, before, equals, get, getInstance, getInstance, getTime, getTimeInMillis, getTimeZone, set, setTime, setTimeInMillis, setTimeZone
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarImpl

public CalendarImpl()
Method Detail

computeFields

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

Specified by:
computeFields in class Calendar

toString

public static String toString(Calendar calendar)
Converts this Date object to a String of the form:
 dow mon dd hh:mm:ss zzz yyyy
where:

Returns:
a string representation of this date.

toISO8601String

public static String toISO8601String(Calendar calendar)
Converts this Date object to a String. The output format is as follows:
yyyy MM dd hh mm ss +zzzz
where:

Returns:
a string representation of this date.

computeTime

protected void computeTime()
Converts time field values to UTC as milliseconds.

Specified by:
computeTime in class Calendar
Throws:
IllegalArgumentException - if any fields are invalid.

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"