B4J Programming Press on the image to return to the main documentation page.

jCalendar

Written by Wrapped by F.Leneuf-Magaud/Informatix

List of types:

CalendarDifference
GregorianCalendar
Locale
TimeZone

CalendarDifference


Events:

None

Members:


  Days As Int

  Hours As Double

  Milliseconds As Long

  Minutes As Double

  Seconds As Double

Members description:

Days As Int
Hours As Double
Milliseconds As Long
Minutes As Double
Seconds As Double

GregorianCalendar


Events:

None

Members:


  Add (Field As Int, Amount As Int)

  After (When As GregorianCalendar) As Boolean

  AM_PM As Int

  APRIL As Int

  AUGUST As Int

  Before (When As GregorianCalendar) As Boolean

  Clear

  CompareTo (Calendar As GregorianCalendar) As Int

  DAY_OF_MONTH As Int

  DAY_OF_WEEK As Int

  DAY_OF_WEEK_IN_MONTH As Int

  DAY_OF_YEAR As Int

  DECEMBER As Int

  DST_OFFSET As Int

  Equals (Calendar As GregorianCalendar) As Boolean

  ERA As Int

  ERA_AD As Int

  ERA_BC As Int

  FEBRUARY As Int

  FIELD_STYLE_LONG As Int

  FIELD_STYLE_NARROW As Int

  FIELD_STYLE_SHORT As Int

  FirstDayOfWeek As Int

  Format (Pattern As String, Locale As Object) As String

  FORMAT_STYLE_FULL As Int

  FORMAT_STYLE_LONG As Int

  FORMAT_STYLE_MEDIUM As Int

  FORMAT_STYLE_NO_TIME As Int

  FORMAT_STYLE_SHORT As Int

  FormatWithStyles (DateStyle As Int, TimeStyle As Int, Locale As Object) As String

  FRIDAY As Int

  Get (Field As Int) As Int

  GetDifferenceWith (Calendar As GregorianCalendar) As CalendarDifference

  GetDisplayName (Field As Int, Style As Int, Locale As Object) As String

  HOUR As Int

  HOUR_OF_DAY As Int

  Initialize

  InitializeTo (Year As Int, Month As Int, Day As Int, Hour As Int, Minute As Int, Second As Int)

  InitializeToNow

  InitializeWith (TimeInMillis As Long)

  IsInitialized As Boolean

  IsLeapYear (Year As Int) As Boolean

  IsSet (Field As Int) As Boolean

  JANUARY As Int

  JULY As Int

  JUNE As Int

  LOCALE_CHINESE As java.util.Locale

  LOCALE_ENGLISH As java.util.Locale

  LOCALE_FRENCH As java.util.Locale

  LOCALE_GERMAN As java.util.Locale

  LOCALE_ITALIAN As java.util.Locale

  MARCH As Int

  MAY As Int

  MILLISECOND As Int

  MinimalDaysInFirstWeek As Int

  MINUTE As Int

  MONDAY As Int

  MONTH As Int

  NOVEMBER As Int

  OCTOBER As Int

  ResetTime

  Roll (Field As Int, Amount As Int)

  SATURDAY As Int

  SECOND As Int

  SEPTEMBER As Int

  Set (Field As Int, Value As Int)

  SetWeekDate (WeekYear As Int, WeekOfYear As Int, DayOfWeek As Int)

  SetYMD (Year As Int, Month As Int, Day As Int)

  SetYMD_HMS (Year As Int, Month As Int, Day As Int, Hour As Int, Minute As Int, Second As Int)

  SUNDAY As Int

  THURSDAY As Int

  TimeInMillis As Long

  TimeZone As TimeZone

  toString As String

  TUESDAY As Int

  WEDNESDAY As Int

  WEEK_OF_MONTH As Int

  WEEK_OF_YEAR As Int

  WeeksInWeekYear As Int [read only]

  WeekYear As Int [read only]

  YEAR As Int

  ZONE_OFFSET As Int

Members description:

Add (Field As Int, Amount As Int)
Adds the specified (signed) amount of time to the given calendar field, based on the calendar's rules.
After (When As GregorianCalendar) As Boolean
Returns whether this calendar represents a time after the time represented by the specified calendar.
AM_PM As Int
APRIL As Int
AUGUST As Int
Before (When As GregorianCalendar) As Boolean
Returns whether this calendar represents a time before the time represented by the specified calendar.
Clear
Sets all the calendar field values and the time value of this calendar undefined.
CompareTo (Calendar As GregorianCalendar) As Int
Compares the time values represented by two calendar objects.
Returns 0 if the time represented by the argument is equal to the time represented by this calendar; a value less than 0 if the time of this calendar is before the time represented by the argument; and a value greater than 0 if the time of this calendar is after the time represented by the argument.
DAY_OF_MONTH As Int
DAY_OF_WEEK As Int
DAY_OF_WEEK_IN_MONTH As Int
DAY_OF_YEAR As Int
DECEMBER As Int
DST_OFFSET As Int
Equals (Calendar As GregorianCalendar) As Boolean
Returns whether this calendar represents the same time value as the specified calendar.
ERA As Int
ERA_AD As Int
ERA_BC As Int
FEBRUARY As Int
FIELD_STYLE_LONG As Int
FIELD_STYLE_NARROW As Int
FIELD_STYLE_SHORT As Int
FirstDayOfWeek As Int
Gets or sets what the first day of the week is; e.g., SUNDAY in the U.S., MONDAY in France.
Format (Pattern As String, Locale As Object) As String
Formats the time value represented by this calendar into a date/time string with the given pattern and locale (either a LOCALE constant or a language code, e.g. "es" for Spanish).
All pattern letters can be found at: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
All language codes can be found at: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
FORMAT_STYLE_FULL As Int
FORMAT_STYLE_LONG As Int
FORMAT_STYLE_MEDIUM As Int
FORMAT_STYLE_NO_TIME As Int
FORMAT_STYLE_SHORT As Int
FormatWithStyles (DateStyle As Int, TimeStyle As Int, Locale As Object) As String
Formats the time value represented by this calendar into a date/time string with the given formatting styles (FORMAT_STYLE constant) and locale (either a LOCALE constant or a language code, e.g. "es" for Spanish).
All language codes can be found at: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
FRIDAY As Int
Get (Field As Int) As Int
Gets the value of the specified calendar field.
GetDifferenceWith (Calendar As GregorianCalendar) As CalendarDifference
Returns a CalendarDifference object containing the difference between the time represented by this calendar and the time represented by the specified calendar.
Note that the number of days of difference is computed only with the date fields.
GetDisplayName (Field As Int, Style As Int, Locale As Object) As String
Returns the string representation of the calendar field value in the given style (one of the FIELD_STYLE constants) and locale (either a LOCALE constant or a language code, e.g. "es" for Spanish).
All language codes can be found at: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
HOUR As Int
HOUR_OF_DAY As Int
Initialize
Initializes the calendar object. No field is set.
InitializeTo (Year As Int, Month As Int, Day As Int, Hour As Int, Minute As Int, Second As Int)
Initializes the calendar object with the given values for the fields YEAR, MONTH, DAY_OF_MONTH, HOUR_OF_DAY, MINUTE, and SECOND.
Note that you have to set the month with a constant (e.g. JANUARY), not with a number.
InitializeToNow
Initializes the calendar object with the current date and time.
InitializeWith (TimeInMillis As Long)
Initializes the calendar object with the given time in milliseconds.
IsInitialized As Boolean
IsLeapYear (Year As Int) As Boolean
Returns whether the given year is a leap year.
IsSet (Field As Int) As Boolean
Determines if the given calendar field has a value set, including cases that the value has been set by internal fields calculations.
JANUARY As Int
JULY As Int
JUNE As Int
LOCALE_CHINESE As java.util.Locale
LOCALE_ENGLISH As java.util.Locale
LOCALE_FRENCH As java.util.Locale
LOCALE_GERMAN As java.util.Locale
LOCALE_ITALIAN As java.util.Locale
MARCH As Int
MAY As Int
MILLISECOND As Int
MinimalDaysInFirstWeek As Int
Gets or sets what the minimal days required in the first week of the year are.
MINUTE As Int
MONDAY As Int
MONTH As Int
NOVEMBER As Int
OCTOBER As Int
ResetTime
Sets to 0 the value of all time fields (HOUR_OF_DAY, MINUTE, SECOND, MILLISECOND).
Roll (Field As Int, Amount As Int)
Adds a signed amount to the specified calendar field without changing larger fields. A negative roll amount means to subtract from field without changing larger fields.
SATURDAY As Int
SECOND As Int
SEPTEMBER As Int
Set (Field As Int, Value As Int)
Sets the specified calendar field to the given value.
SetWeekDate (WeekYear As Int, WeekOfYear As Int, DayOfWeek As Int)
Sets the date of this calendar with the given date specifiers - week year, week of year, and day of week.
SetYMD (Year As Int, Month As Int, Day As Int)
Sets the values for the calendar fields YEAR, MONTH, and DAY_OF_MONTH. Previous values of other calendar fields are retained. If this is not desired, call Clear first.
Note that you have to set the month with a constant (e.g. JANUARY), not with a number.
SetYMD_HMS (Year As Int, Month As Int, Day As Int, Hour As Int, Minute As Int, Second As Int)
Sets the values for the fields YEAR, MONTH, DAY_OF_MONTH, HOUR_OF_DAY, MINUTE, and SECOND. Previous values of other calendar fields are retained. If this is not desired, call Clear first.
Note that you have to set the month with a constant (e.g. JANUARY), not with a number.
SUNDAY As Int
THURSDAY As Int
TimeInMillis As Long
Gets or sets this calendar's time value in milliseconds.
TimeZone As TimeZone
Gets or sets the time zone.
toString As String
Returns a string representation of this calendar. This function is intended to be used only for debugging purposes.
TUESDAY As Int
WEDNESDAY As Int
WEEK_OF_MONTH As Int
WEEK_OF_YEAR As Int
WeeksInWeekYear As Int [read only]
Returns the number of weeks in the week year represented by this calendar.
WeekYear As Int [read only]
Returns the week year represented by this calendar. The week year is in sync with the week cycle. The first day of the first week is the first day of the week year.
YEAR As Int
ZONE_OFFSET As Int

Locale


Events:

None

Members:


  AvailableLocales() As java.util.Locale [read only]

  DefaultLocale As java.util.Locale [read only]

Members description:

AvailableLocales() As java.util.Locale [read only]
Returns an array of locales for which localized calendar instances are available.
DefaultLocale As java.util.Locale [read only]
Gets the current value of the default locale for this instance of the Java Virtual Machine.

TimeZone


Events:

None

Members:


  AvailableIDs() As String [read only]

  DSTSavings As Int [read only]

  ID As String

  Initialize

  IsInitialized As Boolean

  Offset (Date As Long) As Int

  RawOffset As Int [read only]

  UseDaylightTime As Boolean

Members description:

AvailableIDs() As String [read only]
Gets all the available IDs supported.
DSTSavings As Int [read only]
Returns the amount of time in milliseconds to be added to local standard time to get local wall clock time.
ID As String
Gets or sets the ID of this time zone.
Initialize
Creates a time zone with the default values for this host.
IsInitialized As Boolean
Offset (Date As Long) As Int
Returns the offset in milliseconds of this time zone from UTC at the specified date. If Daylight Saving Time is in effect at the specified date, the offset value is adjusted with the amount of daylight saving.
Date: The date represented in milliseconds since January 1, 1970 00:00:00 GMT.
RawOffset As Int [read only]
Gets the GMT offset in milliseconds for this time zone.
UseDaylightTime As Boolean
Queries if this time zone uses daylight saving time.
Top