ISO8601d: Added ::day
This commit is contained in:
@@ -919,6 +919,13 @@ int ISO8601d::week () const
|
|||||||
return ISO8601d::weekOfYear (ISO8601d::dayOfWeek (ISO8601d::weekstart));
|
return ISO8601d::weekOfYear (ISO8601d::dayOfWeek (ISO8601d::weekstart));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
int ISO8601d::day () const
|
||||||
|
{
|
||||||
|
struct tm* t = localtime (&_date);
|
||||||
|
return t->tm_mday;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void ISO8601p::clear ()
|
void ISO8601p::clear ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public:
|
|||||||
|
|
||||||
int month () const;
|
int month () const;
|
||||||
int week () const;
|
int week () const;
|
||||||
|
int day () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void clear ();
|
void clear ();
|
||||||
|
|||||||
Reference in New Issue
Block a user