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

Method is_duemonth

src/Task.cpp:433–444  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

431
432////////////////////////////////////////////////////////////////////////////////
433bool Task::is_duemonth() const {
434 if (has("due")) {
435 Task::status status = getStatus();
436
437 if (status != Task::completed && status != Task::deleted) {
438 Datetime due(get_date("due"));
439 if (due >= Datetime("som") && due <= Datetime("eom")) return true;
440 }
441 }
442
443 return false;
444}
445
446////////////////////////////////////////////////////////////////////////////////
447bool Task::is_duequarter() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected