Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::time::Timestamp Class Reference

#include <Timestamp.hpp>

Public Member Functions

 Timestamp ()
 
 Timestamp (const iv::types::timestamp milliseconds)
 
 Timestamp (const std::chrono::time_point< std::chrono::system_clock > &timestamp)
 
 Timestamp (const Timestamp &other)=default
 
 Timestamp (Timestamp &&other) noexcept
 
Timestampoperator= (const Timestamp &other)
 
Timestampoperator= (Timestamp &&other) noexcept
 
bool operator< (const Timestamp &other) const
 
bool operator> (const Timestamp &other) const
 
bool operator<= (const Timestamp &other) const
 
bool operator>= (const Timestamp &other) const
 
bool operator== (const Timestamp &other) const
 
bool operator!= (const Timestamp &other) const
 
Timestamp operator+ (const std::chrono::seconds &seconds) const
 
Timestamp operator- (const std::chrono::seconds &seconds) const
 
Timestamp operator+ (const iv::types::timestamp &milliseconds) const
 
Timestamp operator- (const iv::types::timestamp &milliseconds) const
 
void setTime (const std::chrono::time_point< std::chrono::system_clock > time=std::chrono::system_clock::now())
 
void setTime (const iv::types::timestamp milliseconds)
 
TimestampsetLomsTime (uint16_t numDaysSince1984, uint32_t milliseconds)
 
void getLomsTime (uint16_t &numDaysSince1984, uint32_t &milliseconds) const
 
void now ()
 
void roundToNextMinute ()
 
iv::types::milliseconds inMilliseconds () const
 
int64_t inSeconds () const
 
iv::DateTime getDateTime (const iv::eTimeZone timeZone=iv::eTimeZone::Localtime) const
 

Private Attributes

std::chrono::time_point< std::chrono::system_clock > m_timestamp
 

Constructor & Destructor Documentation

◆ Timestamp() [1/5]

iv::time::Timestamp::Timestamp ( )
inline

◆ Timestamp() [2/5]

iv::time::Timestamp::Timestamp ( const iv::types::timestamp milliseconds)
inlineexplicit

◆ Timestamp() [3/5]

iv::time::Timestamp::Timestamp ( const std::chrono::time_point< std::chrono::system_clock > & timestamp)
inlineexplicit

◆ Timestamp() [4/5]

iv::time::Timestamp::Timestamp ( const Timestamp & other)
default

◆ Timestamp() [5/5]

iv::time::Timestamp::Timestamp ( Timestamp && other)
inlinenoexcept

Member Function Documentation

◆ getDateTime()

iv::DateTime iv::time::Timestamp::getDateTime ( const iv::eTimeZone timeZone = iv::eTimeZone::Localtime) const
inlinenodiscard

◆ getLomsTime()

void iv::time::Timestamp::getLomsTime ( uint16_t & numDaysSince1984,
uint32_t & milliseconds ) const

◆ inMilliseconds()

iv::types::milliseconds iv::time::Timestamp::inMilliseconds ( ) const
inlinenodiscard

◆ inSeconds()

int64_t iv::time::Timestamp::inSeconds ( ) const
inlinenodiscard

◆ now()

void iv::time::Timestamp::now ( )
inline

◆ operator!=()

bool iv::time::Timestamp::operator!= ( const Timestamp & other) const
inline

◆ operator+() [1/2]

Timestamp iv::time::Timestamp::operator+ ( const iv::types::timestamp & milliseconds) const
inline

◆ operator+() [2/2]

Timestamp iv::time::Timestamp::operator+ ( const std::chrono::seconds & seconds) const
inline

◆ operator-() [1/2]

Timestamp iv::time::Timestamp::operator- ( const iv::types::timestamp & milliseconds) const
inline

◆ operator-() [2/2]

Timestamp iv::time::Timestamp::operator- ( const std::chrono::seconds & seconds) const
inline

◆ operator<()

bool iv::time::Timestamp::operator< ( const Timestamp & other) const
inline

◆ operator<=()

bool iv::time::Timestamp::operator<= ( const Timestamp & other) const
inline

◆ operator=() [1/2]

Timestamp & iv::time::Timestamp::operator= ( const Timestamp & other)
inline

◆ operator=() [2/2]

Timestamp & iv::time::Timestamp::operator= ( Timestamp && other)
inlinenoexcept

◆ operator==()

bool iv::time::Timestamp::operator== ( const Timestamp & other) const
inline

◆ operator>()

bool iv::time::Timestamp::operator> ( const Timestamp & other) const
inline

◆ operator>=()

bool iv::time::Timestamp::operator>= ( const Timestamp & other) const
inline

◆ roundToNextMinute()

void iv::time::Timestamp::roundToNextMinute ( )
inline

◆ setLomsTime()

Timestamp & iv::time::Timestamp::setLomsTime ( uint16_t numDaysSince1984,
uint32_t milliseconds )

◆ setTime() [1/2]

void iv::time::Timestamp::setTime ( const iv::types::timestamp milliseconds)
inline

◆ setTime() [2/2]

void iv::time::Timestamp::setTime ( const std::chrono::time_point< std::chrono::system_clock > time = std::chrono::system_clock::now())
inline

Member Data Documentation

◆ m_timestamp

std::chrono::time_point<std::chrono::system_clock> iv::time::Timestamp::m_timestamp
private

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