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

Method quantize

src/commands/CmdBurndown.cpp:485–491  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

483
484////////////////////////////////////////////////////////////////////////////////
485Datetime Chart::quantize(const Datetime& input, char period) {
486 if (period == 'D') return input.startOfDay();
487 if (period == 'W') return input.startOfWeek();
488 if (period == 'M') return input.startOfMonth();
489
490 return input;
491}
492
493////////////////////////////////////////////////////////////////////////////////
494Datetime Chart::increment(const Datetime& input, char period) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected