Amistio
Get started
All connectors

Clock

Built in - no setup

Read the current instant. Use when a workflow needs a timestamp for records, messages, or time-based branching.

Publisher: Amistio (built-in) - version 1.0.0 - Apache-2.0

Operations (1)

  • Current time

    clock.now

    Return the current instant as epoch milliseconds, an ISO-8601 UTC string, plus calendar fields: date (YYYY-MM-DD), month (YYYY-MM), and previousMonth (YYYY-MM), all UTC, and newestFirstKey, a sortable record key. Use month/previousMonth to build calendar-scoped record collections; pin a datastore key to newestFirstKey so a bounded list returns the most recent records first. Deterministic per call, no side effects.

    Takes no inputs.

    Returns

    • epochMillis (number) - Milliseconds since the Unix epoch.
    • iso (string) - ISO-8601 UTC instant.
    • date (string) - UTC calendar date, YYYY-MM-DD.
    • month (string) - UTC calendar month, YYYY-MM.
    • previousMonth (string) - The UTC calendar month before the current one, YYYY-MM.
    • newestFirstKey (string) - A sortable record key whose NORMAL ascending lexicographic order is newest-first (a later instant sorts earlier). Pin a datastore.put key to it so a later bounded datastore.list returns the most recent records first, never the oldest.

Use Clock from the agent builder - add the block, and reviewed operations run with your own connected account.

Open the builder