///////////////////////////////////////////////////////////////////////////
| 167 | |
| 168 | //////////////////////////////////////////////////////////////////////////////// |
| 169 | std::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 | //////////////////////////////////////////////////////////////////////////////// |
| 177 | std::string CmdEdit::formatTask(Task task, const std::string& dateformat) { |