#include <BTime.h>
|
| BTime (BUInt32 t=0) |
|
void | set (BUInt32 seconds) |
| Set the date and time. More...
|
|
void | set (BUInt year, BUInt month, BUInt day, BUInt hour=0, BUInt minute=0, BUInt second=0) |
| Set the date and time. More...
|
|
void | setYearDay (BUInt year, BUInt yearDay, BUInt hour=0, BUInt minute=0, BUInt second=0) |
| Set the date and time. More...
|
|
void | getDate (BUInt &year, BUInt &month, BUInt &day) const |
| Retun the date information. More...
|
|
void | getTime (BUInt &hour, BUInt &minute, BUInt &second) const |
| Return the time information. More...
|
|
BUInt32 | getSeconds () const |
| Return the number of seconds. More...
|
|
int | isSet () const |
| Check if set. More...
|
|
int | isLeapYear () |
| Returns if a leap year. More...
|
|
void | addSeconds (int seconds) |
| Add the given number of seconds. More...
|
|
BString | getString (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...
|
|
int | operator== (const BTime &time) const |
|
int | operator!= (const BTime &time) const |
|
int | operator> (const BTime &time) const |
|
int | operator>= (const BTime &time) const |
|
int | operator< (const BTime &time) const |
|
int | operator<= (const BTime &time) const |
|
BTime | operator+ (int seconds) const |
|
BTime & | operator+= (int seconds) |
|
void BTime::addSeconds |
( |
int |
seconds | ) |
|
Add the given number of seconds.
Retun the date information.
BUInt32 BTime::getSeconds |
( |
| ) |
const |
Return the number of seconds.
Gets the date/time in string format.
Return the time information.
int BTime::isLeapYear |
( |
| ) |
|
int BTime::isSet |
( |
| ) |
const |
|
inline |
int BTime::operator!= |
( |
const BTime & |
time | ) |
const |
|
inline |
BTime BTime::operator+ |
( |
int |
seconds | ) |
const |
|
inline |
BTime& BTime::operator+= |
( |
int |
seconds | ) |
|
|
inline |
int BTime::operator< |
( |
const BTime & |
time | ) |
const |
|
inline |
int BTime::operator<= |
( |
const BTime & |
time | ) |
const |
|
inline |
int BTime::operator== |
( |
const BTime & |
time | ) |
const |
|
inline |
int BTime::operator> |
( |
const BTime & |
time | ) |
const |
|
inline |
int BTime::operator>= |
( |
const BTime & |
time | ) |
const |
|
inline |
Sets the date/time from string format.
Time in seconds since 1970. range 1970-01-02 to 2106-02-07.
The documentation for this class was generated from the following files: