2005/5/9

     
 

class GregorianCalendar

artefaktur
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:

acdk::util::Calendar acdk::lang::Object acdk::io::Serializable acdk::lang::Cloneable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch 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
 

acdk::util::GregorianCalendar::~GregorianCalendar  ) 
 


Member Function Documentation

void acdk::util::GregorianCalendar::add int  field,
int  amount
[virtual]
 

Implements acdk::util::Calendar.

void acdk::util::GregorianCalendar::calculateDay int  day,
bool  gregorian
[private]
 

void acdk::util::GregorianCalendar::computeFields  )  [protected, virtual]
 

Implements acdk::util::Calendar.

void acdk::util::GregorianCalendar::computeTime  )  [protected, virtual]
 

Implements acdk::util::Calendar.

bool acdk::util::GregorianCalendar::equals IN(acdk::lang::Object obj  )  [virtual]
 

Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

See also:
serialized_equals()

Reimplemented from acdk::util::Calendar.

int acdk::util::GregorianCalendar::getActualMaximum int  field  ) 
 

Reimplemented from acdk::util::Calendar.

int acdk::util::GregorianCalendar::getActualMinimum int  field  ) 
 

Reimplemented from acdk::util::Calendar.

int acdk::util::GregorianCalendar::getGreatestMinimum int  field  )  [virtual]
 

Implements acdk::util::Calendar.

RDate acdk::util::GregorianCalendar::getGregorianChange IN(RDate date  )  [inline]
 

int acdk::util::GregorianCalendar::getLeastMaximum int  field  )  [virtual]
 

Implements acdk::util::Calendar.

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]
 

Implements acdk::util::Calendar.

int acdk::util::GregorianCalendar::getMinimum int  field  )  [virtual]
 

Implements acdk::util::Calendar.

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]
 

Implements acdk::util::Calendar.

void acdk::util::GregorianCalendar::setGregorianChange IN(RDate date  )  [inline]
 


Member Data Documentation

const int acdk::util::GregorianCalendar::_greatestMin[] [static, private]
 

jlong acdk::util::GregorianCalendar::_gregorianCutover [private]
 

const int acdk::util::GregorianCalendar::_leastMax[] [static, private]
 

const int acdk::util::GregorianCalendar::_maximum[] [static, private]
 

const int acdk::util::GregorianCalendar::_minimum[] [static, private]
 

const int acdk::util::GregorianCalendar::_tfDefault[] [static, private]
 

int acdk::util::GregorianCalendar::AD [static]
 

int acdk::util::GregorianCalendar::BC [static]
 

const jlong acdk::util::GregorianCalendar::DEFAULT_GREGORIANCUTOVER [static, private]