Skip to main content
Glama

Time Tools MCP Server

getDurationDateTime

Calculate the duration between two timestamps in seconds, minutes, or hours. Specify start and end times, and choose the unit for precise time difference results.

Instructions

Get the difference time between two datetimes (e.g. 2025-01-01 01:01:01 and 2025-01-02 02:02:02)

Input Schema

NameRequiredDescriptionDefault
fromYes
toYes
unitNosecond

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "from": { "type": "string" }, "to": { "type": "string" }, "unit": { "default": "second", "enum": [ "second", "minute", "hour" ], "type": "string" } }, "required": [ "from", "to" ], "type": "object" }

You must be authenticated.

Other Tools from Time Tools MCP Server

Related Tools

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/t-shiratori/time-tools-mcp-server'

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