19std::string
bool_text(
bool ok,
bool value,
const std::string& yes,
const std::string& no);
24std::string
opens(
const std::string& value =
"");
Definition action_sheet.hpp:11
std::string fmt_duration(uint64_t seconds)
"0 min", "< 1 min", "45 min", "52 h 30", "278 h" (no 24 h cap)
std::string day_name_in_text(int day)
inside a sentence (fr: "lundi")
std::string yes_no(bool value)
std::string opens(const std::string &value="")
std::string bool_text(bool ok, bool value, const std::string &yes, const std::string &no)
std::string fmt_minutes(uint32_t minutes)
"0 min", "45 min", "2 h", "2 h 30"
std::string fmt_duration_ns(uint64_t ns)
rounded to minutes, as fmt_minutes
std::string day_name(int day)
0 = Sunday, as a title ("Monday")