Loading...
Searching...
No Matches
utc_time.h
Go to the documentation of this file.
158 const auto wholeSeconds = static_cast<long long>(std::floor(actual - result.absoluteSeconds()));
static bool start(uint32_t session)
Admit a nonzero session and discard correlation from the previous one.
Definition dipla_camera_backend.c:170
Definition camera_optics.h:32
bool captureUtcReady(const UtcDateTime &target, double actual, double readAgeSeconds, unsigned long long verifiedFrame, unsigned long long frame, bool pending)
Decide whether simulator UTC is stable enough to admit a capture.
Definition utc_time.h:185
bool captureUtcSampleValid(const UtcDateTime &target, double actual, long long read100ns, long long frame100ns)
Validate that a frame's UTC readback is recent and in the locked second.
Definition utc_time.h:202
UtcDateTime parseUtcDateTime(std::string_view text)
Parse a strict Gregorian UTC minute in YYYY-MM-DDTHH:MMZ form.
Definition utc_time.h:115
UtcDateTime utcMinuteFromAbsoluteTime(double actual)
Convert simulator calendar seconds to their containing UTC minute.
Definition utc_time.h:147
A Gregorian UTC minute and its simulator clock-matching rules.
Definition utc_time.h:51
double absoluteSeconds() const
Convert the calendar minute to a monotonically increasing calendar coordinate.
Definition utc_time.h:84
std::array< UtcEvent, 5 > events() const
Build the ordered simulator event sequence for this UTC minute.
Definition utc_time.h:75
static int daysInMonth(int year, int month)
Get the length of a Gregorian calendar month.
Definition utc_time.h:64
bool matchesCaptureTime(double actual) const
Check the stricter time window used for capture.
Definition utc_time.h:103
bool matchesAbsoluteTime(double actual) const
Check whether the simulator clock is in the requested UTC minute.
Definition utc_time.h:94
static bool leapYear(int value)
Return whether a Gregorian calendar year has 366 days.
Definition utc_time.h:56
int dayOfYear() const
Return the one-based ordinal day used by simulator clock events.
Definition utc_time.h:69
One simulator event/value pair used to set the Zulu clock.
Definition utc_time.h:41