Table of Contents

Struct TimestampOffsetValue

Namespace
Honua.Sdk.Grpc.Models
Assembly
Honua.Sdk.Grpc.dll

Attribute value carrying an RFC 3339 timestamp with its original UTC offset preserved.

public readonly record struct TimestampOffsetValue : IEquatable<TimestampOffsetValue>
Implements
Inherited Members

Constructors

TimestampOffsetValue(DateTimeOffset)

Initializes a new timestamp-offset attribute value.

public TimestampOffsetValue(DateTimeOffset value)

Parameters

value DateTimeOffset

Properties

Value

Underlying timestamp value with preserved UTC offset.

public DateTimeOffset Value { get; }

Property Value

DateTimeOffset

Methods

Parse(string)

Parses an RFC 3339 timestamp string retaining its UTC offset.

public static TimestampOffsetValue Parse(string text)

Parameters

text string

Returns

TimestampOffsetValue

ToRfc3339String()

Formats the timestamp as an RFC 3339 string retaining its UTC offset.

public string ToRfc3339String()

Returns

string