- Implemented UDAs in the 'edit' command for all four UDA data types.
This commit is contained in:
Paul Beckingham 2012-07-16 00:16:36 -04:00
parent 1d593c39e0
commit 57aa2de98c
5 changed files with 109 additions and 5 deletions

View file

@ -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)
{