lecui 1.0.0-alpha.20
lecui C++ user interface library
Public Member Functions | Public Attributes | List of all members
liblec::lecui::time Class Reference

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.
 

Detailed Description

Time class.

Constructor & Destructor Documentation

◆ time() [1/2]

liblec::lecui::time::time ( )

Constructor.

Sets time using the current local time.

◆ time() [2/2]

liblec::lecui::time::time ( const std::string  s)

Constructor.

Parameters
sTime string, in the form "HH:mm:ss". Leave empty to set using the current local time.

Member Function Documentation

◆ to_string()

std::string liblec::lecui::time::to_string ( )

Get time in the form of a string.

Returns
Returns the time in the form "HH:mm:ss"

The documentation for this class was generated from the following file: