Taskolib  1.3.3
time_types.h
Go to the documentation of this file.
1 
23 // SPDX-License-Identifier: LGPL-2.1-or-later
24 
25 #ifndef TASKOLIB_TIME_TYPES_H_
26 #define TASKOLIB_TIME_TYPES_H_
27 
28 #include <chrono>
29 #include <string>
30 
31 namespace task {
32 
33 using Clock = std::chrono::system_clock;
34 using TimePoint = std::chrono::time_point<Clock>;
35 
36 std::string to_string(task::TimePoint t);
37 std::time_t timegm(const std::tm& t);
38 
39 } // namespace task
40 
41 #endif
Namespace task contains all Taskolib functions and classes.
Definition: CommChannel.h:33
std::string to_string(Step::Type type)
Return a lower-case name for a step type ("action", "if", "end").
Definition: Step.cc:287
std::time_t timegm(const std::tm &t)
Definition: time_types.cc:53
std::chrono::time_point< Clock > TimePoint
Definition: time_types.h:34
std::chrono::system_clock Clock
Definition: time_types.h:33