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