Account
| Beamlib 3.3.4 This is the Beam C++ class library. |
Loading...
Searching...
No Matches
BTime.h
Go to the documentation of this file.
32 void set(BUInt year, BUInt month, BUInt day, BUInt hour = 0, BUInt minute = 0, BUInt second = 0);
Error return class. This class is used to return the error status from a function....
Definition BError.h:31
Implements a simple date/time class. Stores the date/time as a number of seconds since Unix epoch 197...
Definition BTime.h:27
BTime utcToLocal() const
Converts a UTC time to a local time.
Definition BTime.cpp:197
BError setStringLocal(const BString dateTime)
Sets the date/time from string format.
Definition BTime.cpp:218
BString getString(BString format="iso") const
Gets the date/time in string format.
Definition BTime.cpp:104
BError setString(const BString dateTime)
Sets the date/time from string format.
Definition BTime.cpp:139
void getDate(BUInt &year, BUInt &month, BUInt &day) const
Retun the date information.
Definition BTime.cpp:59
void addSeconds(int seconds)
Add the given number of seconds.
Definition BTime.cpp:93
BString getStringLocal(BString format="iso") const
Gets the date/time in string format.
Definition BTime.cpp:214
void setYearDay(BUInt year, BUInt yearDay, BUInt hour=0, BUInt minute=0, BUInt second=0)
Set the date and time.
Definition BTime.cpp:48
Generated by
