你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

UnixDateTimeConverter Class

Definition

Converts a DateTime object to and from JSON. DateTime is represented as the total number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds (in ISO 8601: 1970-01-01T00:00:00Z).

public sealed class UnixDateTimeConverter : Newtonsoft.Json.Converters.DateTimeConverterBase
type UnixDateTimeConverter = class
    inherit DateTimeConverterBase
Public NotInheritable Class UnixDateTimeConverter
Inherits DateTimeConverterBase
Inheritance
Newtonsoft.Json.Converters.DateTimeConverterBase
UnixDateTimeConverter

Constructors

UnixDateTimeConverter()

Methods

ReadJson(JsonReader, Type, Object, JsonSerializer)

Reads the JSON representation of the DateTime object.

WriteJson(JsonWriter, Object, JsonSerializer)

Writes the JSON representation of the DateTime object.

Applies to