Skip to main content
Glama

time_diff

Calculate time differences between two dates in various units. Specify start and optional end times to get results in seconds, minutes, hours, days, or weeks.

Instructions

Calculate time difference between two dates. Defaults to now if end omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startYesStart time
endNoEnd time (default: now)
unitNoOutput unit

Other Tools

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/ShunsukeHayashi/miyabi-mcp-bundle'

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