Next: , Up: STCS Tools   [Contents]


4.1 current-time

Author

Christian Brunello ([email protected])

License

GNU General Public License version 3 or later (see GNU General Public License)

Kind

Executable ($bindir/current-time)

Prints the local wall clock as a single JSON object on standard output (no mandatory options beyond --version / --help).

$ current-time
{"year": 2026, "month": 10, "day": 13, "hour": 14, "minute": 30,
 "second": 0, "dayMinutes": 870, "daySeconds": 52200,
 "unix": 1791893400, "UTCOffset": 7200000000, "timezone": "CEST"}

Fields include calendar components, minutes/seconds since local midnight, Unix time, UTC offset (as returned by GLib), and a timezone abbreviation.

Typical STCS binding: <command>/usr/local/bin/current-time</command> inside a process-transport (site overlay often named current-time.xml).