C++ main module for gpm Package  1.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
CORE_Time Class Reference

this class describes a time class More...

#include <CORE_Time.h>

Inheritance diagram for CORE_Time:
Inheritance graph
[legend]
Collaboration diagram for CORE_Time:
Collaboration graph
[legend]

Public Member Functions

long int getCPUTime () const
 return the CPU time in 1/60 seconds More...
 
int getWeekYear (int &year) const
 get the week of the year More...
 
int getYear () const
 return the year More...
 
int getMonth () const
 return the month More...
 
int getDaysNumberInMonth () const
 return the number of days in month More...
 
int getDay () const
 return the day More...
 
tString getWeekIntervalString ()
 get the week interval monday –> Sunday of the current time More...
 
void setToFirstWeekDay (const int &year, const int &week)
 set the date to the first week day week must be in [1..53] the first day is a monday More...
 
void setToWeekDay (const int &year, const int &week, const int &day)
 set the date to the week day week must be in [1..53] day in [0,6] 0:MONDAY....6:SUNDAY the first day is a monday More...
 
int getWeekDay () const
 return the day of the week 0:Sunday [0..6] More...
 
int getMinutes () const
 return the minutes of the time More...
 
int getSeconds () const
 return the seconds of the time More...
 
int getHours () const
 return the hours of the time More...
 
int getMilliSeconds () const
 return the milliseconds seconds of the time More...
 
tTime getSecondsSince1900 () const
 return the number of seconds since 1900 More...
 
void setDate (const tTime &seconds)
 set the date from 1900 in seconds More...
 
void setDate (const int &year, const int &month, const int &day, const int &hour, const int &minutes, const int &seconds, const int &ms)
 set the date year>=0 month in [1,12] day in [1,31] More...
 
void setDate (const int &year, const int &month, const int &day, const int &hour, const int &minutes, const int &seconds)
 set the date year>=0 month in [1,12] day in [1,31] More...
 
void setDate (int year, int month, int day)
 set the date year>=0 month in [1,12] More...
 
void setDate (const tString &date)
 set the date from a string year-month-day More...
 
void setDate (const CORE_Time &time)
 set the date from a string year-month-day More...
 
void setDate (SP::CORE_Time time)
 set the date from a string year-month-day More...
 
void setDate (const CORE_Time *time)
 set the date from a string year-month-day More...
 
void setDate (const tString &date, const tString &format)
 set the date from a string date and with format More...
 
void setHour (const tString &h)
 set hour xxhyy More...
 
void setTime (const int &hour, const int &minutes, const int &seconds)
 set the time More...
 
void setTime (const tString &date)
 set the time from a string hour:min:sec More...
 
tRelativeInteger sub (const CORE_Time &time2) const
 get the difference with time2 this -time2 in secunds More...
 
tRelativeInteger sub (const SP::CORE_Time &time2) const
 get the difference with time2 this -time2 in secunds More...
 
tRelativeInteger sub (const CORE_Time *time2) const
 get the difference with time2 this -time2 in secunds More...
 
tRelativeInteger subInMilliSeconds (const CORE_Time &time2) const
 get the difference with time2 this -time2 in secunds More...
 
tRelativeInteger subInMilliSeconds (const SP::CORE_Time &time2) const
 get the difference with time2 this -time2 in secunds More...
 
tRelativeInteger subInMilliSeconds (const CORE_Time *time2) const
 get the difference with time2 this -time2 in secunds More...
 
void setToNextDay ()
 set to next day More...
 
void setToPreviousDay ()
 set to previous day More...
 
void setToPreviousDays (const int &nDays)
 set to days ago More...
 
void setToNextMonth ()
 set to next month More...
 
void setToPreviousMonth ()
 set to previous month More...
 
void setToNextWeek ()
 set to next week More...
 
void setToPreviousWeek ()
 set to previoust week More...
 
void setToLastDay (const int &year, const int &month)
 set to last day of month More...
 
tBoolean isEqual (const CORE_Time *t) const
 return true if the 2 dates are equals More...
 
tBoolean isEqual (const CORE_Time &t) const
 return true if the 2 dates are equals More...
 
tBoolean isBefore (const CORE_Time &t) const
 return true if this < t More...
 
tBoolean isBefore (const CORE_Time *t) const
 return true if this < t More...
 
tBoolean isAfter (const CORE_Time &t) const
 return true if this > t More...
 
tBoolean isAfter (const CORE_Time *t) const
 return true if this > t More...
 
tBoolean isBeforeOrEqual (const CORE_Time &t) const
 return true if this <= t More...
 
tBoolean isAfterOrEqual (const CORE_Time &t) const
 return true if this >= t More...
 
tBoolean isEqual (const SP::CORE_Time &t) const
 return true if the 2 dates are equals More...
 
tBoolean isBefore (const SP::CORE_Time &t) const
 return true if this < t More...
 
tBoolean isAfter (const SP::CORE_Time &t) const
 return true if this > t More...
 
tBoolean isBeforeOrEqual (const SP::CORE_Time &t) const
 return true if this <= t More...
 
tBoolean isAfterOrEqual (const SP::CORE_Time &t) const
 return true if this >= t More...
 
virtual tString toString () const
 return the time into a string More...
 
tString toString (const tString &format) const
 return the time into a string with format More...
 
void getSharedPointer (SP::CORE_Object &p)
 get the shared pointer of this class into p More...
 
void getSharedPointer (SPC::CORE_Object &p) const
 get the shared pointer of this class into p More...
 
tString getClassName () const
 return the class name of the object More...
 
tString getIdentityString () const
 return the identity string of the object of the form className_at_address More...
 
tString getPointerAddress () const
 return the identity string of the object More...
 
template<class T >
tBoolean isInstanceOf () const
 return true if the object is an instance of T More...
 
virtual void print ()
 print the class More...
 
virtual ostream & print (ostream &out) const
 print the class More...
 
virtual void print (const tString &message)
 print the class More...
 
virtual void print (const tInteger &str)
 print More...
 
virtual void print (const tRelativeInteger &str)
 print More...
 
virtual void print (const tReal &str)
 print More...
 
virtual void print (const int &str)
 print More...
 

Static Public Member Functions

static SP::CORE_Time New ()
 creates a time object More...
 
static SP::CORE_Time New (const CORE_Time &time)
 creates a time object More...
 
static SP::CORE_Time New (const CORE_Time *time)
 creates a time object More...
 
static SP::CORE_Time New (const tTime &time)
 creates a time object More...
 
static SP::CORE_Time New (const SP::CORE_Time &time)
 creates a time object More...
 
static SP::CORE_Time New (const int &year, const int &month, const int &day)
 creates a time object year > 1900 month [1,12] day [1,31] More...
 
static tTime getDateInSeconds ()
 return the time in 1/60 seconds More...
 
static tTime getDateInMilliSeconds ()
 return the time in 1/60 seconds More...
 
static long int getTime ()
 return the time in 1/60 seconds More...
 
static tString getWeekIntervalString (const int &year, const int &week)
 get the week interval monday –> sunday week in [1...53] More...
 
static tRelativeInteger subTimes (const CORE_Time &time1, const CORE_Time &time2)
 get the difference betwen two dates in secund time1-time2 More...
 
static tRelativeInteger subTimes (const SP::CORE_Time &time1, const SP::CORE_Time &time2)
 get the difference betwen two dates in secund time1-time2 More...
 
static tRelativeInteger subTimesInMilliSeconds (const CORE_Time &time1, const CORE_Time &time2)
 get the difference betwen two dates in milli-secund time1-time2 More...
 
static tRelativeInteger subTimesInMilliSeconds (const SP::CORE_Time &time1, const SP::CORE_Time &time2)
 get the difference betwen two dates in secund time1-time2 More...
 
static tString getDuration (const long int &duration, int &days, int &hours, int &minutes, int &seconds, int &ms)
 get duration More...
 
static tString getDuration (const long int &duration)
 get duration More...
 
static tString getClassName (const tString &identityString)
 return the class name of the object using only the identity string More...
 
template<class T >
static tString getTypeName ()
 get type name More...
 
static tBoolean is64Architecture ()
 return true if the machine is a 64 bits machine More...
 
static tBoolean is32Architecture ()
 return true if the machine is a 32 bits machine More...
 
static tString pointer2String (const void *obj)
 return the string represantation of a pointer More...
 
static void setOutput (ostream &out)
 set output More...
 
static ostream & getOutput ()
 get output More...
 
static void printObjectsInMemory ()
 print object in memory More...
 
static ostream & print (ostream &out, const tString &message)
 print the class More...
 
static void outputPrint (const tString &message)
 

Static Public Attributes

static const tTime MAX_YEAR =1900+ULONG_MAX/(3600*24*365)
 MAX number of years. More...
 
static const tString DAYS []
 days names in english More...
 
static const tString JOURS []
 days names in french More...
 
static const tString MONTHS []
 month names in english More...
 
static const tString MOIS []
 month names in french More...
 
static tBoolean mIsMemoryTesting =false
 indicator to store all classes created and deleted only for debuging version More...
 

Protected Member Functions

 CORE_Time ()
 create a general time object More...
 
virtual ~CORE_Time ()
 remove More...
 
void setThis (SP::CORE_Object p)
 set this weak shared pointer called toDoAfterThis setting method More...
 
virtual void setType (tString type)
 set the type of the object More...
 
virtual void toDoAfterThisSetting ()
 method called after setThis() method this method can oly be called once. More...
 

Detailed Description

this class describes a time class

Attributes:

Author
Stéphane Despréaux
Version
1.0

Constructor & Destructor Documentation

CORE_Time::CORE_Time ( )
protected

create a general time object

Referenced by New().

Here is the caller graph for this function:

CORE_Time::~CORE_Time ( )
protectedvirtual

remove

Member Function Documentation

static tString CORE_Object::getClassName ( const tString identityString)
inlinestaticinherited

return the class name of the object using only the identity string

Referenced by CORE_Object::printObjectsInMemory().

Here is the caller graph for this function:

tString CORE_Object::getClassName ( ) const
inherited

return the class name of the object

Returns
the class name of the object

References tString.

Referenced by CORE_Object::getIdentityString().

Here is the caller graph for this function:

long int CORE_Time::getCPUTime ( ) const
inline

return the CPU time in 1/60 seconds

static tTime CORE_Time::getDateInMilliSeconds ( )
inlinestatic

return the time in 1/60 seconds

References New(), and tTime.

Referenced by getTime().

Here is the call graph for this function:

Here is the caller graph for this function:

static tTime CORE_Time::getDateInSeconds ( )
inlinestatic

return the time in 1/60 seconds

References New(), and tTime.

Here is the call graph for this function:

int CORE_Time::getDay ( ) const
inline

return the day

[1..31]

Referenced by setDate().

Here is the caller graph for this function:

int CORE_Time::getDaysNumberInMonth ( ) const
inline

return the number of days in month

References New().

Here is the call graph for this function:

tString CORE_Time::getDuration ( const long int &  duration,
int &  days,
int &  hours,
int &  minutes,
int &  seconds,
int &  ms 
)
static

get duration

References CORE_String::toString(), and tString.

Referenced by getDuration().

Here is the call graph for this function:

Here is the caller graph for this function:

static tString CORE_Time::getDuration ( const long int &  duration)
inlinestatic

get duration

References getDuration().

Here is the call graph for this function:

int CORE_Time::getHours ( ) const
inline

return the hours of the time

[0..23]

Referenced by setDate().

Here is the caller graph for this function:

tString CORE_Object::getIdentityString ( ) const
inlineinherited

return the identity string of the object of the form className_at_address

Returns
the identity string of the object

References CORE_Object::getClassName(), CORE_Object::pointer2String(), and tString.

Referenced by CORE_Object::toString().

Here is the call graph for this function:

Here is the caller graph for this function:

int CORE_Time::getMilliSeconds ( ) const
inline

return the milliseconds seconds of the time

Referenced by subInMilliSeconds(), and subTimesInMilliSeconds().

Here is the caller graph for this function:

int CORE_Time::getMinutes ( ) const
inline

return the minutes of the time

[0..59]

Referenced by setDate().

Here is the caller graph for this function:

int CORE_Time::getMonth ( ) const
inline

return the month

[1..12]

Referenced by setDate().

Here is the caller graph for this function:

static ostream& CORE_Object::getOutput ( )
inlinestaticinherited

get output

tString CORE_Object::getPointerAddress ( ) const
inlineinherited

return the identity string of the object

Returns
the identity string of the object

References CORE_Object::pointer2String().

Here is the call graph for this function:

int CORE_Time::getSeconds ( ) const
inline

return the seconds of the time

[0..60]

Referenced by setDate().

Here is the caller graph for this function:

tTime CORE_Time::getSecondsSince1900 ( ) const
inline

return the number of seconds since 1900

Referenced by isAfter(), isAfterOrEqual(), isBefore(), isBeforeOrEqual(), isEqual(), setToFirstWeekDay(), setToWeekDay(), sub(), subInMilliSeconds(), subTimes(), and subTimesInMilliSeconds().

Here is the caller graph for this function:

void CORE_Object::getSharedPointer ( SP::CORE_Object &  p)
inlineinherited
void CORE_Object::getSharedPointer ( SPC::CORE_Object &  p) const
inlineinherited

get the shared pointer of this class into p

static long int CORE_Time::getTime ( )
inlinestatic

return the time in 1/60 seconds

References getDateInMilliSeconds().

Here is the call graph for this function:

template<class T >
static tString CORE_Object::getTypeName ( )
inlinestaticinherited

get type name

References tString.

int CORE_Time::getWeekDay ( ) const
inline

return the day of the week 0:Sunday [0..6]

tString CORE_Time::getWeekIntervalString ( const int &  year,
const int &  week 
)
static

get the week interval monday –> sunday week in [1...53]

References ASSERT_IN, MAX_YEAR, New(), CORE_Integer::toString(), and tString.

Here is the call graph for this function:

tString CORE_Time::getWeekIntervalString ( )
inline

get the week interval monday –> Sunday of the current time

int CORE_Time::getWeekYear ( int &  year) const
inline

get the week of the year

[1...53]

int CORE_Time::getYear ( ) const
inline

return the year

Referenced by setDate().

Here is the caller graph for this function:

static tBoolean CORE_Object::is32Architecture ( )
inlinestaticinherited

return true if the machine is a 32 bits machine

References CORE_Object::is64Architecture().

Here is the call graph for this function:

tBoolean CORE_Object::is64Architecture ( )
staticinherited

return true if the machine is a 64 bits machine

Referenced by CORE_Object::is32Architecture().

Here is the caller graph for this function:

tBoolean CORE_Time::isAfter ( const CORE_Time t) const
inline

return true if this > t

References getSecondsSince1900().

Here is the call graph for this function:

tBoolean CORE_Time::isAfter ( const CORE_Time t) const
inline

return true if this > t

References getSecondsSince1900(), and null.

Here is the call graph for this function:

tBoolean CORE_Time::isAfter ( const SP::CORE_Time &  t) const
inline

return true if this > t

tBoolean CORE_Time::isAfterOrEqual ( const CORE_Time t) const
inline

return true if this >= t

References getSecondsSince1900().

Here is the call graph for this function:

tBoolean CORE_Time::isAfterOrEqual ( const SP::CORE_Time &  t) const
inline

return true if this >= t

tBoolean CORE_Time::isBefore ( const CORE_Time t) const
inline

return true if this < t

References getSecondsSince1900().

Here is the call graph for this function:

tBoolean CORE_Time::isBefore ( const CORE_Time t) const
inline

return true if this < t

References getSecondsSince1900(), and null.

Here is the call graph for this function:

tBoolean CORE_Time::isBefore ( const SP::CORE_Time &  t) const
inline

return true if this < t

References getSecondsSince1900().

Here is the call graph for this function:

tBoolean CORE_Time::isBeforeOrEqual ( const CORE_Time t) const
inline

return true if this <= t

References getSecondsSince1900().

Here is the call graph for this function:

tBoolean CORE_Time::isBeforeOrEqual ( const SP::CORE_Time &  t) const
inline

return true if this <= t

References getSecondsSince1900().

Here is the call graph for this function:

tBoolean CORE_Time::isEqual ( const CORE_Time t) const
inline

return true if the 2 dates are equals

References getSecondsSince1900(), and null.

Here is the call graph for this function:

tBoolean CORE_Time::isEqual ( const CORE_Time t) const
inline

return true if the 2 dates are equals

References getSecondsSince1900().

Here is the call graph for this function:

tBoolean CORE_Time::isEqual ( const SP::CORE_Time &  t) const
inline

return true if the 2 dates are equals

template<class T >
tBoolean CORE_Object::isInstanceOf ( ) const
inlineinherited

return true if the object is an instance of T

References null.

Referenced by MATH_BinaryOperator::insertInTree(), MATH_UnaryOperator::insertInTree(), and MATH_EndBlock::insertInTree().

Here is the caller graph for this function:

static SP::CORE_Time CORE_Time::New ( )
inlinestatic

creates a time object

References CORE_Time().

Referenced by getDateInMilliSeconds(), getDateInSeconds(), getDaysNumberInMonth(), getWeekIntervalString(), GPMG_MovieGraphDrawPanel::GPMG_MovieGraphDrawPanel(), and New().

Here is the call graph for this function:

Here is the caller graph for this function:

static SP::CORE_Time CORE_Time::New ( const CORE_Time time)
inlinestatic

creates a time object

References New().

Here is the call graph for this function:

static SP::CORE_Time CORE_Time::New ( const CORE_Time time)
inlinestatic

creates a time object

References New(), and null.

Here is the call graph for this function:

static SP::CORE_Time CORE_Time::New ( const tTime time)
inlinestatic

creates a time object

References New().

Here is the call graph for this function:

static SP::CORE_Time CORE_Time::New ( const SP::CORE_Time &  time)
inlinestatic

creates a time object

References New().

Here is the call graph for this function:

static SP::CORE_Time CORE_Time::New ( const int &  year,
const int &  month,
const int &  day 
)
inlinestatic

creates a time object year > 1900 month [1,12] day [1,31]

References CORE_Time().

Here is the call graph for this function:

void CORE_Object::outputPrint ( const tString message)
staticinherited

print on output

References null, and CORE_Object::print().

Referenced by CORE_Exception::CORE_Exception().

Here is the call graph for this function:

Here is the caller graph for this function:

tString CORE_Object::pointer2String ( const void *  obj)
staticinherited

return the string represantation of a pointer

References tString.

Referenced by CORE_Object::CORE_Object(), CORE_Object::getIdentityString(), CORE_Object::getPointerAddress(), and CORE_Object::~CORE_Object().

Here is the caller graph for this function:

virtual void CORE_Object::print ( )
inlinevirtualinherited

print the class

References CORE_Object::toString().

Referenced by CORE_Object::outputPrint(), CORE_Out::print(), CORE_Object::print(), CORE_Out::printInt(), CORE_Out::println(), CORE_Out::printReal(), CORE_Out::printString(), and CORE_Out::setAction().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual ostream& CORE_Object::print ( ostream &  out) const
inlinevirtualinherited

print the class

References CORE_Object::print(), and CORE_Object::toString().

Here is the call graph for this function:

void CORE_Object::print ( const tString message)
virtualinherited

print the class

Reimplemented in CORE_Out.

References null, and CORE_Object::print().

Here is the call graph for this function:

void CORE_Object::print ( const tInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tRelativeInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tReal str)
virtualinherited

print

References null.

void CORE_Object::print ( const int &  str)
virtualinherited

print

References null.

static ostream& CORE_Object::print ( ostream &  out,
const tString message 
)
inlinestaticinherited

print the class

void CORE_Object::printObjectsInMemory ( )
staticinherited

print object in memory

References CORE_Object::getClassName(), CORE_Object::getSharedPointer(), and CORE_Object::mIsMemoryTesting.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void CORE_Time::setDate ( const tTime seconds)

set the date from 1900 in seconds

Referenced by setDate(), setToFirstWeekDay(), setToLastDay(), setToNextDay(), setToNextMonth(), setToNextWeek(), setToPreviousDay(), setToPreviousDays(), setToPreviousMonth(), setToPreviousWeek(), and setToWeekDay().

Here is the caller graph for this function:

void CORE_Time::setDate ( const int &  year,
const int &  month,
const int &  day,
const int &  hour,
const int &  minutes,
const int &  seconds,
const int &  ms 
)

set the date year>=0 month in [1,12] day in [1,31]

References ASSERT_IN, MAX_YEAR, and tTime.

void CORE_Time::setDate ( const int &  year,
const int &  month,
const int &  day,
const int &  hour,
const int &  minutes,
const int &  seconds 
)
inline

set the date year>=0 month in [1,12] day in [1,31]

References setDate().

Here is the call graph for this function:

void CORE_Time::setDate ( int  year,
int  month,
int  day 
)
inline

set the date year>=0 month in [1,12]

References setDate().

Here is the call graph for this function:

void CORE_Time::setDate ( const tString date)

set the date from a string year-month-day

References setDate().

Here is the call graph for this function:

void CORE_Time::setDate ( const CORE_Time time)
inline

set the date from a string year-month-day

References getDay(), getHours(), getMinutes(), getMonth(), getSeconds(), getYear(), and setDate().

Here is the call graph for this function:

void CORE_Time::setDate ( SP::CORE_Time  time)
inline

set the date from a string year-month-day

References setDate().

Here is the call graph for this function:

void CORE_Time::setDate ( const CORE_Time time)
inline

set the date from a string year-month-day

References getDay(), getHours(), getMinutes(), getMonth(), getSeconds(), getYear(), null, and setDate().

Here is the call graph for this function:

void CORE_Time::setDate ( const tString date,
const tString format 
)

set the date from a string date and with format

format may be:

  • DD/MM/YY
  • DD/MM/YYY
  • YY/MM/DD
  • YYYY/MM/D
  • DD/MM/YY-HHhMM
  • YYMMDD-HHMMSSsss
  • YYYYMMDD-HHMMSSsss

References MAX_YEAR, CORE_Integer::parseInt(), and setDate().

Here is the call graph for this function:

void CORE_Time::setHour ( const tString h)

set hour xxhyy

References CORE_Integer::parseInt(), and setTime().

Here is the call graph for this function:

static void CORE_Object::setOutput ( ostream &  out)
inlinestaticinherited

set output

void CORE_Object::setThis ( SP::CORE_Object  p)
inlineprotectedinherited

set this weak shared pointer called toDoAfterThis setting method

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

void CORE_Time::setTime ( const int &  hour,
const int &  minutes,
const int &  seconds 
)

set the time

Referenced by setHour(), and setTime().

Here is the caller graph for this function:

void CORE_Time::setTime ( const tString date)

set the time from a string hour:min:sec

References CORE_String::New(), CORE_Integer::parseInt(), and setTime().

Here is the call graph for this function:

void CORE_Time::setToFirstWeekDay ( const int &  year,
const int &  week 
)

set the date to the first week day week must be in [1..53] the first day is a monday

References ASSERT_IN, getSecondsSince1900(), MAX_YEAR, modZ, setDate(), and tTime.

Here is the call graph for this function:

void CORE_Time::setToLastDay ( const int &  year,
const int &  month 
)
inline

set to last day of month

References setDate().

Here is the call graph for this function:

void CORE_Time::setToNextDay ( )
inline

set to next day

References setDate().

Here is the call graph for this function:

void CORE_Time::setToNextMonth ( )
inline

set to next month

References setDate().

Here is the call graph for this function:

void CORE_Time::setToNextWeek ( )
inline

set to next week

References setDate().

Here is the call graph for this function:

void CORE_Time::setToPreviousDay ( )
inline

set to previous day

References setDate().

Here is the call graph for this function:

void CORE_Time::setToPreviousDays ( const int &  nDays)
inline

set to days ago

References setDate().

Here is the call graph for this function:

void CORE_Time::setToPreviousMonth ( )
inline

set to previous month

References setDate().

Here is the call graph for this function:

void CORE_Time::setToPreviousWeek ( )
inline

set to previoust week

References setDate().

Here is the call graph for this function:

void CORE_Time::setToWeekDay ( const int &  year,
const int &  week,
const int &  day 
)

set the date to the week day week must be in [1..53] day in [0,6] 0:MONDAY....6:SUNDAY the first day is a monday

References ASSERT_IN, getSecondsSince1900(), MAX_YEAR, modZ, setDate(), and tTime.

Here is the call graph for this function:

virtual void CORE_Object::setType ( tString  type)
inlineprotectedvirtualinherited
tRelativeInteger CORE_Time::sub ( const CORE_Time time2) const

get the difference with time2 this -time2 in secunds

References getSecondsSince1900().

Referenced by sub(), and subInMilliSeconds().

Here is the call graph for this function:

Here is the caller graph for this function:

tRelativeInteger CORE_Time::sub ( const SP::CORE_Time &  time2) const
inline

get the difference with time2 this -time2 in secunds

References sub().

Here is the call graph for this function:

tRelativeInteger CORE_Time::sub ( const CORE_Time time2) const
inline

get the difference with time2 this -time2 in secunds

References getSecondsSince1900(), null, and sub().

Here is the call graph for this function:

tRelativeInteger CORE_Time::subInMilliSeconds ( const CORE_Time time2) const

get the difference with time2 this -time2 in secunds

References getMilliSeconds(), and getSecondsSince1900().

Here is the call graph for this function:

tRelativeInteger CORE_Time::subInMilliSeconds ( const SP::CORE_Time &  time2) const
inline

get the difference with time2 this -time2 in secunds

References sub().

Here is the call graph for this function:

tRelativeInteger CORE_Time::subInMilliSeconds ( const CORE_Time time2) const
inline

get the difference with time2 this -time2 in secunds

References getSecondsSince1900(), null, and sub().

Here is the call graph for this function:

tRelativeInteger CORE_Time::subTimes ( const CORE_Time time1,
const CORE_Time time2 
)
static

get the difference betwen two dates in secund time1-time2

References getSecondsSince1900().

Here is the call graph for this function:

tRelativeInteger CORE_Time::subTimes ( const SP::CORE_Time &  time1,
const SP::CORE_Time &  time2 
)
static

get the difference betwen two dates in secund time1-time2

References null.

tRelativeInteger CORE_Time::subTimesInMilliSeconds ( const CORE_Time time1,
const CORE_Time time2 
)
static

get the difference betwen two dates in milli-secund time1-time2

References getMilliSeconds(), and getSecondsSince1900().

Here is the call graph for this function:

tRelativeInteger CORE_Time::subTimesInMilliSeconds ( const SP::CORE_Time &  time1,
const SP::CORE_Time &  time2 
)
static

get the difference betwen two dates in secund time1-time2

References null.

virtual void CORE_Object::toDoAfterThisSetting ( )
inlineprotectedvirtualinherited
tString CORE_Time::toString ( ) const
virtual

return the time into a string

Reimplemented from CORE_Object.

References tString.

Referenced by toString().

Here is the caller graph for this function:

tString CORE_Time::toString ( const tString format) const

return the time into a string with format

  • format=""
  • format="DD/MM/YY"
  • format="DD/MM/YYYY"
  • format="YYYY/MM/DD"
  • format="DD/MM/YY-HHhMM"
  • format="YYMMDD-HHMMSS"
  • format="YYMMDD-HHMMSSsss"
  • format="YYYYMMDD-HHMMSSsss"

References CORE_Integer::toString(), toString(), and tString.

Here is the call graph for this function:

Member Data Documentation

const tString CORE_Time::DAYS
static
Initial value:
={"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thurday",
"Friday",
"Saturday"
}

days names in english

const tString CORE_Time::JOURS
static
Initial value:
={"Dimanche",
"Lundi",
"Mardi",
"Mercredi",
"Jeudi",
"Vendredi",
"Samedi"
}

days names in french

const tTime CORE_Time::MAX_YEAR =1900+ULONG_MAX/(3600*24*365)
static

MAX number of years.

Referenced by getWeekIntervalString(), setDate(), setToFirstWeekDay(), and setToWeekDay().

tBoolean CORE_Object::mIsMemoryTesting =false
staticinherited

indicator to store all classes created and deleted only for debuging version

Referenced by CORE_Object::CORE_Object(), main(), CORE_Object::printObjectsInMemory(), and CORE_Object::~CORE_Object().

const tString CORE_Time::MOIS
static
Initial value:
={"Janvier",
"Fevrier",
"Mars",
"Avril",
"Mai",
"Juin",
"Juillet",
"Aout",
"Septembre",
"Octobre",
"Novembre",
"Decembre"
}

month names in french

const tString CORE_Time::MONTHS
static
Initial value:
={"January",
"February",
"March",
"April",
"Mai",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
}

month names in english


The documentation for this class was generated from the following files: