2005/5/9

     
 

class Date

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::util::Date Class Reference

#include <Date.h>

Inheritance diagram for acdk::util::Date:

acdk::lang::Object acdk::io::Serializable acdk::lang::Cloneable acdk::lang::Comparable acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::sql::Time acdk::sql::Timestamp List of all members.

Detailed Description

API: Java<br/>.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.17
Date:
Date
2005/04/09 19:26:56


Public Member Functions

 Date ()
 Date (jlong date)
 date are milliseconds since 1970-01-01T00:00:00:000

 Date (IN(RString) s)
 Date (int sec, int usec)
 Date (int year, int month, int day)
 Date (int year, int month, int day, int hour, int min)
 Date (int year, int month, int day, int hour, int min, int sec)
virtual ~Date ()
bool after (IN(RDate) when)
bool before (IN(RDate) when)
virtual acdk::lang::Object clone ()
virtual acdk::lang::Object clone (sys::Allocator *alc)
virtual int compareTo (IN(RDate) other)
virtual int compareTo (IN(acdk::lang::Object) o)
virtual 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.

virtual int hashCode ()
jlong getTime ()
virtual RString toString ()
 return a string representation of this object Object::toString() return getName() by default

RString getTimeStamp ()
int getUSecs ()
int getSecs ()
int getYear ()

Static Public Member Functions

acdk::lang::Object create_instance ()
jlong getTickCount ()

Private Attributes

jlong _date


Constructor & Destructor Documentation

acdk::util::Date::Date  ) 
 

acdk::util::Date::Date jlong  date  ) 
 

date are milliseconds since 1970-01-01T00:00:00:000

acdk::util::Date::Date IN(RString s  ) 
 

acdk::util::Date::Date int  sec,
int  usec
[inline]
 

acdk::util::Date::Date int  year,
int  month,
int  day
 

acdk::util::Date::Date int  year,
int  month,
int  day,
int  hour,
int  min
 

acdk::util::Date::Date int  year,
int  month,
int  day,
int  hour,
int  min,
int  sec
 

virtual acdk::util::Date::~Date  )  [inline, virtual]
 


Member Function Documentation

bool acdk::util::Date::after IN(RDate when  )  [inline]
 

bool acdk::util::Date::before IN(RDate when  )  [inline]
 

virtual acdk::lang::Object acdk::util::Date::clone sys::Allocator *  alc  )  [inline, virtual]
 

Reimplemented from acdk::lang::Cloneable.

virtual acdk::lang::Object acdk::util::Date::clone  )  [inline, virtual]
 

Implements acdk::lang::Cloneable.

virtual int acdk::util::Date::compareTo IN(acdk::lang::Object o  )  [virtual]
 

Parameters:
acdk::lang::Object The acdk::lang::Object to compare

Implements acdk::lang::Comparable.

virtual int acdk::util::Date::compareTo IN(RDate other  )  [inline, virtual]
 

acdk::lang::Object acdk::util::Date::create_instance  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

virtual bool acdk::util::Date::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::lang::Object.

int acdk::util::Date::getSecs  )  [inline]
 

jlong acdk::util::Date::getTickCount  )  [static]
 

jlong acdk::util::Date::getTime  )  [inline]
 

RString acdk::util::Date::getTimeStamp  ) 
 

int acdk::util::Date::getUSecs  )  [inline]
 

int acdk::util::Date::getYear  ) 
 

virtual int acdk::util::Date::hashCode  )  [inline, virtual]
 

See also:
serialized_hashCode

Reimplemented from acdk::lang::Object.

virtual RString acdk::util::Date::toString  )  [virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.

Reimplemented in acdk::sql::Time, and acdk::sql::Timestamp.


Member Data Documentation

jlong acdk::util::Date::_date [private]