ISO8601d: Added ::dayOfWeek
This commit is contained in:
@@ -954,6 +954,13 @@ int ISO8601d::weekOfYear (int weekStart) const
|
||||
return weekNumber;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int ISO8601d::dayOfWeek () const
|
||||
{
|
||||
struct tm* t = localtime (&_date);
|
||||
return t->tm_wday;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user