mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
UDA
- Implemented UDAs in the 'edit' command for all four UDA data types.
This commit is contained in:
parent
1d593c39e0
commit
57aa2de98c
5 changed files with 109 additions and 5 deletions
|
@ -303,6 +303,15 @@ std::string Duration::formatPrecise () const
|
|||
return std::string (formatted);
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::string Duration::formatSeconds () const
|
||||
{
|
||||
char formatted[24];
|
||||
sprintf (formatted, "%s%ldsec", (_negative ? "-" : ""), _secs);
|
||||
return std::string (formatted);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Duration::operator< (const Duration& other)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue