# IcsTemporalValue

A parsed iCalendar DATE or DATE-TIME value that retains its original time semantics.

Struct 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[IcsTemporalValue.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L45)

**Base**

`ValueType`

**Implements**

`IEquatable<IcsTemporalValue>`

**Modifiers**

sealed

A parsed iCalendar DATE or DATE-TIME value that retains its original time semantics.

## Inheritance

- ValueType
- IcsTemporalValue

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Read and Edit Calendars, Contacts, and Outlook Items](/docs/email/calendars-and-contacts/) Guide
  
  Read and update iCalendar (ICS), vCalendar, and vCard files, and expand Outlook appointment recurrence with OfficeIMO.Email.

## Usage

Explore 17 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.

### Returned or exposed by 13

- Extension method [ContentLineComponent.GetTemporalValue](/api/email/officeimo-email-contentlinecomponent/#extension-gettemporalvalue-officeimo-email-contentlinecomponent-string)
- Method [IcsComponentExtensions.GetTemporalValue](/api/email/officeimo-email-icscomponentextensions/#method-gettemporalvalue-officeimo-email-contentlinecomponent-string)
- Method [IcsTemporalValue.Date](/api/email/officeimo-email-icstemporalvalue/#method-date-datetime)
- Method [IcsTemporalValue.Floating](/api/email/officeimo-email-icstemporalvalue/#method-floating-datetime)
- Method [IcsTemporalValue.Parse](/api/email/officeimo-email-icstemporalvalue/#method-parse-officeimo-email-contentlineproperty)
- Method [IcsTemporalValue.Utc](/api/email/officeimo-email-icstemporalvalue/#method-utc-datetimeoffset)
- Method [IcsTemporalValue.Zoned](/api/email/officeimo-email-icstemporalvalue/#method-zoned-datetime-string)
- Property [OutlookRecurrenceIcsException.End](/api/email/officeimo-email-outlookrecurrenceicsexception/#property-end)
- Property [OutlookRecurrenceIcsException.OriginalStart](/api/email/officeimo-email-outlookrecurrenceicsexception/#property-originalstart)
- Property [OutlookRecurrenceIcsException.Start](/api/email/officeimo-email-outlookrecurrenceicsexception/#property-start)
- Property [OutlookRecurrenceIcsExportResult.ExcludedDates](/api/email/officeimo-email-outlookrecurrenceicsexportresult/#property-excludeddates)
- Property [OutlookRecurrenceIcsImportOptions.ExcludedDates](/api/email/officeimo-email-outlookrecurrenceicsimportoptions/#property-excludeddates)
- Property [OutlookRecurrenceIcsImportOptions.Start](/api/email/officeimo-email-outlookrecurrenceicsimportoptions/#property-start)

### Accepted by parameters 4

- Extension method [ContentLineComponent.SetTemporalValue](/api/email/officeimo-email-contentlinecomponent/#extension-settemporalvalue-officeimo-email-contentlinecomponent-string-officeimo-email-icstemporalvalue) parameter `value`
- Method [IcsComponentExtensions.SetTemporalValue](/api/email/officeimo-email-icscomponentextensions/#method-settemporalvalue-officeimo-email-contentlinecomponent-string-officeimo-email-icstemporalvalue) parameter `value`
- Method [IcsTemporalValue.Equals](/api/email/officeimo-email-icstemporalvalue/#method-equals-officeimo-email-icstemporalvalue) parameter `other`
- Method [IcsTemporalValue.TryParse](/api/email/officeimo-email-icstemporalvalue/#method-tryparse-officeimo-email-contentlineproperty-officeimo-email-icstemporalvalue) parameter `value`

Filter members 

Show inherited

## Methods

`public void ApplyTo(ContentLineProperty property)` [#](#method-applyto-officeimo-email-contentlineproperty)

[IcsTemporalValue.cs:114](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L114)

Applies this value and its VALUE/TZID parameters to a property.

Parameters

**property OfficeIMO.Email.ContentLineProperty required**

`public static IcsTemporalValue Date(DateTime value)` [#](#method-date-datetime)

[IcsTemporalValue.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L45)

Creates a DATE value.

Parameters

**value System.DateTime required**

Returns

`IcsTemporalValue`

Equals 2 overloads

`public bool Equals(IcsTemporalValue other)` [#](#method-equals-officeimo-email-icstemporalvalue)

[IcsTemporalValue.cs:137](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L137)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.Email.IcsTemporalValue required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

`public override bool Equals(object? obj)` [#](#method-equals-object)

[IcsTemporalValue.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L142)

Indicates whether this instance and a specified object are equal.

Parameters

**obj object? required**

The object to compare with the current instance.

Returns

`bool` true if obj and this instance are the same type and represent the same value; otherwise, false.

`public static IcsTemporalValue Floating(DateTime value)` [#](#method-floating-datetime)

[IcsTemporalValue.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L49)

Creates a floating DATE-TIME value.

Parameters

**value System.DateTime required**

Returns

`IcsTemporalValue`

`public override int GetHashCode()` [#](#method-gethashcode)

[IcsTemporalValue.cs:147](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L147)

Returns the hash code for this instance.

Returns

`int` A 32-bit signed integer that is the hash code for this instance.

`public static IcsTemporalValue Parse(ContentLineProperty property)` [#](#method-parse-officeimo-email-contentlineproperty)

[IcsTemporalValue.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L65)

Parses a temporal content-line property.

Parameters

**property OfficeIMO.Email.ContentLineProperty required**

Returns

`IcsTemporalValue`

`public static bool TryParse(ContentLineProperty? property, out IcsTemporalValue value)` [#](#method-tryparse-officeimo-email-contentlineproperty-officeimo-email-icstemporalvalue)

[IcsTemporalValue.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L72)

Attempts to parse a temporal property while preserving DATE, floating, UTC, and TZID forms.

Parameters

**property OfficeIMO.Email.ContentLineProperty? required**

**value OfficeIMO.Email.IcsTemporalValue required**

Returns

`bool`

`public static IcsTemporalValue Utc(DateTimeOffset value)` [#](#method-utc-datetimeoffset)

[IcsTemporalValue.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L53)

Creates a UTC DATE-TIME value.

Parameters

**value System.DateTimeOffset required**

Returns

`IcsTemporalValue`

`public static IcsTemporalValue Zoned(DateTime localValue, string timeZoneId)` [#](#method-zoned-datetime-string)

[IcsTemporalValue.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L58)

Creates a TZID-local DATE-TIME value without resolving the identifier through the host OS.

Parameters

**localValue System.DateTime required**

**timeZoneId string required**

Returns

`IcsTemporalValue`

## Inherited Methods

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

## Properties

`public DateTime Value { get; }` [#](#property-value)

[IcsTemporalValue.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L26)

Clock value. Inspect [IcsTemporalValue.Kind](/api/email/officeimo-email-icstemporalvalue/) before interpreting it.

`public IcsTemporalValueKind Kind { get; }` [#](#property-kind)

[IcsTemporalValue.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L28)

Temporal representation kind.

`public string? TimeZoneId { get; }` [#](#property-timezoneid)

[IcsTemporalValue.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L30)

TZID for [IcsTemporalValueKind.ZonedDateTime](/api/email/officeimo-email-icstemporalvaluekind/).

`public bool IsLeapSecond { get; }` [#](#property-isleapsecond)

[IcsTemporalValue.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Calendar/IcsTemporalValue.cs#L35)

Whether the parsed DATE-TIME used the RFC 5545 leap-second value 60. When true, [IcsTemporalValue.Value](/api/email/officeimo-email-icstemporalvalue/) is the normalized following instant while serialization restores second 60.

<!-- PowerForge markdown artifact sha256:7876A25C0DBF6859BD8201B02300BA6FC2B8BC88B94BD7A650B9101149B6C1EE -->
