mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
ISO8601d: Added ::dayOfWeek
This commit is contained in:
parent
66dc016ce6
commit
ac428e1f1a
2 changed files with 8 additions and 0 deletions
|
@ -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 ()
|
||||
{
|
||||
|
|
|
@ -58,6 +58,7 @@ public:
|
|||
int day () const;
|
||||
int year () const;
|
||||
int weekOfYear (int) const;
|
||||
int dayOfWeek () const;
|
||||
|
||||
private:
|
||||
void clear ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue