Overview | Module | Use | Devguide | Index

Constants | Constants' Details

:: com :: sun :: star :: i18n ::
constants group CalendarFieldIndex
Description Field indices to be passed to various XCalendar methods. Field is writable only if marked both Get/Set. ZONE_OFFSET and DST_OFFSET cooperate such that both values are added, for example, ZoneOffset=1 * 60 and DstOffset=1 * 60 results in a time difference of GMT+2. The calculation is GMT = LocalTime - ZoneOffset - DstOffset

Constants
AM_PM | Get AmPmValue .
DAY_OF_MONTH | Get/Set day of month [1-31].
DAY_OF_WEEK | Get day of week [0-6].
DAY_OF_YEAR | Get day of year.
DST_OFFSET | Get daylight saving time offset in minutes [0 * 60..1 * 60]
HOUR | Get/Set hour [0-23].
MINUTE | Get/Set minute [0-59].
SECOND | Get/Set second [0-59].
MILLISECOND | Get/Set milliseconds [0-999].
WEEK_OF_MONTH | Get week of month.
WEEK_OF_YEAR | Get week of year.
YEAR | Get/Set year.
MONTH | Get/Set month [0-...].
ERA | Get/Set era, for example, 0:= Before Christ, 1:= After Christ.
ZONE_OFFSET | Get/Set time zone offset in minutes [-12 *60..12*60]
FIELD_COUNT | Total number of fields

Constants' Details
AM_PM
const short AM_PM = 0; Description Get AmPmValue .
DAY_OF_MONTH
const short DAY_OF_MONTH = 1; Description Get/Set day of month [1-31].
DAY_OF_WEEK
const short DAY_OF_WEEK = 2; Description Get day of week [0-6].
DAY_OF_YEAR
const short DAY_OF_YEAR = 3; Description Get day of year.
DST_OFFSET
const short DST_OFFSET = 4; Description Get daylight saving time offset in minutes [0 * 60..1 * 60] The DST offset value depends on the actual date set at the calendar and is determined according to the timezone rules of the locale used with the calendar. Note that there is a bug in OpenOffice.org 1.0 / StarOffice 6.0 that prevents interpreting this value correctly.
HOUR
const short HOUR = 5; Description Get/Set hour [0-23].
MINUTE
const short MINUTE = 6; Description Get/Set minute [0-59].
SECOND
const short SECOND = 7; Description Get/Set second [0-59].
MILLISECOND
const short MILLISECOND = 8; Description Get/Set milliseconds [0-999].
WEEK_OF_MONTH
const short WEEK_OF_MONTH = 9; Description Get week of month.
WEEK_OF_YEAR
const short WEEK_OF_YEAR = 10; Description Get week of year.
YEAR
const short YEAR = 11; Description Get/Set year.
MONTH
const short MONTH = 12; Description Get/Set month [0-...]. Note that the maximum value is not necessarily 12 but depends on the calendar used instead.
ERA
const short ERA = 13; Description Get/Set era, for example, 0:= Before Christ, 1:= After Christ.
ZONE_OFFSET
const short ZONE_OFFSET = 14; Description Get/Set time zone offset in minutes [-12 *60..12*60]
FIELD_COUNT
const short FIELD_COUNT = 15; Description Total number of fields

Top of Page

Copyright © 2003 Sun Microsystems, Inc.