Method | Description | |
---|---|---|
DateToSeconds ( DateTimeOffset dto ) : string |
Returns the number of seconds since 01/01/1970
|
|
ReadJson ( |
||
SecondsToDate ( double seconds ) : DateTimeOffset |
Gets a date from the given number of seconds
|
|
WriteJson ( |
Method | Description | |
---|---|---|
CheckType ( |
public static DateToSeconds ( DateTimeOffset dto ) : string | ||
dto | DateTimeOffset | The date to be parsed |
return | string |
public ReadJson ( |
||
reader | ||
objectType | ||
existingValue | object | |
serializer | ||
return | object |
public static SecondsToDate ( double seconds ) : DateTimeOffset | ||
seconds | double | |
return | DateTimeOffset |
public WriteJson ( |
||
writer | ||
value | object | |
serializer | ||
return | void |