lecui 1.0.0-alpha.20
lecui C++ user interface library
|
Time class. More...
#include <lecui.h>
Public Member Functions | |
time () | |
Constructor. More... | |
time (const std::string s) | |
Constructor. More... | |
std::string | to_string () |
Get time in the form of a string. More... | |
Public Attributes | |
unsigned short | hour = 0 |
The hour, from 0 to 23 inclusive. | |
unsigned short | minute = 0 |
The minute, from 0 to 59 inclusive. | |
unsigned short | second = 0 |
The second, from 0 to 59 inclusive. | |
Time class.
liblec::lecui::time::time | ( | ) |
Constructor.
Sets time using the current local time.
liblec::lecui::time::time | ( | const std::string | s | ) |
Constructor.
s | Time string, in the form "HH:mm:ss". Leave empty to set using the current local time. |
std::string liblec::lecui::time::to_string | ( | ) |
Get time in the form of a string.