AdfDate Class

Represents a date.

public sealed class AdfDate : AdfNode
Inheritance
AdfNode AdfDate

Constructors

NameDescription
AdfDate()

AdfDate()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public AdfDate()

No documentation is available.

Properties

NameDescription
KindGets the type of the node.
TimestampGets the date, as the number of milliseconds since the Unix epoch.

Gets the type of the node.

public override AdfNodeKind Kind { get; }

Property value

AdfNodeKind

Timestamp

AdfDate.cs

Gets the date, as the number of milliseconds since the Unix epoch.

public required string Timestamp { get; init; }

Property value

string

Methods

NameDescription
GetDateTimeOffset()Converts AdfDate.Timestamp to a DateTimeOffset, or returns null when it does not hold a number or the date is outside the range of DateTimeOffset.

GetDateTimeOffset()

AdfDate.cs

Converts AdfDate.Timestamp to a DateTimeOffset, or returns null when it does not hold a number or the date is outside the range of DateTimeOffset.

public DateTimeOffset? GetDateTimeOffset()

Returns

DateTimeOffset?

Remarks

The Atlassian documentation shows an example that looks like a number of seconds, but the APIs return milliseconds. Values small enough to be implausible as milliseconds are read as seconds.