Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OutlookTimeZoneDefinition

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Typed Outlook TZDEFINITION with lossless native-state retention.

Inheritance

  • object
  • OutlookTimeZoneDefinition

Usage

Explore 10 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 4

Constructors

public OutlookTimeZoneDefinition() #

Creates an editable definition.

Methods

public DateTimeOffset ConvertUtc(DateTimeOffset utcValue) #

Converts a UTC instant using the embedded historical rules.

Parameters

utcValue System.DateTimeOffset required

Returns

DateTimeOffset
public OutlookLocalTimeResolution GetLocalTimeResolution(DateTime localTime) #

Classifies a local clock value without consulting the host time zone.

Parameters

localTime System.DateTime required
public OutlookTimeZoneRule GetRule(int localYear) #

Returns the rule effective for a local year.

Parameters

localYear int required
public DateTimeOffset ResolveLocal(DateTime localTime, OutlookAmbiguousTimePolicy policy = EarlierUtc) #

Resolves a local clock value using an explicit ambiguity policy.

Parameters

localTime System.DateTime required
policy OfficeIMO.Email.OutlookAmbiguousTimePolicy = EarlierUtc optional

Returns

DateTimeOffset

Properties

public string? KeyName { get; set; } #

Windows time-zone key carried by Outlook.

public IList<OutlookTimeZoneRule> Rules { get; } #

Rules ordered by effective year.

public bool StateDecoded { get; internal set; } #

Whether the native BLOB decoded completely.

public string? DecodeError { get; internal set; } #

Decode failure for retained native input.

public byte[]? RawState { get; internal set; } #

Original TZDEFINITION bytes.