Property DateTimeAsMillis
DateTimeAsMillis
Gets or sets a value indicating whether to output
DateTime values as a number of milliseconds since
the Unix Epoch.
Declaration
public bool DateTimeAsMillis { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
true to output DateTime values as a number of
milliseconds since the Unix Epoch, false to output
DateTime values as strings. The default is
false .
|
Remarks
By default, DateTime values represented by
TimestampValue instances will be represented in JSON
as ISO8601-formatted strings. This option allows representing
them instead as a number equal to the number of milliseconds since
the Unix Epoch, 00:00:00 UTC, January 1, 1970. See
ToInt64() for more information.