TimeConverter Class

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Json.Converters.Time
Assembly Skybrud.Essentials.dll
Visibility Public
Inheritance

Converts a timestamp (eg. DateTime or DateTimeOffset ) to TimeConverter.Format.

public class TimeConverter : JsonConverter { }

Properties

Type Name Summary
TimeFormat Format

The format to be used when serializing to JSON. Default is Iso8601.

bool CanRead (inherited from JsonConverter )
bool CanWrite (inherited from JsonConverter )

Methods

CanConvert(Type) (virtual)

Determines whether this instance can convert the specified object type.

Reads the JSON representation of the object.

Writes the JSON representation of the object.

Inherited from JsonConverter

GetSchema() (virtual)