Skip to content

GetTime

Fetches the current UTC time from https://gettimeapi.dev/v1/time?timezone=UTC on every triggering CloudEvent and publishes it. A Python worker that makes a plain outbound HTTP call; the trigger's own data is ignored.

Property Value
Package virtufin-worker-gettime (wheel, org PyPI feed)
Engine (MIME) application/x-python (a child python3 process)
Base class WorkerBase from virtufin-worker-devkit
Command topic wrk.gettime.command.<worker_id>
Responses com.virtufin.gettime.response on wrk.gettime.response (or the caller's replytopic)
Errors com.virtufin.gettime.error on wrk.gettime.error

Response

The data is the service's JSON (or the raw body if it is not JSON):

{"timestamp": 1785493537, "time": "10:25:37.253407", "date": "2026-07-31",
 "timezone": "UTC", "iso8601": "2026-07-31T10:25:37Z", ...}

source is urn:com.virtufin:worker:gettime; correlationid is copied from the trigger.

A failed GET gives one error response ({"command": "error", "success": false, "message": ...}) and is not retried; the worker never throws.

Build and deploy: Build and deploy GetTime.

Source and changelog: GetTime/.