MCPcopy Create free account
hub / github.com/comaps/comaps / UnitsToSeconds

Function UnitsToSeconds

libs/i18n/duration.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29seconds UnitsToSeconds(long value, Duration::Units unit)
30{
31 switch (unit)
32 {
33 case Duration::Units::Days: return days(value);
34 case Duration::Units::Hours: return hours(value);
35 case Duration::Units::Minutes: return minutes(value);
36 default: UNREACHABLE();
37 }
38}
39
40std::string_view GetUnitSeparator(Locale const & locale)
41{

Callers 1

GetStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected