<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />

Newtonsoft.Json.Converters.UnixDateTimeConverter

Converts a DateTime to and from Unix epoch time
public bool AllowPreEpoch { get; set; }

Gets or sets a value indicating whether the dates before Unix epoch should converted to and from JSON.

Initializes a new instance of the UnixDateTimeConverter class.

public UnixDateTimeConverter(bool allowPreEpoch)

Initializes a new instance of the UnixDateTimeConverter class.