MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / formatDuration

Method formatDuration

src/commands/CmdEdit.cpp:169–174  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

167
168////////////////////////////////////////////////////////////////////////////////
169std::string CmdEdit::formatDuration(Task& task, const std::string& attribute) {
170 auto value = task.get(attribute);
171 if (value.length()) value = Duration(value).formatISO();
172
173 return value;
174}
175
176////////////////////////////////////////////////////////////////////////////////
177std::string CmdEdit::formatTask(Task task, const std::string& dateformat) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected