Account
Beamlib 3.3.4 This is the Beam C++ class library. |
Loading...
Searching...
No Matches
BTimeStamp.h
Go to the documentation of this file.
20 BTimeStamp(int year, int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0, int microsecond = 0);
29 void set(int year = 0, int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0, int microsecond = 0);
31 void setYDay(int year = 0, int yday = 0, int hour = 0, int minute = 0, int second = 0, int microsecond = 0);
Error return class. This class is used to return the error status from a function....
Definition BError.h:31
A date and time storage class with milisecond resolution and an extra field to indicate a particular ...
Definition BTimeStampMs.h:15
void set(time_t time, int microSeconds)
Set time using Unix time (seconds from 1970-01-01)
Definition BTimeStamp.cpp:63
void addMilliSeconds(int milliSeconds)
Add the given number of milli seconds. This should be less that a year.
Definition BTimeStamp.cpp:310
void addSeconds(int seconds)
Add the given number of seconds. This should be less that a year.
Definition BTimeStamp.cpp:325
void setTime(int hour=0, int minute=0, int second=0, int microsecond=0)
Definition BTimeStamp.cpp:98
static BInt64 difference(BTimeStamp t2, BTimeStamp t1)
Definition BTimeStamp.cpp:444
BString getStringFormatted(BString format) const
Gets the time in a string form as per the format. Format syntax as per strftime()
Definition BTimeStamp.cpp:189
uint32_t getYearSeconds() const
Get number of seconds within the year.
Definition BTimeStamp.cpp:381
BError setString(const BString dateTime)
Set the time from an ISO date/time.
Definition BTimeStamp.cpp:222
void setYDay(int year=0, int yday=0, int hour=0, int minute=0, int second=0, int microsecond=0)
Definition BTimeStamp.cpp:53
BString getStringNoMs(BString separator="T") const
Get the time as an ISO date/time string without microseconds.
Definition BTimeStamp.cpp:177
BString getString(BString separator="T") const
Get the time as an ISO date/time string.
Definition BTimeStamp.cpp:165
BTimeStamp & operator=(const BTimeStampMs &timeStamp)
Definition BTimeStamp.h:61
void addMicroSeconds(int64_t microSeconds)
Add the given number of micro seconds. This should be less that a year.
Definition BTimeStamp.cpp:295
int compare(const BTimeStamp &timeStamp) const
Compare two dates.
Definition BTimeStamp.cpp:404
uint64_t getYearMicroSeconds() const
Get number of micro seconds within the year.
Definition BTimeStamp.cpp:392
Generated by