DATE::TIME_JSON 1g 2025-09-11 laplante@plcb.ca GOWEB/DATE


title: DATE::TIME_JSON section: 1g version: 1.0.1 date: 2025-09-11 author: laplante@plcb.ca

category: GOWEB/DATE

Name

date::time_json Convert a time value in JSON

SYNOPSIS

date::timeJson or timeJson(time)
date::time_json or time_json(time)

DESCRIPTION

Converts a time value (such as one returned by now()) into a JSON object containing detailed date and time components.

EXAMPLES

    res={{
        t := now();
        time_json(t);
    }}.

    → {"day":23,"hour":17,"minute":57,"month":10,"second":12,"unix":1700999768,"year":2023}

AUTHOR

laplante@plcb.ca

SEE ALSO

VERSION