ChronoGate

v0.1.0
io.github.chronogate/chronogate Checked 2 days ago Published 1 month ago

Timezone and business-day truth for agents: now, DST-safe convert, relative dates, holidays.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

now Now in timezone

Current instant plus wall-clock time in an IANA timezone (e.g. America/Chicago). Includes offset and DST flag.

ParameterTypeDescription
tzstringIANA timezone, default UTC

convert Convert between timezones

Convert an ISO-8601 instant (or naive local with from=) between IANA zones, handling DST.

ParameterTypeDescription
iso *stringISO-8601 datetime
fromstringSource IANA zone if iso is naive
tostringTarget IANA zone (default UTC)

resolve_expression Resolve relative time expression

Resolve expressions like "next Tuesday 3pm", "tomorrow 9am", or "in 2 business days" in a timezone.

ParameterTypeDescription
expr *string
tz *stringIANA timezone
countrystringISO country for business-day exprs (default US)

is_business_day Is business day

Whether a YYYY-MM-DD date is a business day in a country (weekend + Nager.Date public holidays).

ParameterTypeDescription
date *stringYYYY-MM-DD
countrystringISO 3166-1 alpha-2, default US

add_business_days Add business days

Add N business days to a start date, skipping weekends and public holidays.

ParameterTypeDescription
days *integerNon-negative integer
start *stringYYYY-MM-DD
countrystringISO 3166-1 alpha-2, default US