[wasm][bindings] Add support for marshaling DateTime and DateTimeOffset (#14722)
commitdf402845f286b671e718a8007e62301e710be3c3
authorKenneth Pouncey <kjpou@pt.lu>
Sat, 1 Jun 2019 03:11:59 +0000 (1 05:11 +0200)
committerGitHub <noreply@github.com>
Sat, 1 Jun 2019 03:11:59 +0000 (1 05:11 +0200)
treeadcc6143d2b69b893a74ac7c53dca016993e6826
parent43aeac9e1e4ca32e10e476a07b38dde08c56beac
[wasm][bindings] Add support for marshaling DateTime and DateTimeOffset (#14722)

* Add support for marshalling DateTime and DateTimeOffset

* Add type checking to Runtime.GetDateValue

- Update to use clr ToUnixTimeMillisecons and FromUnixTimeMilliseonds to replace manual calculations.
- Moved magic numbers to managed side to address comments left by Katelyn and Jay.
sdks/wasm/binding_support.js
sdks/wasm/driver.c
sdks/wasm/framework/src/WebAssembly.Bindings/Runtime.cs