Specialization of functor T_Append for type Ticks::Duration .
Definition at line 710 of file calendar.hpp.
#include <calendar.hpp>
Public Method Index: | |
void | operator() (TAString< TChar > &target, const time::Ticks::Duration duration) |
void operator() | ( | TAString< TChar > & | target, |
const time::Ticks::Duration | duration ) |
Appends a human readable string representation of objects of templated inner type TimePointBase::Duration of type Ticks .
Depending on the length of the duration, a different human readable time unit or combination of it is used. The following rules are checked from top to bottom:
'-'
is written and the value is negated.All floating point numbers are written with two digits fractional precision.
The unit symbols are read from the resources of module class BaseCamp . The list is given with resource name UNITS.
target | The AString that Append was invoked on. |
duration | The duration to append. |