ISO8601d: Added ::week
This commit is contained in:
@@ -913,6 +913,12 @@ int ISO8601d::month () const
|
|||||||
return t->tm_mon + 1;
|
return t->tm_mon + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
int ISO8601d::week () const
|
||||||
|
{
|
||||||
|
return ISO8601d::weekOfYear (ISO8601d::dayOfWeek (ISO8601d::weekstart));
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void ISO8601p::clear ()
|
void ISO8601p::clear ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ public:
|
|||||||
static int length (const std::string&);
|
static int length (const std::string&);
|
||||||
|
|
||||||
int month () const;
|
int month () const;
|
||||||
|
int week () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clear ();
|
void clear ();
|
||||||
|
|||||||
Reference in New Issue
Block a user