2#include <nlohmann/json.hpp>
void from_json(const nlohmann::json &j, TimeOfDay &t)
void to_json(nlohmann::json &j, const TimeOfDay &t)
A simple representation of wall-clock time (HH:MM or HH:MM:SS)
A simple value type representing a time of day (hour, minute, second).
static TimeOfDay fromString(const char *hhmm)
Parse a string in the form "HH:MM" or "HH:MM:SS".
static std::string toString(const TimeOfDay &time)
Format the time as a string.