Share via


DateSpan Class

Definition

A date range. For example, between '2022-12-23' and '2023-01-05'.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.DateSpanTypeConverter))]
public class DateSpan : Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IDateSpan
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.DateSpanTypeConverter))>]
type DateSpan = class
    interface IDateSpan
    interface IJsonSerializable
Public Class DateSpan
Implements IDateSpan
Inheritance
DateSpan
Attributes
Implements

Constructors

Name Description
DateSpan()

Creates an new DateSpan instance.

Properties

Name Description
End

The end date of the date span.

Start

The start date of the date span.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of DateSpan.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of DateSpan.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IDateSpan.

FromJsonString(String)

Creates a new instance of DateSpan, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of DateSpan into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to