Skip to main content
Glama

MCP Time Server Node

by pshempel

subtract_time

Calculate the difference by subtracting a specified duration (years, months, days, hours, minutes, or seconds) from a given date/time. Supports custom timezones for precise time calculations.

Instructions

Subtract duration from a date/time

Input Schema

NameRequiredDescriptionDefault
amountYesAmount to subtract
timeYesBase time
timezoneNoTimezone for calculation (default: system timezone)
unitYesUnit of time

Input Schema (JSON Schema)

{ "properties": { "amount": { "description": "Amount to subtract", "type": "number" }, "time": { "description": "Base time", "type": "string" }, "timezone": { "description": "Timezone for calculation (default: system timezone)", "type": "string" }, "unit": { "description": "Unit of time", "enum": [ "years", "months", "days", "hours", "minutes", "seconds" ], "type": "string" } }, "required": [ "time", "amount", "unit" ], "type": "object" }
Install Server

Other Tools from MCP Time Server Node

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/pshempel/mcp-time-server-node'

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