BaseClass class and root of the type system. More...

#include <TimeInfo.h>

Public Member Functions

unsigned short getMiliseconds (void) const
 
uint64_t getSeconds (void) const
 
bool isNull () const
 
bool operator!= (const TimeInfo &time) const
 
bool operator< (const TimeInfo &time) const
 
bool operator<= (const TimeInfo &time) const
 
bool operator== (const TimeInfo &time) const
 
bool operator> (const TimeInfo &time) const
 
bool operator>= (const TimeInfo &time) const
 
void setCurrent (void)
 sets the object to the actual system time More...
 
void setTime_t (uint64_t seconds)
 
 TimeInfo ()
 Construction. More...
 
virtual ~TimeInfo ()
 Destruction. More...
 

Static Public Member Functions

static std::string currentDateTimeString ()
 
static std::string diffTime (const TimeInfo &timeStart, const TimeInfo &timeEnd=TimeInfo())
 
static float diffTimeF (const TimeInfo &timeStart, const TimeInfo &timeEnd=TimeInfo())
 
static TimeInfo null ()
 

Detailed Description

BaseClass class and root of the type system.

Constructor & Destructor Documentation

◆ TimeInfo()

TimeInfo::TimeInfo ( )

Construction.

A constructor.

A more elaborate description of the constructor.

References setCurrent().

◆ ~TimeInfo()

TimeInfo::~TimeInfo ( )
virtual

Destruction.

A destructor.

A more elaborate description of the destructor.

Member Function Documentation

◆ currentDateTimeString()

std::string TimeInfo::currentDateTimeString ( )
static

◆ diffTime()

std::string TimeInfo::diffTime ( const TimeInfo timeStart,
const TimeInfo timeEnd = TimeInfo() 
)
static

◆ diffTimeF()

◆ getMiliseconds()

unsigned short Base::TimeInfo::getMiliseconds ( void  ) const

Referenced by diffTimeF().

◆ getSeconds()

uint64_t Base::TimeInfo::getSeconds ( void  ) const

Referenced by diffTimeF().

◆ isNull()

bool TimeInfo::isNull ( void  ) const

References null().

◆ null()

TimeInfo TimeInfo::null ( )
static

◆ operator!=()

bool Base::TimeInfo::operator!= ( const TimeInfo time) const

◆ operator<()

bool Base::TimeInfo::operator< ( const TimeInfo time) const

◆ operator<=()

bool Base::TimeInfo::operator<= ( const TimeInfo time) const

◆ operator==()

bool Base::TimeInfo::operator== ( const TimeInfo time) const

◆ operator>()

bool Base::TimeInfo::operator> ( const TimeInfo time) const

◆ operator>=()

bool Base::TimeInfo::operator>= ( const TimeInfo time) const

◆ setCurrent()

void TimeInfo::setCurrent ( void  )

sets the object to the actual system time

Referenced by TimeInfo().

◆ setTime_t()

void TimeInfo::setTime_t ( uint64_t  seconds)

The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Base/TimeInfo.h
  • Sources/FreeCAD/src/Base/TimeInfo.cpp