Electronics and Software
Engineering Innovation
Beam-lib  2.15.1

#include <BTimeUs.h>

Public Member Functions

 BTimeUs (BUInt64 t=0)
 
 BTimeUs (BTime t)
 
void set (BUInt64 microSeconds)
 Set the time to TAI us. More...
 
void set (BUInt year, BUInt month, BUInt day, BUInt hour=0, BUInt minute=0, BUInt second=0, BUInt microSecond=0)
 Set the date and time from UTC. More...
 
void setYearDay (BUInt year, BUInt yearDay, BUInt hour=0, BUInt minute=0, BUInt second=0, BUInt microSecond=0)
 Set the date and time from UTC. More...
 
void getDate (BUInt &year, BUInt &month, BUInt &day) const
 Return the date information UTC. More...
 
void getTime (BUInt &hour, BUInt &minute, BUInt &second) const
 Return the time information UTC. More...
 
BUInt64 getSeconds () const
 Return the number of seconds TAI. More...
 
BUInt64 getMicroSeconds () const
 Return the number of micro seconds TAI. More...
 
int isSet () const
 Check if set. More...
 
int isLeapYear ()
 Returns if a leap year. More...
 
void addSeconds (BInt64 seconds)
 Add the given number of seconds. More...
 
void addMicroSeconds (BInt64 microSeconds)
 Add the given number of seconds. More...
 
BString getString (BString format="isoT") const
 Gets the date/time in string format. More...
 
BString getStringUs (BString format="isoT") const
 Gets the date/time in string format. More...
 
BError setString (const BString dateTime)
 Sets the date/time from string format. More...
 
 operator BTime () const
 
int operator== (const BTimeUs &time) const
 
int operator!= (const BTimeUs &time) const
 
int operator> (const BTimeUs &time) const
 
int operator>= (const BTimeUs &time) const
 
int operator< (const BTimeUs &time) const
 
int operator<= (const BTimeUs &time) const
 
BTimeUs operator+ (BInt64 microSeconds) const
 
BTimeUsoperator+= (BInt64 microSeconds)
 

Private Attributes

BUInt64 otime
 Time in microseconds since 1970-01-01 to TAI standard. More...
 

Constructor & Destructor Documentation

◆ BTimeUs() [1/2]

BTimeUs::BTimeUs ( BUInt64  t = 0)

◆ BTimeUs() [2/2]

BTimeUs::BTimeUs ( BTime  t)

Member Function Documentation

◆ addMicroSeconds()

void BTimeUs::addMicroSeconds ( BInt64  microSeconds)

Add the given number of seconds.

◆ addSeconds()

void BTimeUs::addSeconds ( BInt64  seconds)

Add the given number of seconds.

◆ getDate()

void BTimeUs::getDate ( BUInt year,
BUInt month,
BUInt day 
) const

Return the date information UTC.

◆ getMicroSeconds()

BUInt64 BTimeUs::getMicroSeconds ( ) const

Return the number of micro seconds TAI.

◆ getSeconds()

BUInt64 BTimeUs::getSeconds ( ) const

Return the number of seconds TAI.

◆ getString()

BString BTimeUs::getString ( BString  format = "isoT") const

Gets the date/time in string format.

◆ getStringUs()

BString BTimeUs::getStringUs ( BString  format = "isoT") const

Gets the date/time in string format.

◆ getTime()

void BTimeUs::getTime ( BUInt hour,
BUInt minute,
BUInt second 
) const

Return the time information UTC.

◆ isLeapYear()

int BTimeUs::isLeapYear ( )

Returns if a leap year.

◆ isSet()

int BTimeUs::isSet ( ) const
inline

Check if set.

◆ operator BTime()

BTimeUs::operator BTime ( ) const
inline

◆ operator!=()

int BTimeUs::operator!= ( const BTimeUs time) const
inline

◆ operator+()

BTimeUs BTimeUs::operator+ ( BInt64  microSeconds) const
inline

◆ operator+=()

BTimeUs& BTimeUs::operator+= ( BInt64  microSeconds)
inline

◆ operator<()

int BTimeUs::operator< ( const BTimeUs time) const
inline

◆ operator<=()

int BTimeUs::operator<= ( const BTimeUs time) const
inline

◆ operator==()

int BTimeUs::operator== ( const BTimeUs time) const
inline

◆ operator>()

int BTimeUs::operator> ( const BTimeUs time) const
inline

◆ operator>=()

int BTimeUs::operator>= ( const BTimeUs time) const
inline

◆ set() [1/2]

void BTimeUs::set ( BUInt64  microSeconds)

Set the time to TAI us.

◆ set() [2/2]

void BTimeUs::set ( BUInt  year,
BUInt  month,
BUInt  day,
BUInt  hour = 0,
BUInt  minute = 0,
BUInt  second = 0,
BUInt  microSecond = 0 
)

Set the date and time from UTC.

◆ setString()

BError BTimeUs::setString ( const BString  dateTime)

Sets the date/time from string format.

◆ setYearDay()

void BTimeUs::setYearDay ( BUInt  year,
BUInt  yearDay,
BUInt  hour = 0,
BUInt  minute = 0,
BUInt  second = 0,
BUInt  microSecond = 0 
)

Set the date and time from UTC.

Member Data Documentation

◆ otime

BUInt64 BTimeUs::otime
private

Time in microseconds since 1970-01-01 to TAI standard.


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