ISO8601d: Removed obsolete ::isEpoch method
This commit is contained in:
@@ -960,19 +960,6 @@ void ISO8601d::resolve ()
|
|||||||
_date = utc ? timegm (&t) : mktime (&t);
|
_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 ()
|
ISO8601p::ISO8601p ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ private:
|
|||||||
bool parse_time_off_ext (Nibbler&);
|
bool parse_time_off_ext (Nibbler&);
|
||||||
bool validate ();
|
bool validate ();
|
||||||
void resolve ();
|
void resolve ();
|
||||||
bool isEpoch (const std::string&);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int _year;
|
int _year;
|
||||||
|
|||||||
Reference in New Issue
Block a user