1 #ifndef CHRONO_FORMAT_H 2 #define CHRONO_FORMAT_H 21 return out << value.
years() <<
" years, " << value.
months() <<
" months, " << value.
days() <<
" days";
24 #endif // CHRONO_FORMAT_H std::string toString(DateTimeOutputFormat format=DateTimeOutputFormat::DateAndTime, bool noMilliseconds=false) const
Returns the string representation of the current instance using the specified format.
Represents an instant in time, typically expressed as a date and time of day.
Represents a time interval.
std::string toString(TimeSpanOutputFormat format=TimeSpanOutputFormat::Normal, bool fullSeconds=false) const
Converts the value of the current TimeSpan object to its equivalent std::string representation accord...
Represents a period of time.
int days() const
Returns the days component of the period represented by the current instance.
int years() const
Returns the years component of the period represented by the current instance.
int months() const
Returns the months component of the period represented by the current instance.