6 #ifndef ACE_TIME_TIME_PERIOD_MUTATION_H
7 #define ACE_TIME_TIME_PERIOD_MUTATION_H
10 #include <AceCommon.h>
11 #include "TimePeriod.h"
14 namespace time_period_mutation {
33 inline void incrementHour(
TimePeriod& period, uint8_t limit) {
34 uint8_t hour = period.
hour();
35 ace_common::incrementMod(hour, limit);
41 incrementHour(period, (uint8_t) 24);
46 uint8_t minute = period.
minute();
47 ace_common::incrementMod(minute, (uint8_t) 60);
Represents a period of time relative to some known point in time, potentially represented by a DateTi...
int8_t sign() const
Return the sign bit.
uint8_t minute() const
Return the minute.
uint8_t hour() const
Return the hour.
void negate(TimePeriod &period)
Change the sign of the object.