Skip to content

PgTimestampTzConverter

Namespace: Ankus.Serialization

Assembly: Ankus.Runtime.dll

Converts full-range instants to and from PostgreSQL ISO strings using the session timezone.

public sealed class PgTimestampTzConverter : JsonConverter<PgTimestampTz>

Inheritance: object, JsonConverter, JsonConverter<PgTimestampTz>

public PgTimestampTzConverter()

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

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

Parameters:

reader — Utf8JsonReader

typeToConvert — Type

options — JsonSerializerOptions

Returns: PgTimestampTz

Write(Utf8JsonWriter, PgTimestampTz, JsonSerializerOptions)

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

Parameters:

writer — Utf8JsonWriter

value — PgTimestampTz

options — JsonSerializerOptions