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

Change language: German

XmDateTime Class Reference

List of all members.

Detailed Description

This class supply a human readable Date/Time format and allow convertions between different Date/Time formats.


Static Public Member Functions

static bool Time32ToDateTime (XmDateTime &dest, const XmTime32 &src)
 Convert a XmTime32 representation to XmDateTime.
static bool DateTimeToTime32 (XmTime32 &span, const XmDateTime &src)
 Convert a XmDateTime representation to XmTime32.
static bool DateTimeToString (XmString &dest, const char *format, const XmDateTime &src, const char *nullStr)
 Convert a XmDateTime representation to a string.
static bool StringToDateTime (XmDateTime &dest, const char *format, const char *src, const char *nullStr, bool shortFormat)
 Convert a string representation to XmDateTime.

Public Attributes

int Year
 Year.
int Month
 Month range [1 - 12].
int MDay
 Month day [1 - 31].
int Hour
 Hour [0 - 23].
int Min
 Minute [0 - 59].
int Sec
 Second [0 - 59].
bool isNull
 true, if Date/Time is not set


Member Function Documentation

static bool Time32ToDateTime XmDateTime dest,
const XmTime32 src
[static]
 

Convert a XmTime32 representation to XmDateTime.

Return true, if conversion successful.

static bool DateTimeToTime32 XmTime32 span,
const XmDateTime src
[static]
 

Convert a XmDateTime representation to XmTime32.

Return true, if conversion successful.

static bool DateTimeToString XmString dest,
const char *  format,
const XmDateTime src,
const char *  nullStr
[static]
 

Convert a XmDateTime representation to a string.

Parameter format desribed in Date/Time formatting. Return true, if conversion successful.

static bool StringToDateTime XmDateTime dest,
const char *  format,
const char *  src,
const char *  nullStr,
bool  shortFormat
[static]
 

Convert a string representation to XmDateTime.

Parameter format desribed in Date/Time formatting. Return true, if conversion successful.


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