Home You are here: Home > Support > Reference v1.0

Change language: German

XmTime32 Class Reference

List of all members.

Detailed Description

Represent a date/time value, using a 32 bit integer.

The 32 bit integer counts the seconds relative to 01-01-1970 00:00:00 UTC. This leads to an time intervall -68,+68 years relative to 01-01-1970.


Public Member Functions

time32_t GetSpan () const
 Return the date/time in ANSI C representation.
void SetSpan (time32_t span)
 Set the date/time by using ANSI C representation.
bool SetTime (int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, TIMEBASE tb)
 Set the date/time with given parameters.
bool IsNullTime () const
 Return true, if date/time is not set.
bool operator== (const XmTime32 &t) const
 Return true on equality.
bool operator!= (const XmTime32 &t) const
 Return true, on inequality.
bool operator< (const XmTime32 &t) const
 Return true, if this time is less than the given time.
bool operator> (const XmTime32 &t) const
 Return true, if this time is bigger than the given time.
bool operator<= (const XmTime32 &t) const
 Return true, if this time is less or euqal than the given time.
bool operator>= (const XmTime32 &t) const
 Return true, if this time is equal or greater than the given time.

Static Public Member Functions

static void GetSystemTime (XmTime32 &time)
 Return the current system time.
static bool Time_tToSystemTime (time32_t time, SYSTEMTIME *systime)
 Convert a date/time value to system time.
static bool SystemTimeToTime_T (time32_t &time, const SYSTEMTIME &systime, TIMEBASE tb)
 Convert a system time to a date/teime value.


Member Function Documentation

bool SetTime int  nYear,
int  nMonth,
int  nDay,
int  nHour,
int  nMin,
int  nSec,
TIMEBASE  tb
 

Set the date/time with given parameters.

(month: 1-12, day: 1-31)

static bool Time_tToSystemTime time32_t  time,
SYSTEMTIME *  systime
[static]
 

Convert a date/time value to system time.

Returns true if conversion successful.

static bool SystemTimeToTime_T time32_t &  time,
const SYSTEMTIME &  systime,
TIMEBASE  tb
[static]
 

Convert a system time to a date/teime value.

Returns true if conversion successful.


Copyright © 2006 Praetz Software Development - www.exomware.com