OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::rec::RaviTimeZone

The time zone the PC that recorded a .ravi was in.

A .ravi stores when it started as that PC's local clock showed it, with no time zone, so the instant cannot be known from the file alone. This says which zone to read the clock in. Give one of:

  • name: an IANA zone name ("Europe/Berlin", "America/New_York"). Daylight saving time is applied as that zone had it on the recording's date. The names come from the platform's own zone database: the system's (/usr/share/zoneinfo) on Linux, the one Windows 10 version 1903 and later carry on Windows. Nothing is fetched from the network.
  • has_utc_offset and utc_offset_minutes: a fixed offset from UTC in minutes east of Greenwich (+60 for UTC+01:00), the same all year. For a PC whose clock was not on local time, or when the zone's name is not known.

Neither, the default, means this computer's zone, which is right only when this computer is in the zone the recording PC was in; a recording converted that way says the zone was assumed (RecordingTimeZone::assumed). Both is refused.

Public attributes

name

std::string name

The IANA zone name. Empty for none.

has_utc_offset

bool has_utc_offset = false

Whether utc_offset_minutes is given.

utc_offset_minutes

int32_t utc_offset_minutes = 0

The fixed offset from UTC, in minutes east, -1080 to +1080.