public static DateTime GetDateTime(int jsEnvIdx, IntPtr isolate, IGetValueFromJs getValueApi, IntPtr holder, bool isByRef) { var ticks = getValueApi.GetDate(isolate, holder, isByRef); return (new DateTime(1970, 1, 1)).AddMilliseconds(ticks); }
private static object DateTranslator(IntPtr isolate, IGetValueFromJs getValueApi, IntPtr value, bool isByRef) { var ticks = getValueApi.GetDate(isolate, value, isByRef); return((new DateTime(1970, 1, 1)).AddMilliseconds(ticks)); }