Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::util::GregorianCalendar Class Reference#include <GregorianCalendar.h>
Inheritance diagram for acdk::util::GregorianCalendar:
List of all members.
Detailed Description
This is a port from ClassPath GregorianCalendar.
java.util.GregorianCalendar: part of the Java Class Libraries project. Copyright (C) 1998 Jochen Hoenicke Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- Version:
- Revision
- 1.12
- Date:
- Date
- 2005/02/07 11:40:52
- Bug:
- only partly implemented Only the fields YEAR, MONTH and DAY_OF_MONTH works
|
Public Member Functions |
| GregorianCalendar () |
| GregorianCalendar (IN(RTimeZone) zone) |
| GregorianCalendar (IN(RLocale) locale) |
| GregorianCalendar (IN(RTimeZone) zone, IN(RLocale) locale) |
| GregorianCalendar (int year, int month, int day) |
| GregorianCalendar (int year, int month, int day, int hour, int minute) |
| GregorianCalendar (int year, int month, int day, int hour, int minute, int second) |
| ~GregorianCalendar () |
void | setGregorianChange (IN(RDate) date) |
RDate | getGregorianChange (IN(RDate) date) |
bool | isLeapYear (int year) |
bool | equals (IN(acdk::lang::Object) obj) |
| Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.
|
void | add (int field, int amount) |
void | roll (int field, bool up) |
int | getMinimum (int field) |
int | getMaximum (int field) |
int | getGreatestMinimum (int field) |
int | getLeastMaximum (int field) |
int | getActualMinimum (int field) |
int | getActualMaximum (int field) |
Static Public Attributes |
int | BC |
int | AD |
Protected Member Functions |
void | computeTime () |
void | computeFields () |
Private Member Functions |
int | getLinearDay (int year, int dayOfYear, bool gregorian) |
jlong | getLinearTime (int year, int dayOfYear, int millis) |
int | getWeekDay (int year, int dayOfYear) |
void | calculateDay (int day, bool gregorian) |
Private Attributes |
jlong | _gregorianCutover |
Static Private Attributes |
const jlong | DEFAULT_GREGORIANCUTOVER |
const int | _minimum [] |
const int | _maximum [] |
const int | _greatestMin [] |
const int | _leastMax [] |
const int | _tfDefault [] |
Constructor & Destructor Documentation
acdk::util::GregorianCalendar::GregorianCalendar |
( |
|
) |
|
|
acdk::util::GregorianCalendar::GregorianCalendar |
( |
IN(RTimeZone) |
zone |
) |
|
|
acdk::util::GregorianCalendar::GregorianCalendar |
( |
IN(RLocale) |
locale |
) |
|
|
acdk::util::GregorianCalendar::GregorianCalendar |
( |
IN(RTimeZone) |
zone, |
|
|
IN(RLocale) |
locale |
|
) |
|
|
acdk::util::GregorianCalendar::GregorianCalendar |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day |
|
) |
|
|
acdk::util::GregorianCalendar::GregorianCalendar |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour, |
|
|
int |
minute |
|
) |
|
|
acdk::util::GregorianCalendar::GregorianCalendar |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour, |
|
|
int |
minute, |
|
|
int |
second |
|
) |
|
|
Member Function Documentation
void acdk::util::GregorianCalendar::add |
( |
int |
field, |
|
|
int |
amount |
|
) |
[virtual] |
|
void acdk::util::GregorianCalendar::calculateDay |
( |
int |
day, |
|
|
bool |
gregorian |
|
) |
[private] |
|
void acdk::util::GregorianCalendar::computeFields |
( |
|
) |
[protected, virtual] |
|
void acdk::util::GregorianCalendar::computeTime |
( |
|
) |
[protected, virtual] |
|
int acdk::util::GregorianCalendar::getActualMaximum |
( |
int |
field |
) |
|
|
int acdk::util::GregorianCalendar::getActualMinimum |
( |
int |
field |
) |
|
|
int acdk::util::GregorianCalendar::getGreatestMinimum |
( |
int |
field |
) |
[virtual] |
|
RDate acdk::util::GregorianCalendar::getGregorianChange |
( |
IN(RDate) |
date |
) |
[inline] |
|
int acdk::util::GregorianCalendar::getLeastMaximum |
( |
int |
field |
) |
[virtual] |
|
int acdk::util::GregorianCalendar::getLinearDay |
( |
int |
year, |
|
|
int |
dayOfYear, |
|
|
bool |
gregorian |
|
) |
[private] |
|
jlong acdk::util::GregorianCalendar::getLinearTime |
( |
int |
year, |
|
|
int |
dayOfYear, |
|
|
int |
millis |
|
) |
[private] |
|
int acdk::util::GregorianCalendar::getMaximum |
( |
int |
field |
) |
[virtual] |
|
int acdk::util::GregorianCalendar::getMinimum |
( |
int |
field |
) |
[virtual] |
|
int acdk::util::GregorianCalendar::getWeekDay |
( |
int |
year, |
|
|
int |
dayOfYear |
|
) |
[private] |
|
bool acdk::util::GregorianCalendar::isLeapYear |
( |
int |
year |
) |
|
|
void acdk::util::GregorianCalendar::roll |
( |
int |
field, |
|
|
bool |
up |
|
) |
[virtual] |
|
void acdk::util::GregorianCalendar::setGregorianChange |
( |
IN(RDate) |
date |
) |
[inline] |
|
Member Data Documentation
|