Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::CTime Class Reference

#include <cTimeInt.h>

Inheritance diagram for Gray::CTime:
Gray::cTimeInt

Public Member Functions

 CTime (TIMESEC_t nTime=((TIMESEC_t) 0)) noexcept
 
 CTime (const cTimeFile &fileTime, int nDST=-1)
 
const CTimeoperator= (const CTime &timeSrc) noexcept
 
const CTimeoperator= (TIMESEC_t nTime) noexcept
 
bool operator<= (TIMESEC_t nTime) const noexcept
 
bool operator== (TIMESEC_t nTime) const noexcept
 
bool operator!= (TIMESEC_t nTime) const noexcept
 
bool operator>= (CTime ttime) const noexcept
 
 operator TIMESEC_t () const noexcept
 
TIMESEC_t GetTime () const noexcept
 
TIMESEC_t GetTotalSeconds () const noexcept
 

Protected Attributes

TIMESEC_t m_time
 Seconds. Essentially the UNIX long time format. (not usable after 2018 unless 64 bit?) More...
 

Detailed Description

TIMESEC_t or time_t stored as a UINT32 32 bits or 64 bits ? seconds since January 1, 1970 GMT Emulate the MFC CTime functionality

Note
32 bit version of this has a clock rollover in 2038. This is actually number of seconds since January 1, 1970 GMT <= 0 is considered invalid.

Constructor & Destructor Documentation

◆ CTime() [1/2]

Gray::CTime::CTime ( TIMESEC_t  nTime = ((TIMESEC_t)0))
inlinenoexcept

◆ CTime() [2/2]

Gray::CTime::CTime ( const cTimeFile fileTime,
int  nDST = -1 
)

cTimeFile = 64-bit 100-nanoseconds since January 1, 1601 GMT convert to TIMESEC_t (1970) (C-runtime local time) nDST = 0=Standard time is in effect. >0 =Daylight savings time is in effect. <0=default. Automatically computes whether standard time or daylight savings time is in effect.

Member Function Documentation

◆ GetTime()

TIMESEC_t Gray::CTime::GetTime ( ) const
inlinenoexcept

◆ GetTotalSeconds()

TIMESEC_t Gray::CTime::GetTotalSeconds ( ) const
inlinenoexcept

◆ operator TIMESEC_t()

Gray::CTime::operator TIMESEC_t ( ) const
inlinenoexcept

◆ operator!=()

bool Gray::CTime::operator!= ( TIMESEC_t  nTime) const
inlinenoexcept

◆ operator<=()

bool Gray::CTime::operator<= ( TIMESEC_t  nTime) const
inlinenoexcept

◆ operator=() [1/2]

const CTime& Gray::CTime::operator= ( const CTime timeSrc)
inlinenoexcept

◆ operator=() [2/2]

const CTime& Gray::CTime::operator= ( TIMESEC_t  nTime)
inlinenoexcept

◆ operator==()

bool Gray::CTime::operator== ( TIMESEC_t  nTime) const
inlinenoexcept

◆ operator>=()

bool Gray::CTime::operator>= ( CTime  ttime) const
inlinenoexcept

Member Data Documentation

◆ m_time

TIMESEC_t Gray::CTime::m_time
protected

Seconds. Essentially the UNIX long time format. (not usable after 2018 unless 64 bit?)


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