| Beam-lib 2.15.1 |
BTimeUs Class Reference
#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 |
| BTimeUs & | operator+= (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()
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()
◆ getStringUs()
◆ getTime()
Return the time information UTC.
◆ isLeapYear()
| int BTimeUs::isLeapYear | ( | ) |
Returns if a leap year.
◆ isSet()
| inline |
Check if set.
◆ operator BTime()
| inline |
◆ operator!=()
| inline |
◆ operator+()
◆ operator+=()
◆ operator<()
| inline |
◆ operator<=()
| inline |
◆ operator==()
| inline |
◆ operator>()
| inline |
◆ operator>=()
| 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()
◆ 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
| private |
Time in microseconds since 1970-01-01 to TAI standard.
The documentation for this class was generated from the following files:
Generated by
1.8.14 
