LibBeamApi
0.3.8
|
#include <BDuration.h>
Public Member Functions | |
BDuration (int hour=0, int minute=0, int second=0, int microsecond=0) | |
BDuration (BString str) | |
~BDuration () | |
void | clear () |
Clear the duration. More... | |
void | set (int hour=0, int minute=0, int second=0, int microsecond=0) |
void | addMilliSeconds (int64_t milliSeconds) |
Add the given number of milli seconds. More... | |
void | addMicroSeconds (int64_t microSeconds) |
Add the given number of micro seconds. More... | |
void | addSeconds (int seconds) |
Add the given number of seconds. More... | |
uint32_t | getSeconds () |
Get number of seconds. More... | |
uint64_t | getMicroSeconds () |
Get number of micro seconds. More... | |
int | hour () |
int | minute () |
int | second () |
int | microSecond () |
BString | getString () |
Get the time as an ISO date/time string. More... | |
BError | setString (BString time) |
Set the time from an ISO date/time. More... | |
Private Attributes | |
uint8_t | ohour |
Hour (0 .. 23) More... | |
uint8_t | ominute |
Minute (0 .. 59) More... | |
uint8_t | osecond |
Second (0 .. 59) More... | |
uint8_t | ospare |
Padding. More... | |
uint32_t | omicroSecond |
MicroSecond (0 .. 999999) More... | |
BDuration::BDuration | ( | int | hour = 0 , |
int | minute = 0 , |
||
int | second = 0 , |
||
int | microsecond = 0 |
||
) |
BDuration::BDuration | ( | BString | str | ) |
BDuration::~BDuration | ( | ) |
void BDuration::addMicroSeconds | ( | int64_t | microSeconds | ) |
Add the given number of micro seconds.
void BDuration::addMilliSeconds | ( | int64_t | milliSeconds | ) |
Add the given number of milli seconds.
void BDuration::addSeconds | ( | int | seconds | ) |
Add the given number of seconds.
void BDuration::clear | ( | ) |
Clear the duration.
uint64_t BDuration::getMicroSeconds | ( | ) |
Get number of micro seconds.
uint32_t BDuration::getSeconds | ( | ) |
Get number of seconds.
BString BDuration::getString | ( | ) |
Get the time as an ISO date/time string.
int BDuration::hour | ( | ) |
int BDuration::microSecond | ( | ) |
int BDuration::minute | ( | ) |
int BDuration::second | ( | ) |
void BDuration::set | ( | int | hour = 0 , |
int | minute = 0 , |
||
int | second = 0 , |
||
int | microsecond = 0 |
||
) |
|
private |
Hour (0 .. 23)
|
private |
MicroSecond (0 .. 999999)
|
private |
Minute (0 .. 59)
|
private |
Second (0 .. 59)
|
private |
Padding.