Class: Legate::Tools::CurrentTime

Inherits:
Legate::Tool show all
Defined in:
lib/legate/tools/current_time_tool.rb

Overview

Returns the current date and time.

Language models don’t know the current time, so this is a common building block for scheduling, “how long ago”, and freshness checks. Returns UTC by default; accepts “UTC”, “local”, or a fixed UTC offset (e.g. “+09:00”). Named IANA zones (e.g. “America/New_York”) are intentionally not supported to avoid a timezone-database dependency and process-global TZ mutation.

Constant Summary collapse

OFFSET_PATTERN =
/\A[+-]\d{2}:?\d{2}\z/

Instance Attribute Summary

Attributes inherited from Legate::Tool

#description, #name, #parameters

Method Summary

Methods inherited from Legate::Tool

define_metadata, #execute, inherited, #initialize, #validate_and_coerce_params, #validate_params

Methods included from Legate::Tool::MetadataDsl

included

Constructor Details

This class inherits a constructor from Legate::Tool