title: DATE::TIME_JSON section: 1g version: 1.0.1 date: 2025-09-11 author: laplante@plcb.ca
date::time_json Convert a time value in JSON
date::timeJson or timeJson(time)
date::time_json or time_json(time)
Converts a time value (such as one returned by now()
) into a JSON object
containing detailed date and time components.
res={{
t := now();
time_json(t);
}}.
→ {"day":23,"hour":17,"minute":57,"month":10,"second":12,"unix":1700999768,"year":2023}
laplante@plcb.ca