mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ISO8601d: Improved ::dump output
This commit is contained in:
parent
e4b8c2f0f5
commit
980dff3048
1 changed files with 19 additions and 17 deletions
|
@ -1620,16 +1620,17 @@ std::string ISO8601d::dump () const
|
|||
{
|
||||
std::stringstream s;
|
||||
s << "ISO8601d"
|
||||
<< " _year=" << _year
|
||||
<< " _month=" << _month
|
||||
<< " _week=" << _week
|
||||
<< " _weekday=" << _weekday
|
||||
<< " _julian=" << _julian
|
||||
<< " _day=" << _day
|
||||
<< " _seconds=" << _seconds
|
||||
<< " _offset=" << _offset
|
||||
<< " _utc=" << _utc
|
||||
<< " _date=" << _date;
|
||||
<< " y" << _year
|
||||
<< " m" << _month
|
||||
<< " w" << _week
|
||||
<< " wd" << _weekday
|
||||
<< " j" << _julian
|
||||
<< " d" << _day
|
||||
<< " s" << _seconds
|
||||
<< " off" << _offset
|
||||
<< " utc" << _utc
|
||||
<< " =" << _date
|
||||
<< " " << (_date ? toISO () : "");
|
||||
|
||||
return s.str ();
|
||||
}
|
||||
|
@ -1988,13 +1989,14 @@ std::string ISO8601p::dump () const
|
|||
{
|
||||
std::stringstream s;
|
||||
s << "ISO8601p"
|
||||
<< " _year=" << _year
|
||||
<< " _month=" << _month
|
||||
<< " _day=" << _day
|
||||
<< " _hours=" << _hours
|
||||
<< " _minutes=" << _minutes
|
||||
<< " _seconds=" << _seconds
|
||||
<< " _period=" << _period;
|
||||
<< " y" << _year
|
||||
<< " mo" << _month
|
||||
<< " d" << _day
|
||||
<< " h" << _hours
|
||||
<< " mi" << _minutes
|
||||
<< " s" << _seconds
|
||||
<< " =" << _period
|
||||
<< " " << (_period ? format () : "");
|
||||
|
||||
return s.str ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue