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

Method is_duequarter

src/Task.cpp:447–458  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

445
446////////////////////////////////////////////////////////////////////////////////
447bool Task::is_duequarter() const {
448 if (has("due")) {
449 Task::status status = getStatus();
450
451 if (status != Task::completed && status != Task::deleted) {
452 Datetime due(get_date("due"));
453 if (due >= Datetime("soq") && due <= Datetime("eoq")) return true;
454 }
455 }
456
457 return false;
458}
459
460////////////////////////////////////////////////////////////////////////////////
461bool Task::is_dueyear() const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected