ISO8601d: Improved ::dump output

This commit is contained in:
Paul Beckingham 2015-10-16 11:35:39 -04:00
parent e4b8c2f0f5
commit 980dff3048

View file

@ -1620,16 +1620,17 @@ std::string ISO8601d::dump () const
{ {
std::stringstream s; std::stringstream s;
s << "ISO8601d" s << "ISO8601d"
<< " _year=" << _year << " y" << _year
<< " _month=" << _month << " m" << _month
<< " _week=" << _week << " w" << _week
<< " _weekday=" << _weekday << " wd" << _weekday
<< " _julian=" << _julian << " j" << _julian
<< " _day=" << _day << " d" << _day
<< " _seconds=" << _seconds << " s" << _seconds
<< " _offset=" << _offset << " off" << _offset
<< " _utc=" << _utc << " utc" << _utc
<< " _date=" << _date; << " =" << _date
<< " " << (_date ? toISO () : "");
return s.str (); return s.str ();
} }
@ -1988,13 +1989,14 @@ std::string ISO8601p::dump () const
{ {
std::stringstream s; std::stringstream s;
s << "ISO8601p" s << "ISO8601p"
<< " _year=" << _year << " y" << _year
<< " _month=" << _month << " mo" << _month
<< " _day=" << _day << " d" << _day
<< " _hours=" << _hours << " h" << _hours
<< " _minutes=" << _minutes << " mi" << _minutes
<< " _seconds=" << _seconds << " s" << _seconds
<< " _period=" << _period; << " =" << _period
<< " " << (_period ? format () : "");
return s.str (); return s.str ();
} }