ISO8601d: Added ::month
This commit is contained in:
@@ -906,6 +906,13 @@ int ISO8601d::length (const std::string& format)
|
||||
return len;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int ISO8601d::month () const
|
||||
{
|
||||
struct tm* t = localtime (&_date);
|
||||
return t->tm_mon + 1;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
||||
@@ -53,6 +53,8 @@ public:
|
||||
|
||||
static int length (const std::string&);
|
||||
|
||||
int month () const;
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
bool parse_date_time (Nibbler&);
|
||||
|
||||
Reference in New Issue
Block a user