• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class UtcOffset

A UTC offset value (RFC 5545 §3.3.14), the difference between local time and UTC. Serialized as +HHMM or -HHMM (optionally with seconds: +HHMMSS).

Inheritance
object
UtcOffset
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.ICal
Assembly: DRIT.Mail.dll
Syntax
public sealed class UtcOffset

Constructors

View Source

UtcOffset(TimeSpan)

Initializes a new instance of the UtcOffset class.

Declaration
public UtcOffset(TimeSpan offset)
Parameters
Type Name Description
TimeSpan offset

The offset from UTC.

Properties

View Source

Offset

Gets the offset from UTC.

Declaration
public TimeSpan Offset { get; }
Property Value
Type Description
TimeSpan

Methods

View Source

Parse(string)

Parses a UTC offset string (RFC 5545 §3.3.14). Supports +HHMM, -HHMM, and +HHMMSS / -HHMMSS.

Declaration
public static UtcOffset Parse(string text)
Parameters
Type Name Description
string text

Specifies the text value.

Returns
Type Description
UtcOffset
View Source

ToString()

Formats this offset for iCalendar serialization (e.g. +0200).

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX