mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ISO8601d: Renamed ::_value to ::_date
This commit is contained in:
parent
5eb9948235
commit
eeb592d032
3 changed files with 18 additions and 18 deletions
|
@ -109,7 +109,7 @@ static struct
|
|||
ISO8601d::ISO8601d ()
|
||||
{
|
||||
clear ();
|
||||
_value = time (NULL);
|
||||
_date = time (NULL);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -120,7 +120,7 @@ ISO8601d::~ISO8601d ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
ISO8601d::operator time_t () const
|
||||
{
|
||||
return _value;
|
||||
return _date;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -209,7 +209,7 @@ void ISO8601d::clear ()
|
|||
_seconds = 0;
|
||||
_offset = 0;
|
||||
_utc = false;
|
||||
_value = 0;
|
||||
_date = 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -579,7 +579,7 @@ void ISO8601d::resolve ()
|
|||
t.tm_min = (seconds % 3600) / 60;
|
||||
t.tm_sec = seconds % 60;
|
||||
|
||||
_value = utc ? timegm (&t) : mktime (&t);
|
||||
_date = utc ? timegm (&t) : mktime (&t);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
int _seconds;
|
||||
int _offset;
|
||||
bool _utc;
|
||||
time_t _value;
|
||||
time_t _date;
|
||||
};
|
||||
|
||||
// Period
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue