internal static cef_v8value_t* ToNativeV8Value(DateTime? value) { if (value.HasValue) { cef_time_t nDate = new cef_time_t(value.Value); return NativeMethods.cef_v8value_create_date(&nDate); } else { return NativeMethods.cef_v8value_create_null(); } }
/// <summary> /// Create a new CefV8Value object of type Date. /// </summary> public static CefV8Value CreateDate(DateTime value) { cef_time_t n_date = new cef_time_t(value); return CefV8Value.From( NativeMethods.cef_v8value_create_date(&n_date) ); }
internal static cef_v8value_t* ToNativeV8Value(DateTime value) { cef_time_t nDate = new cef_time_t(value); return NativeMethods.cef_v8value_create_date(&nDate); }