#include <TriggerTimestamp.h>
Inheritance diagram for annotatorcomm::annotatorjr::TriggerTimestamp:
Public Member Functions | |
TriggerTimestamp (int year, int day, int second, long microsecond) | |
void | offsetYear (int offset) |
void | offsetDays (int offset) |
void | offsetSeconds (int offset) |
void | offsetMicrosecond (int offset) |
Static Public Member Functions | |
static TriggerTimestamp | makeTriggerTimestamp (vector< uint8_t > timestamp, int offset) |
Definition at line 34 of file TriggerTimestamp.h.
annotatorcomm::annotatorjr::TriggerTimestamp::TriggerTimestamp | ( | int | year, | |
int | day, | |||
int | second, | |||
long | microsecond | |||
) |
Construct a TriggerTimestamp
.
year | timestamp year | |
day | timestamp day of year | |
second | timestamp second of day | |
microsecond | timestamp microsecond |
void annotatorcomm::annotatorjr::TriggerTimestamp::offsetDays | ( | int | offset | ) |
Offset the timestamp by a given number of days. The offset can be positive or negative and can be greater than the number of days in a year. Rollover will be propagated through the timestamp as years.
offset | days to offset |
void annotatorcomm::annotatorjr::TriggerTimestamp::offsetMicrosecond | ( | int | offset | ) |
Offset the timestamp by a given number of microseconds. The offset can be positive or negative and can be greater than the number of microseconds in a second. Rollover will be propagated through the timestamp as seconds.
offset | microseconds to offset |
void annotatorcomm::annotatorjr::TriggerTimestamp::offsetSeconds | ( | int | offset | ) |
Offset the timestamp by a given number of seconds. The offset can be positive or negative and can be greater than the number of seconds in a day. Rollover will be propagated through the timestamp as days.
offset | seconds to offset |
void annotatorcomm::annotatorjr::TriggerTimestamp::offsetYear | ( | int | offset | ) |
Offset the timestamp by a given number of years. The offset can be positive or negative.
offset | years to offset |