optris::sdk::rec::RecordingTimeZone
The time zone a recording was made in, as the recording states it.
A recording's start (Player::GetStartTimeUs()) is UTC. This is the zone beside it, so the start can be shown as the clock in the room read: GetStartTimeUs() + utc_offset_minutes * 60000000 is that clock reading, in microseconds since 1970-01-01T00:00:00.
The SDK writes it into every recording it makes. A recording of a camera states the zone of the computer that recorded it, which is known for certain. A recording converted from a PIX Connect .ravi states the zone given at conversion (rec::ImportRavi()), or, when none was given, the converting computer's zone with assumed set, because a .ravi does not say which zone its PC was in.
Public attributes
known
bool known = false
Whether the recording states a zone. False for a recording made by an SDK release before this field existed or by another program; every other field is then empty.
name
std::string name
The zone's IANA name ("Europe/Berlin"). Empty when the zone was a fixed UTC offset, or the computer's zone has no IANA name.
utc_offset_minutes
int32_t utc_offset_minutes = 0
The zone's offset from UTC at the recording's start, in minutes east of Greenwich: +120 for central European summer time, -300 for US eastern standard time.
assumed
bool assumed = false
True for a recording converted from a .ravi with no zone given: the converting computer's zone was assumed to be the recording PC's, and the start is right only if it was. rec::CorrectRaviStartTime() sets the real one and clears this.
corrected
bool corrected = false
True when the zone and the start were set after the recording was written (rec::CorrectRaviStartTime()).