Struct TimestampOffsetValue
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
valueDateTimeOffset
Properties
Value
Underlying timestamp value with preserved UTC offset.
public DateTimeOffset Value { get; }
Property Value
Methods
Parse(string)
Parses an RFC 3339 timestamp string retaining its UTC offset.
public static TimestampOffsetValue Parse(string text)
Parameters
textstring
Returns
ToRfc3339String()
Formats the timestamp as an RFC 3339 string retaining its UTC offset.
public string ToRfc3339String()