Defines a JsonConverter that serializes DateTime use the number of whole and fractional seconds since unix epoch
More...
|
override bool | CanConvert (Type objectType) |
| Determines whether this instance can convert the specified object type. More...
|
|
override object | ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
| Reads the JSON representation of the object. More...
|
|
override void | WriteJson (JsonWriter writer, object value, JsonSerializer serializer) |
| Writes the JSON representation of the object. More...
|
|
override bool | CanConvert (Type objectType) |
| Determines whether this instance can convert the specified object type. More...
|
|
|
override? double | Convert (DateTime? value) |
| Convert the input value to a value to be serialzied More...
|
|
override? DateTime | Convert (double? value) |
| Converts the input value to be deserialized More...
|
|
virtual T | Create (Type type, JToken token) |
| Creates an instance of the un-projected type to be deserialized More...
|
|
abstract TResult | Convert (T value) |
| Convert the input value to a value to be serialized More...
|
|
abstract T | Convert (TResult value) |
| Converts the input value to be deserialized More...
|
|
Defines a JsonConverter that serializes DateTime use the number of whole and fractional seconds since unix epoch
Definition at line 24 of file DoubleUnixSecondsDateTimeJsonConverter.cs.
◆ CanConvert()
override bool QuantConnect.Util.DoubleUnixSecondsDateTimeJsonConverter.CanConvert |
( |
Type |
objectType | ) |
|
Determines whether this instance can convert the specified object type.
- Parameters
-
objectType | Type of the object. |
- Returns
true
if this instance can convert the specified object type; otherwise, false
.
Definition at line 35 of file DoubleUnixSecondsDateTimeJsonConverter.cs.
◆ Convert() [1/2]
override? double QuantConnect.Util.DoubleUnixSecondsDateTimeJsonConverter.Convert |
( |
DateTime? |
value | ) |
|
|
protected |
Convert the input value to a value to be serialzied
- Parameters
-
value | The input value to be converted before serialziation |
- Returns
- A new instance of TResult that is to be serialzied
Definition at line 46 of file DoubleUnixSecondsDateTimeJsonConverter.cs.
◆ Convert() [2/2]
override? DateTime QuantConnect.Util.DoubleUnixSecondsDateTimeJsonConverter.Convert |
( |
double? |
value | ) |
|
|
protected |
The documentation for this class was generated from the following file: