RaviTimeZone
public sealed class RaviTimeZone
The time zone the PC that recorded a PIX Connect recording 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. Give the zone as an IANA name (RaviTimeZone.FromIanaName(…), daylight saving time applied as the zone had it on the recording's date), as a TimeZoneInfo (RaviTimeZone.FromTimeZoneInfo(…)) or as a fixed offset (RaviTimeZone.FromUtcOffset(…)). The zone data is the platform's own: the ICU copy Windows 10 version 1903 and later carry on Windows, the system's on Linux. Nothing is fetched from the network.
Without one, this computer's zone is used, which is right only when this computer is in the zone the recording PC was in; a recording converted that way says so (RecordingTimeZone.Assumed), and Ravi.CorrectStartTime(…) sets the real one afterwards.
RaviTimeZone: properties
public string? IanaName { get; }
The IANA zone name, or null for a fixed offset.
public Nullable<TimeSpan> UtcOffset { get; }
The fixed offset, or null for a named zone.
RaviTimeZone: methods
public static RaviTimeZone FromIanaName(string name)
A zone by its IANA name, such as "Europe/Berlin".
- Throws
ArgumentException:nameis null or empty.
public static RaviTimeZone FromTimeZoneInfo(TimeZoneInfo zone)
A TimeZoneInfo's zone, by its IANA name: its own id where that is one, or the IANA name of a Windows zone id.
- Throws
ArgumentException: The zone has no IANA name.
public static RaviTimeZone FromUtcOffset(TimeSpan offset)
A fixed offset from UTC, the same all year: east of Greenwich is positive (one hour for UTC+01:00).
- Throws
ArgumentOutOfRangeException: The offset is not a whole number of minutes, or is past 18 hours.