///////////////////////////////////////////////////////////////////////////
| 483 | |
| 484 | //////////////////////////////////////////////////////////////////////////////// |
| 485 | Datetime 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 | //////////////////////////////////////////////////////////////////////////////// |
| 494 | Datetime Chart::increment(const Datetime& input, char period) { |
nothing calls this directly
no outgoing calls
no test coverage detected