Dela via


TimeSpan Class

Definition

For example, between 2021-05-25T13:00:00Z and 2021-05-25T14:00:00Z.

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

Constructors

TimeSpan()

Creates an new TimeSpan instance.

Properties

End

The end of a time span

Start

The start of a time span

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of TimeSpan.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of TimeSpan.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of TimeSpan into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to