|
|
|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::util::SysDate Class Reference#include <SysDate.h>
Inheritance diagram for acdk::util::SysDate:
List of all members.
Detailed Description
API: Java<br/>.
- Author:
- Roger Rene Kommer (mailto:kommer@artefaktur.com)
- Version:
- Revision
- 1.24
- Date:
- Date
- 2005/04/09 19:26:57
|
Public Member Functions |
| | SysDate () |
| | SysDate (jlong date) |
| | date are milliseconds since 1970-01-01T00:00:00:000
|
| | SysDate (IN(RString) s, IN(RString) format=Nil) |
| | SysDate (int year, int month, int day) |
| | SysDate (int year, int month, int day, int hour, int min) |
| | SysDate (int year, int month, int day, int hour, int min, int sec) |
| | SysDate (int sec, int usec) |
| virtual | ~SysDate () |
| bool | after (IN(RSysDate) when) |
| bool | before (IN(RSysDate) when) |
| virtual acdk::lang::Object | clone () |
| virtual acdk::lang::Object | clone (sys::Allocator *alc) |
| virtual int | compareTo (IN(RSysDate) other) |
| virtual int | compareTo (IN(acdk::lang::RObject) 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 () |
| | return time in milliseconds since 1970
|
| virtual RString | toString () |
| | return a string representation of this object Object::toString() return getName() by default
|
| int | getDate () |
| int | getDay () |
| int | getHours () |
| int | getMinutes () |
| int | getMonth () |
| int | getSeconds () |
| int | getTimezoneOffset () |
| int | getYear () |
| void | setDate (int date) |
| void | setDay (int day) |
| void | setHours (int hours) |
| void | setMinutes (int minutes) |
| void | setMonth (int month) |
| void | setSeconds (int seconds) |
| void | setYear (int year) |
| RString | toGMTString () |
| RString | toLocaleString () |
| RString | getTimeStamp (IN(RString) format=Nil) |
| int | getUSecs () |
| int | getSecs () |
| RSysDate | addMilliseconds (jlong millies) |
| | create a new SysDate with offset of millisends
|
| jlong | diffMilliseconds (INP(RSysDate) other) |
| | return the difference in milliseconds
|
Static Public Member Functions |
| jlong | UTC (int year, int month, int day, int hour, int min, int sec) |
| jlong | parse (IN(RString) s, IN(RString) format=Nil) |
| acdk::lang::Object | create_instance () |
| jlong | getTickCount () |
| jlong | fileTimeToTime (const FILETIME &ft) |
| void | timeToFileTime (jlong t, FILETIME &ft) |
Protected Member Functions |
| void | syncFields () |
| void | syncTime () |
Private Types |
| typedef ::tm | timefiles |
Private Attributes |
| int | _seconds |
| int | _useconds |
| bool | _isSyncFields |
| bool | _isSyncTime |
| timefiles | _fields |
Member Typedef Documentation
Constructor & Destructor Documentation
| acdk::util::SysDate::SysDate |
( |
|
) |
|
|
| acdk::util::SysDate::SysDate |
( |
jlong |
date |
) |
|
|
|
|
date are milliseconds since 1970-01-01T00:00:00:000
|
| acdk::util::SysDate::SysDate |
( |
IN(RString) |
s, |
|
|
IN(RString) |
format = Nil |
|
) |
|
|
| acdk::util::SysDate::SysDate |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day |
|
) |
|
|
| acdk::util::SysDate::SysDate |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour, |
|
|
int |
min |
|
) |
|
|
| acdk::util::SysDate::SysDate |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour, |
|
|
int |
min, |
|
|
int |
sec |
|
) |
|
|
| acdk::util::SysDate::SysDate |
( |
int |
sec, |
|
|
int |
usec |
|
) |
[inline] |
|
| virtual acdk::util::SysDate::~SysDate |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
| RSysDate acdk::util::SysDate::addMilliseconds |
( |
jlong |
millies |
) |
[inline] |
|
|
|
create a new SysDate with offset of millisends
|
| bool acdk::util::SysDate::after |
( |
IN(RSysDate) |
when |
) |
[inline] |
|
| bool acdk::util::SysDate::before |
( |
IN(RSysDate) |
when |
) |
[inline] |
|
| virtual acdk::lang::Object acdk::util::SysDate::clone |
( |
sys::Allocator * |
alc |
) |
[inline, virtual] |
|
| virtual int acdk::util::SysDate::compareTo |
( |
IN(RSysDate) |
other |
) |
[inline, virtual] |
|
| jlong acdk::util::SysDate::diffMilliseconds |
( |
INP(RSysDate) |
other |
) |
[inline] |
|
|
|
return the difference in milliseconds
- Parameters:
-
| other | if other is younger, returned value is negative |
|
| jlong acdk::util::SysDate::fileTimeToTime |
( |
const FILETIME & |
ft |
) |
[static] |
|
| int acdk::util::SysDate::getDate |
( |
|
) |
|
|
| int acdk::util::SysDate::getDay |
( |
|
) |
|
|
| int acdk::util::SysDate::getHours |
( |
|
) |
|
|
| int acdk::util::SysDate::getMinutes |
( |
|
) |
|
|
| int acdk::util::SysDate::getMonth |
( |
|
) |
|
|
| int acdk::util::SysDate::getSeconds |
( |
|
) |
|
|
| int acdk::util::SysDate::getSecs |
( |
|
) |
[inline] |
|
| jlong acdk::util::SysDate::getTickCount |
( |
|
) |
[static] |
|
| jlong acdk::util::SysDate::getTime |
( |
|
) |
[inline] |
|
|
|
return time in milliseconds since 1970
|
| RString acdk::util::SysDate::getTimeStamp |
( |
IN(RString) |
format = Nil |
) |
|
|
| int acdk::util::SysDate::getTimezoneOffset |
( |
|
) |
|
|
| int acdk::util::SysDate::getUSecs |
( |
|
) |
[inline] |
|
| int acdk::util::SysDate::getYear |
( |
|
) |
|
|
| virtual int acdk::util::SysDate::hashCode |
( |
|
) |
[inline, virtual] |
|
| void acdk::util::SysDate::setDate |
( |
int |
date |
) |
|
|
| void acdk::util::SysDate::setDay |
( |
int |
day |
) |
|
|
| void acdk::util::SysDate::setHours |
( |
int |
hours |
) |
|
|
| void acdk::util::SysDate::setMinutes |
( |
int |
minutes |
) |
|
|
| void acdk::util::SysDate::setMonth |
( |
int |
month |
) |
|
|
| void acdk::util::SysDate::setSeconds |
( |
int |
seconds |
) |
|
|
| void acdk::util::SysDate::setYear |
( |
int |
year |
) |
|
|
| void acdk::util::SysDate::syncFields |
( |
|
) |
[protected] |
|
| void acdk::util::SysDate::syncTime |
( |
|
) |
[protected] |
|
| void acdk::util::SysDate::timeToFileTime |
( |
jlong |
t, |
|
|
FILETIME & |
ft |
|
) |
[static] |
|
| RString acdk::util::SysDate::toGMTString |
( |
|
) |
|
|
| RString acdk::util::SysDate::toLocaleString |
( |
|
) |
|
|
| virtual RString acdk::util::SysDate::toString |
( |
|
) |
[virtual] |
|
| jlong acdk::util::SysDate::UTC |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour, |
|
|
int |
min, |
|
|
int |
sec |
|
) |
[static] |
|
Member Data Documentation
|
|