Table of Contents

Class SecondsUnixDateTimeOffsetConverter

Namespace
NetCord.JsonConverters
Assembly
NetCord.dll
public class SecondsUnixDateTimeOffsetConverter : JsonConverter<DateTimeOffset>
Inheritance
SecondsUnixDateTimeOffsetConverter
Inherited Members

Constructors

SecondsUnixDateTimeOffsetConverter()

public SecondsUnixDateTimeOffsetConverter()

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader
typeToConvert Type
options JsonSerializerOptions

Returns

DateTimeOffset

Write(Utf8JsonWriter, DateTimeOffset, JsonSerializerOptions)

public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter
value DateTimeOffset
options JsonSerializerOptions