Skip to main content
Glama

date_diff

Calculate precise time differences between two dates, returning results in years, months, days, hours, and minutes with total duration values.

Instructions

Calculate the difference between two dates/times. Returns the difference in years, months, days, hours, minutes and also total days/hours/minutes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startYesStart date in ISO 8601 format (e.g. 2024-01-15 or 2024-01-15T10:30:00)
endYesEnd date in ISO 8601 format
timezoneNoIANA timezone for parsing dates. Defaults to UTC.

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