MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / is_dueweek

Method is_dueweek

src/Task.cpp:419–430  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

417
418////////////////////////////////////////////////////////////////////////////////
419bool Task::is_dueweek() const {
420 if (has("due")) {
421 Task::status status = getStatus();
422
423 if (status != Task::completed && status != Task::deleted) {
424 Datetime due(get_date("due"));
425 if (due >= Datetime("sow") && due <= Datetime("eow")) return true;
426 }
427 }
428
429 return false;
430}
431
432////////////////////////////////////////////////////////////////////////////////
433bool Task::is_duemonth() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected