CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
CFxUIDateTime Class Reference

#include <FxUIDateTime.h>

Public Types

enum  FxUITimeSpec { LocalTime , UTC , OffsetFromUTC , TimeZone }
 
enum  FxUIDateFormat { TextDate = 0 , ISODateWithMs = 9 , ISODate = 1 , RFC2822Date = 8 }
 

Public Member Functions

 CFxUIDateTime ()
 
 CFxUIDateTime (CFxUIDate date, CFxUITime time, FxUITimeSpec timespec)
 
 CFxUIDateTime (const CFxUIDateTime &dateTime)
 
 CFxUIDateTime (const QDateTime &dateTime)
 
 ~CFxUIDateTime ()
 
CFxUIDateTimeoperator= (const CFxUIDateTime &dateTime)
 
 operator const QDateTime & () const
 
CFxUIDate date () const
 
CFxUITime time () const
 
CFxUIString toString () const
 

Static Public Member Functions

static CFxUIDateTime fromMSecsSinceEpoch (long long msecs)
 
static CFxUIDateTime currentDateTime ()
 
static CFxUIDateTime fromString (const CFxUIString &string, FxUIDateFormat format=TextDate)
 

Protected Attributes

CFxUIDateTimeImpl * m_pImpl = nullptr
 

Detailed Description

Definition at line 32 of file FxUIDateTime.h.

Member Enumeration Documentation

◆ FxUIDateFormat

Enumerator
TextDate 
ISODateWithMs 
ISODate 
RFC2822Date 

Definition at line 43 of file FxUIDateTime.h.

◆ FxUITimeSpec

Enumerator
LocalTime 
UTC 
OffsetFromUTC 
TimeZone 

Definition at line 35 of file FxUIDateTime.h.

Constructor & Destructor Documentation

◆ CFxUIDateTime() [1/4]

CFxUIDateTime::CFxUIDateTime ( )

Constructor

◆ CFxUIDateTime() [2/4]

CFxUIDateTime::CFxUIDateTime ( CFxUIDate date,
CFxUITime time,
FxUITimeSpec timespec )

Parameterized Constructor

◆ CFxUIDateTime() [3/4]

CFxUIDateTime::CFxUIDateTime ( const CFxUIDateTime & dateTime)

Copy Constructor

◆ CFxUIDateTime() [4/4]

CFxUIDateTime::CFxUIDateTime ( const QDateTime & dateTime)

◆ ~CFxUIDateTime()

CFxUIDateTime::~CFxUIDateTime ( )

Destructor

Member Function Documentation

◆ currentDateTime()

static CFxUIDateTime CFxUIDateTime::currentDateTime ( )
static

Returns the system clock's current datetime.

Returns
CFxUIDateTime

◆ date()

CFxUIDate CFxUIDateTime::date ( ) const

Returns the date part of the datetime.

Returns
CFxUIDate

◆ fromMSecsSinceEpoch()

static CFxUIDateTime CFxUIDateTime::fromMSecsSinceEpoch ( long long msecs)
static

Returns a datetime representing a moment the given number msecs of milliseconds. The default time representation is local time.

Parameters
milliseconds
Returns
CFxUIDateTime

◆ fromString()

static CFxUIDateTime CFxUIDateTime::fromString ( const CFxUIString & string,
FxUIDateFormat format = TextDate )
static

Returns the CFxUIDateTime represented by the string, using the format given, or an invalid datetime if this is not possible.

Parameters
CFxUIString
CFxUIDateTime::FxUIDateFormat
Returns
CFxUIDateTime

◆ operator const QDateTime &()

CFxUIDateTime::operator const QDateTime & ( ) const

◆ operator=()

CFxUIDateTime & CFxUIDateTime::operator= ( const CFxUIDateTime & dateTime)

Assignment Operator

◆ time()

CFxUITime CFxUIDateTime::time ( ) const

Returns the time part of the datetime.

Returns
CFxUITime

◆ toString()

CFxUIString CFxUIDateTime::toString ( ) const

Returns the datetime as a string.

Returns
CFxUIString

Member Data Documentation

◆ m_pImpl

CFxUIDateTimeImpl* CFxUIDateTime::m_pImpl = nullptr
protected

Definition at line 117 of file FxUIDateTime.h.


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