Skip to content

Current Time

Class: CurrentTimeBlockV1

Source: inference.core.workflows.core_steps.formatters.current_time.v1.CurrentTimeBlockV1

Output the current date and time for a given timezone.

Provide one of the curated timezone options (for example America/New_York, Europe/Berlin, or UTC) and the block returns the current moment in that timezone. The block produces a timestamp (a timezone-aware datetime object you can pass to other blocks), along with ready-to-use iso_string, date, and time strings.

The timezone may be a literal value typed into the block, or a reference to a workflow input or another step's output.

Type identifier

Use the following identifier in step "type" field: roboflow_core/current_time@v1to add the block as as step in your workflow.

Properties

Name Type Description Refs
name str Enter a unique identifier for this step..
timezone str Curated IANA timezone name to report the current time in..

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Available Connections

Compatible Blocks

Check what blocks you can connect to Current Time in version v1.

Input and Output Bindings

The available connections depend on its binding kinds. Check what binding kinds Current Time in version v1 has.

Bindings
  • input

    • timezone (string): Curated IANA timezone name to report the current time in..
  • output

    • timestamp (timestamp): Timestamp object.
    • iso_string (string): String value.
    • date (string): String value.
    • time (string): String value.
Example JSON definition of step Current Time in version v1
{
    "name": "<your_step_name_here>",
    "type": "roboflow_core/current_time@v1",
    "timezone": "UTC"
}