Skip to content

PgTimeTzConverter

Namespace: Ankus.Serialization

Assembly: Ankus.Runtime.dll

Converts times with second-resolution offsets to and from PostgreSQL ISO strings on the active backend.

public sealed class PgTimeTzConverter : JsonConverter<PgTimeTz>

Inheritance: object, JsonConverter, JsonConverter<PgTimeTz>

public PgTimeTzConverter()

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Section titled “Read(ref Utf8JsonReader, Type, JsonSerializerOptions)”
public override PgTimeTz Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters:

reader — Utf8JsonReader

typeToConvert — Type

options — JsonSerializerOptions

Returns: PgTimeTz

Write(Utf8JsonWriter, PgTimeTz, JsonSerializerOptions)

Section titled “Write(Utf8JsonWriter, PgTimeTz, JsonSerializerOptions)”
public override void Write(Utf8JsonWriter writer, PgTimeTz value, JsonSerializerOptions options)

Parameters:

writer — Utf8JsonWriter

value — PgTimeTz

options — JsonSerializerOptions