pub unsafe extern "C" fn napi_get_date_value(
env: napi_env,
value: napi_value,
result: *mut f64,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Obtains the C equivalent of the given ArkTS ‘Date’ object.
§Arguments
-
env- Current running virtual machine context. -
value- ArkTS data object. -
result- C time value in milliseconds format since 01 January, 1970 UTC.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If env, value or result is nullptr.
[napi_pending_exception] If an ArkTS exception existed when the function was called.
[napi_date_expected] If the ‘value’ is not a ‘Date’ object.
Available since API-level: 10