Rony G. Flatscher (c) 2001 (r), Date/Time simple manipulations, arithmetics, formatting, v0.9.2 (beta), 2001-04-07 (Java)
< A C D E F G H I J L M N O P Q R S T U V W Y

<

() - Static method in class datergf.DateRGF
Anonymous block to initialize settings at package/class load time.

A

add(int) - Method in class datergf.DateRGF
Adds the number of days to this DateRGF.
add(int, int) - Method in class datergf.DateTimeRGF
Adds the number of days to the date field and the number of milliseconds to the time field of this DateTimeRGF object.
am_pm_string - Static variable in class datergf.TimeRGF
An array of two strings representing "am" and "pm".
APRIL - Static variable in interface datergf.DTC
April, has value 4 (ISO).
assign(DateRGF) - Method in class datergf.DateRGF
Assigns all DateRGF fields of otherDateRGF to this DateRGF.
assign(DateTimeRGF) - Method in class datergf.DateTimeRGF
Assigns otherDateTimeRGF to this DateTimeRGF.
assign(TimeRGF) - Method in class datergf.TimeRGF
Assigns other TimeRGF to this TimeRGF.
AUGUST - Static variable in interface datergf.DTC
August, has value 8 (ISO).

C

cD() - Method in class datergf.DateRGF
Checks the date.
cI(int, int) - Static method in class datergf.TimeRGF
Makes sure that an integer value falls into the range 0 and upperLimit.
clone() - Method in class datergf.DateRGF
Implements the "Clonable" interface.
clone() - Method in class datergf.DateTimeRGF
Implements the "Clonable" interface.
clone() - Method in class datergf.TimeRGF
Implements the "Clonable" interface.
compareTo(Object) - Method in class datergf.DateRGF
Implements the "Comparable" interface.
compareTo(Object) - Method in class datergf.DateTimeRGF
Implements the "Comparable" interface.
compareTo(Object) - Method in class datergf.TimeRGF
Implements the "Comparable" interface.

D

D - Static variable in interface datergf.DTC
Constant to refer to the DateRGF.day field in DateRGF.get(int flag) and DateRGF.set(int flag, int new_value).
date - Variable in class datergf.DateTimeRGF
DateRGF field to store the date portion.
DATE_ORDER - Static variable in interface datergf.DTC
Constant to refer to the DateRGF.dateOrder field in DateRGF.getStatic(int flag) and DateRGF.setStatic(int flag, int new_value).
date2jdn(DateRGF) - Static method in class datergf.DateRGF
Determines into which calendar a date falls into and calls the appropriate method to calculate the respective Julian day number of the Julian period.
date2jdn(int, int, int, int) - Static method in class datergf.DateRGF
Calculates the Julian day number of the Julian period from a date which belongs to the Julian or Gregorian calendar, depending on the flag argument.
DateFormatRGF - class datergf.DateFormatRGF.
This class helps to format DateRGF objects in strings, using various renderings. Temporary dev-infos: version date remark 0.9.2 2001-03-20 - adding option "S" for displaying milliseconds 2001-04-02 - introduced variant "JAVA" and "WABA" DateFormatRGF is an implementation of formatting dates and times using either the Java-style or the Unix-style keys (strfmt, escaping formatting keys with a percent sign "%").
DateFormatRGF() - Constructor for class datergf.DateFormatRGF
 
dateOrder - Static variable in class datergf.DateRGF
Stores the desired date ordering ( DTC.YMD, DTC.MDY, DTC.DMY).
DateRGF - class datergf.DateRGF.
DateRGF.DateRGF() is an implementation of Date which allows for date manipulations and date arithmetics.
DateRGF() - Constructor for class datergf.DateRGF
Creates a DateRGF object with all fields set to 1.
DateRGF(int, int, int) - Constructor for class datergf.DateRGF
Creates a DateRGF from the three integers, representing year, month and day.
dateSeparator - Static variable in class datergf.DateRGF
Stores the desired string to be used to delimit date fields in DateRGF.toString().
DateTimeRGF - class datergf.DateTimeRGF.
DateTimeRGF implements a class consisting of a DateRGF and TimeRGF.
DateTimeRGF() - Constructor for class datergf.DateTimeRGF
Creates a DateTimeRGF object set to "0001-01-01 00:00:00.000".
DateTimeRGF(DateRGF, TimeRGF) - Constructor for class datergf.DateTimeRGF
Creates a DateTimeRGF object set to the arguments date and time.
DateTimeRGF(int, int, int, int, int, int) - Constructor for class datergf.DateTimeRGF
Creates a DateTimeRGF object set to the values from the arguments.
DateTimeRGF(int, int, int, int, int, int, int) - Constructor for class datergf.DateTimeRGF
Creates a DateTimeRGF object set to the values from the arguments.
dateval(String, DateTimeRGF) - Static method in class datergf.DateFormatRGF
Returns a string, formatted according to the received key.
day - Variable in class datergf.DateRGF
Stores the day, a value between 1 and 28, 29, 30, 31, depending on the month and year.
DAY_FIELD - Static variable in interface datergf.DTC
Constant to refer to the DateRGF.day field in DateRGF.get(int flag) and DateRGF.set(int flag, int new_value).
dayNames - Static variable in class datergf.DateRGF
Stores the names of the days in an array of strings.
DAYS_IN_MONTH - Static variable in interface datergf.DTC
Constant 'total of days in month'.
daysInMonth(DateRGF) - Static method in class datergf.DateRGF
Determines the number of days for the date's month.
DECEMBER - Static variable in interface datergf.DTC
December, has value 12 (ISO).
defaultEpochDate - Static variable in class datergf.DateRGF
Stores the DateRGF to serve as the default epoch date.
defaultEpochFlag - Static variable in class datergf.DateRGF
Stores one of the epoch flags: DTC.EPOCH_MJD, DTC.EPOCH_MACINTOSH, DTC.EPOCH_PALM, DTC.EPOCH_JAVA, DTC.EPOCH_DOS, DTC.EPOCH_WIN32, DTC.EPOCH_USER.
DMY - Static variable in interface datergf.DTC
Constant to indicate the order Day/Month/Year.
DN - Static variable in interface datergf.DTC
Constant 'day name'.
DOW - Static variable in interface datergf.DTC
Constant 'day of week' (DOW).
dow_ord(DateRGF) - Static method in class datergf.DateRGF
Calculates the ordinal value of the day of week (DOW), which is relative to DateRGF.weekStart.
DOW_ORDINAL - Static variable in interface datergf.DTC
Constant 'day of week relative to day which begins the week (DateRGF.weekStart.
dow(DateRGF) - Static method in class datergf.DateRGF
Calculates the day of week (DOW).
DTC - interface datergf.DTC.
This interface serves as a container for constants used in the classes of the datergf package in order to minimize the needed space of compiled classes.

E

easter(DateRGF) - Static method in class datergf.DateRGF
Calculate Easter Sunday for the year of the date.
easter(int, int) - Static method in class datergf.DateRGF
Calculate the Julian (Orthodox) or Gregorian (Western) Easter Sunday for the given year.
ENCODED_AS_INTEGER - Static variable in interface datergf.DTC
Constant to indicate that DateRGF is encoded as an integer in the form of: year*10000+ month*100+ day.
ENCODED_AS_MILLIS - Static variable in interface datergf.DTC
Constant to indicate that the time is encoded as an integer representing the time as milliseconds relative to midnight.
ENCODED_AS_SECONDS - Static variable in interface datergf.DTC
Constant to indicate that the time is encoded as an integer representing the time as seconds relative to midnight.
EPOCH_DEFAULT - Static variable in interface datergf.DTC
Constant, to indicate to use the default epoch.
EPOCH_DOS - Static variable in interface datergf.DTC
Constant, epoch starts with 1980-01-01.
EPOCH_JAVA - Static variable in interface datergf.DTC
Constant, epoch starts with 1970-01-01.
EPOCH_MACINTOSH - Static variable in interface datergf.DTC
Constant, epoch starts with 1904-01-01.
EPOCH_MJD - Static variable in interface datergf.DTC
Constant, epoch starts with 1858-11-17 and denotes the epoch of the "modified julian day (MJD)" sometimes used in calendar algorithms.
EPOCH_PALM - Static variable in interface datergf.DTC
Constant, epoch starts with 1904-01-01.
EPOCH_USER - Static variable in interface datergf.DTC
Constant, epoch defined by the user (DateRGF.setDefaultEpochDate(int value).
EPOCH_WIN32 - Static variable in interface datergf.DTC
Constant, epoch starts with 1601-01-01.
epochDates - Static variable in class datergf.DateRGF
Stores the DateRGFs of the epochs.
equals(DateRGF) - Method in class datergf.DateRGF
Returns true if DateRGFs are equal (both have the same value in the fields DateRGF.year DateRGF.month DateRGF.day).
equals(DateTimeRGF) - Method in class datergf.DateTimeRGF
Implements the "Comparator.equals(Object obj)" interface.
equals(TimeRGF) - Method in class datergf.TimeRGF
Implements the "Comparator.equals(Object obj)" interface.

F

FEBRUARY - Static variable in interface datergf.DTC
February, has value (ISO).
findFirstDigit(String) - Static method in class datergf.DateFormatRGF
Searches a String and returns the 0-based index of the first digit character, -1 else.
format(String, Object) - Static method in class datergf.DateFormatRGF
Creates a string according to a format pattern, using objects of type DateTimeRGF, DateRGF or TimeRGF.
FRIDAY - Static variable in interface datergf.DTC
Friday, has value 5 (ISO).
fromJulianDate(int) - Static method in class datergf.DateRGF
Renders a Julian date into a DateRGF.

G

gED(int) - Static method in class datergf.DateRGF
Returns the DateRGF of the desired epoch.
get(int) - Method in class datergf.DateRGF
Allows to retrieve information about this DateRGF.
get(int) - Method in class datergf.TimeRGF
Allows to retrieve time fields and a rendering of TimeRGF to integer.
getDefaultEpochDate() - Static method in class datergf.DateRGF
Returns a clone (copy) of the presently defined epoch DateRGF.
getGregorianChange() - Static method in class datergf.DateRGF
Returns a clone of the DateRGF object which is set to the first date of the Gregorian calendar.
getStatic(int) - Static method in class datergf.DateRGF
Allows to query the static fields DateRGF.weekStart and DateRGF.dateOrder.
getString(int, int) - Static method in class datergf.DateRGF
Returns the name of the day or of the month according to flag.
GREGORIAN - Static variable in interface datergf.DTC
Constant to indicate the usage of the Gregorian calendar in the methods DateRGF.jdn2date(int jdn, DateRGF aDate, int flag) and DateRGF.date2jdn(int year, int month, int day, int flag).

H

hour - Variable in class datergf.TimeRGF
Stores the hour, a value between 0 and 23.
HOUR_FIELD - Static variable in interface datergf.DTC
Constant to refer to the hour field in get(int flag) and set(int flag, int new_value).
HY - Static variable in interface datergf.DTC
Constant 'half year' (semester).
HYB - Static variable in interface datergf.DTC
Constant 'half year begin' (semester begin).
HYE - Static variable in interface datergf.DTC
Constant 'half year end' (semester end).

I

is24Hour - Static variable in class datergf.TimeRGF
Indicates whether 24 hour clock (military time) or am/pm style is in effect in toString().
isLeapYear(DateRGF) - Static method in class datergf.DateRGF
Determines whether the given DateRGF is a leap year.
isoWeek(DateRGF) - Static method in class datergf.DateRGF
Determines into which week of the year the given DateRGF falls into using ISO rules.

J

JANUARY - Static variable in interface datergf.DTC
January, has value 1 (ISO).
jdn - Variable in class datergf.DateRGF
Stores the "jdn" ("Julian day number") value.
JDN - Static variable in interface datergf.DTC
Constant to refer to the DateRGF.jdn field in DateRGF.get(int flag) and DateRGF.set(int flag, int new_value).
jdn2date(int, DateRGF) - Static method in class datergf.DateRGF
Determines into which calendar a Julian day number of the Julian period falls into (Julian calendar or Gregorian calendar) and calls the appropriate method to set the date accordingly.
jdn2date(int, DateRGF, int) - Static method in class datergf.DateRGF
Sets the date belonging to the Julian calendar or Graegorian calendar according to the given Julian day number of the Julian period.
JULIAN - Static variable in interface datergf.DTC
Constant to indicate the usage of the Julian calendar in the methods DateRGF.jdn2date(int jdn, DateRGF aDate, int flag) and DateRGF.date2jdn(int year, int month, int day, int flag), or to indicate that a 'Julian date' (in the form 'YYYYddd') is desired in the method DateRGF.get(int flag).
JULY - Static variable in interface datergf.DTC
July, has value 7 (ISO).
JUNE - Static variable in interface datergf.DTC
June, has value 6 (ISO).

L

localize() - Static method in class datergf.DateFormatRGF
Sets the national language characteristics of the Date/Time/RGF package.
localize(Locale) - Static method in class datergf.DateFormatRGF
Sets the national language characteristics of the Date/Time/RGF package using the Java runtime information.

M

M - Static variable in interface datergf.DTC
Constant to refer to the DateRGF.month field in DateRGF.get(int flag) and DateRGF.set(int flag, int new_value).
MARCH - Static variable in interface datergf.DTC
March, has value 3 (ISO).
MAY - Static variable in interface datergf.DTC
May, has value 5 (ISO).
MB - Static variable in interface datergf.DTC
Constant 'month begin'.
MDY - Static variable in interface datergf.DTC
Constant to indicate the order Month/Day/Year.
ME - Static variable in interface datergf.DTC
Constant 'month end'.
millis - Variable in class datergf.TimeRGF
Stores the milliseconds, a value between 0 and 999.
MILLIS_FIELD - Static variable in interface datergf.DTC
Constant to refer to the millis field in get(int flag) and set(int flag, int new_value).
MILLIS_PER_DAY - Static variable in interface datergf.DTC
Millis in a full day (86.400.000).
MILLIS_PER_HOUR - Static variable in interface datergf.DTC
Millis in a full hour (3.600.000).
MILLIS_PER_MINUTE - Static variable in interface datergf.DTC
Millis in a full minute (60.000).
MILLIS_PER_SECOND - Static variable in interface datergf.DTC
Millis in a full second (1.000).
minute - Variable in class datergf.TimeRGF
Stores the minute, a value between 0 and 59.
MINUTE_FIELD - Static variable in interface datergf.DTC
Constant to refer to the minute field in get(int flag) and set(int flag, int new_value).
MN - Static variable in interface datergf.DTC
Constant 'month name'.
MONDAY - Static variable in interface datergf.DTC
Monday, has value 1 (ISO).
month - Variable in class datergf.DateRGF
Stores the month, a value between 1 and 12.
MONTH_FIELD - Static variable in interface datergf.DTC
Flag to refer to the DateRGF.month field in DateRGF.get(int flag) and DateRGF.set(int flag, int new_value).
monthNames - Static variable in class datergf.DateRGF
Stores the names of the months in an array of strings.

N

NAD - Static variable in interface datergf.DTC
Constant to indicate an impossible value for DateRGF.jdn, "Not A Date"
NOVEMBER - Static variable in interface datergf.DTC
November, has value 11 (ISO).

O

OCTOBER - Static variable in interface datergf.DTC
October, has value 10 (ISO).
options - Static variable in class datergf.DateFormatRGF
Supported format character keys in argument fmt of method DateFormatRGF.format(String fmt, Object obj).

P

pos(char, String, int) - Static method in class datergf.DateFormatRGF
Returns the 0-based position of needle in string, starting the search at the indicated 0-based start position, or -1, if not found.

Q

Q - Static variable in interface datergf.DTC
Constant 'quarter'.
QB - Static variable in interface datergf.DTC
Constant 'quarter begin'.
QE - Static variable in interface datergf.DTC
Constant 'quarter end'.

R

raw_millis - Variable in class datergf.TimeRGF
Stores the "raw milliseconds".
RAW_MILLIS_FIELD - Static variable in interface datergf.DTC
Constant to refer to the raw_millis field in get(int flag) and set(int flag, int new_value).
readObject(ObjectInputStream) - Method in class datergf.DateRGF
Overrides default java.io.Serializable by merely retrieving DateRGF.jdn.
readObject(ObjectInputStream) - Method in class datergf.TimeRGF
Overrides default java.io.Serializable by merely retrieving raw_millis.
ri(int) - Static method in class datergf.TimeRGF
Turn an integer into a two character String, right-adjusted with a leading 0 if necessary.
ri(int, int) - Static method in class datergf.DateRGF
Convert the primitive Java int tmp to a String and right adjust value with a leading 0 to two places, if necessary.
romanL - Static variable in class datergf.DateFormatRGF
Array of lowercase roman number strings (1 through 12).
romanU - Static variable in class datergf.DateFormatRGF
Array of uppercase roman number strings (1 through 12).

S

SATURDAY - Static variable in interface datergf.DTC
Saturday, has value 6 (ISO).
second - Variable in class datergf.TimeRGF
Stores the second, a value between 0 and 59.
SECOND_FIELD - Static variable in interface datergf.DTC
Constant to refer to the second field in get(int flag) and set(int flag, int new_value).
SECONDS_PER_DAY - Static variable in interface datergf.DTC
Seconds in a full day (86400).
SECONDS_PER_HOUR - Static variable in interface datergf.DTC
Seconds in a full hour (3600).
SECONDS_PER_MINUTE - Static variable in interface datergf.DTC
Seconds in a full minute (60).
SEPTEMBER - Static variable in interface datergf.DTC
September, has value 9 (ISO).
set(int, int) - Method in class datergf.DateRGF
Allows to set this DateRGF object to a specific date.
set(int, int) - Method in class datergf.TimeRGF
Allows to set the indicated time portion.
set(int, int, int) - Method in class datergf.DateRGF
Set all three DateRGF fields at once.
setDefaultEpochDate(int) - Static method in class datergf.DateRGF
Sets the DateRGF which presently serves as the epoch.
setGivenWeekday(int, DateRGF) - Static method in class datergf.DateRGF
From a given DateRGF calculate the previous or next date, which falls on one of the given weekdays.
setGregorianChange(int, int, int) - Static method in class datergf.DateRGF
Allows to set the date on which the usage of the Gregorian calendar starts.
setStatic(int, int) - Static method in class datergf.DateRGF
Allows to set the static fields DateRGF.weekStart and DateRGF.dateOrder.
setString(int, String[]) - Static method in class datergf.DateRGF
Alllows to set the names of the month or of the days according to flag.
showSecs - Static variable in class datergf.TimeRGF
Indicates whether second portion should be shown in toString().
stGC - Static variable in class datergf.DateRGF
Stores the date of the first day in the Gregorian calender.
subtract(DateRGF) - Method in class datergf.DateRGF
Calculates the differences (in number of days) between two DateRGFs.
subtract(DateTimeRGF) - Method in class datergf.DateTimeRGF
Subtracts a DateTimeRGF object from this one.
subtract(TimeRGF) - Method in class datergf.TimeRGF
Subtracts otherTimeRGF and returns the difference as a fraction.
SUNDAY - Static variable in interface datergf.DTC
Sunday, has value 7 (ISO).

T

THURSDAY - Static variable in interface datergf.DTC
Thursday, has value 4 (ISO).
time - Variable in class datergf.DateTimeRGF
TimeRGF field to store the time portion.
TimeRGF - class datergf.TimeRGF.
Class to implement the time of the day, consisting of the fields hour, minute, second and millis(econds).
TimeRGF() - Constructor for class datergf.TimeRGF
Creates a TimeRGF object with all fields set to 0.
TimeRGF(int, int, int) - Constructor for class datergf.TimeRGF
Creates a TimeRGF from the three integers, representing hour, minute and second.
TimeRGF(int, int, int, int) - Constructor for class datergf.TimeRGF
Creates a TimeRGF from the three integers, representing hour, minute and second.
timeSeparator - Static variable in class datergf.TimeRGF
Character to be used to delimit time fields in toString().
toFloat() - Method in class datergf.TimeRGF
Renders TimeRGF as a fraction of a day.
toInt(int) - Method in class datergf.DateTimeRGF
Renders the DateTimeRGF object into an int, encoded as seconds since/until the given epoch.
toInt(String, int, int) - Static method in class datergf.DateFormatRGF
Calculates the int value from a string built of digit characters only.
toJulianDate(DateRGF) - Static method in class datergf.DateRGF
Renders the DateRGF into a Julian date.
toLong(int) - Method in class datergf.DateTimeRGF
Renders the DateTimeRGF object into a long, encoded as milliseconds since/until the given epoch.
toString() - Method in class datergf.DateRGF
Returns time formatted into a string according to the fields DateRGF.dateSeparator, DateRGF.dateOrder.
toString() - Method in class datergf.DateTimeRGF
Render the DateTimeRGF object to a string.
toString() - Method in class datergf.TimeRGF
Renders TimeRGF as a String.
TUESDAY - Static variable in interface datergf.DTC
Tuesday, has value 2 (ISO).

U

update() - Method in class datergf.DateRGF
This method sets the DateRGF object to the actual local date of the system.
update() - Method in class datergf.DateTimeRGF
Updates the DateTimeRGF object to the actual local date and time of the machine.
update() - Method in class datergf.TimeRGF
This method sets the TimeRGF object to to the actual local time of the system.

V

valueOf(float) - Static method in class datergf.TimeRGF
Creates a TimeRGF object from a fraction of a day.
valueOf(int, int) - Static method in class datergf.DateRGF
Creates a DateRGF object by adding days to the given DateRGF (which may be an epoch date indicated by the appropriate constant).
valueOf(int, int) - Static method in class datergf.DateTimeRGF
Creates a DateTimeRGF from the unsigned int relative to the given epoch.
valueOf(int, int) - Static method in class datergf.TimeRGF
Creates a TimeRGF object from an integer, representing the time.
valueOf(int, long) - Static method in class datergf.DateTimeRGF
Creates a DateTimeRGF object from the number of milliseconds since/to the given epoch.
valueOf(String) - Static method in class datergf.DateRGF
Create a DateRGF object from a string containing a DateRGF encoded according to the present setting of DateRGF.dateOrder.
valueOf(String) - Static method in class datergf.TimeRGF
Create a TimeRGF object from a string containing a TimeRGF encoded exactly according to the present setting of the fields: timeSeparator, is24Hour and am_pm_string.
verify(char, char[]) - Static method in class datergf.DateFormatRGF
Verifies that needle is in character array of reference.

W

W - Static variable in interface datergf.DTC
Constant 'ISO week number'.
WB - Static variable in interface datergf.DTC
Constant 'week begin'.
WE - Static variable in interface datergf.DTC
Constant 'week end'.
WEDNESDAY - Static variable in interface datergf.DTC
Wednesday, has value 3 (ISO).
WEEK - Static variable in interface datergf.DTC
Constant 'ISO week number'.
WEEK_START - Static variable in interface datergf.DTC
Constant to refer to DateRGF.weekStart.
WEEKDAY - Static variable in interface datergf.DTC
Constant 'weekday' inidicating that the date is to be set to one of the given weekdays using the DateRGF.set(int flag, int number) method.
weekStart - Static variable in class datergf.DateRGF
Stores the day which starts the week.
writeObject(ObjectOutputStream) - Method in class datergf.DateRGF
Overrides default java.io.Serializable by merely storing DateRGF.jdn.
writeObject(ObjectOutputStream) - Method in class datergf.TimeRGF
Overrides default java.io.Serializable by merely storing raw_millis.

Y

Y - Static variable in interface datergf.DTC
Constant to refer to the DateRGF.year field in DateRGF.get(int flag) and DateRGF.set(int flag, int new_value).
YB - Static variable in interface datergf.DTC
Constant 'year begin'.
YE - Static variable in interface datergf.DTC
Constant 'year end'.
year - Variable in class datergf.DateRGF
Stores the year, a value between 1 and 9999.
YEAR_FIELD - Static variable in interface datergf.DTC
Constant to refer to the DateRGF.year field in DateRGF.get(int flag) and DateRGF.set(int flag, int new_value).
YMD - Static variable in interface datergf.DTC
Constant to indicate the order Year/Month/Day.

< A C D E F G H I J L M N O P Q R S T U V W Y
Rony G. Flatscher (c) 2001 (r), Date/Time simple manipulations, arithmetics, formatting, v0.9.2 (beta), 2001-04-07 (Java)