pub fn getcurrenttime() -> Vec<String>Expand description
Port of getcurrenttime(UNUSED(Param pm)) from Src/Modules/datetime.c:220.
Returns the current epoch as (secs, nanos) — backs the
$epochtime two-element array param.
C body:
struct timespec now;
zgettime(&now);
arr[0] = sprintf "%ld" now.tv_sec
arr[1] = sprintf "%ld" now.tv_nsec
return arr;WARNING: param names don’t match C — Rust=() vs C=(pm)