| java.lang.Object java.util.Calendar com.sun.cldc.util.j2me.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. | 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:
- 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 String | toString(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).
|
CalendarImpl | public CalendarImpl()(Code) | | |
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. |
|
|