AdfDate Class
Represents a date.
public sealed class AdfDate : AdfNode- Inheritance
AdfNodeAdfDate
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Kind | Gets the type of the node. |
| Timestamp | Gets the date, as the number of milliseconds since the Unix epoch. |
Kind
AdfDate.csTimestamp
AdfDate.csMethods
| Name | Description |
|---|---|
| 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.csConverts 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
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.