mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ISO8601d: Removed obsolete ::isEpoch method
This commit is contained in:
parent
ae22612584
commit
5cc3c8d05d
2 changed files with 0 additions and 14 deletions
|
@ -960,19 +960,6 @@ void ISO8601d::resolve ()
|
|||
_date = utc ? timegm (&t) : mktime (&t);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ISO8601d::isEpoch (const std::string& input)
|
||||
{
|
||||
if (Lexer::isAllDigits (input) &&
|
||||
input.length () <= 10 )
|
||||
{
|
||||
_date = (time_t) strtol (input.c_str (), NULL, 10);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
ISO8601p::ISO8601p ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue