pub unsafe extern "C" fn napi_is_date(
env: napi_env,
value: napi_value,
is_date: *mut bool,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Checks whether the given ArkTS value is a ‘Date’ object. You can use this API to check the type of the parameter passed from ArkTS.
§Arguments
-
env- Current running virtual machine context. -
value- ArkTS data object. -
is_date- Boolean value that is set to true if the ‘value’ is a ‘Date’ object, false otherwise.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If env, value or is_date is nullptr.
Available since API-level: 10