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;
|
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 ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue