Skip to main content
Glama

calculate_time

Add or subtract time from dates using Gregorian, lunar, or festival-based calculations to determine future or past dates with timezone support.

Instructions

Add or subtract time from a date. Supports Gregorian mode, Lunar mode, and anchor mode (calculate relative to a named festival).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoCalculation mode. Defaults to 'gregorian'.
base_dateNoBase date in ISO format (YYYY-MM-DD or full ISO 8601). Required for gregorian/lunar modes.
timezoneNoIANA timezone for the base date. Defaults to UTC.
yearsNoYears to add (negative to subtract)
monthsNoMonths to add (negative to subtract)
daysNoDays to add (negative to subtract)
hoursNoHours to add (negative to subtract)
minutesNoMinutes to add (negative to subtract)
festivalNoFestival name for anchor mode (e.g. '春节', 'Christmas', 'Thanksgiving')
festival_yearNoYear to resolve festival date for anchor mode

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aleck31/mcp-chrono'

If you have feedback or need assistance with the MCP directory API, please join our Discord server