Skip to main content
Glama

MCP Time Server Node

by pshempel

calculate_business_hours

Calculate business hours between two timestamps, accounting for specified business hours, timezone, holidays, and weekends. Ideal for precise workday duration tracking.

Instructions

Calculate business hours between two times

Input Schema

NameRequiredDescriptionDefault
business_hoursNoBusiness hours definition (default: 9 AM - 5 PM)
end_timeYesEnd time
holidaysNoArray of holiday dates
include_weekendsNoInclude weekends in calculation (default: false)
start_timeYesStart time
timezoneNoTimezone for calculation (default: system timezone)

Input Schema (JSON Schema)

{ "properties": { "business_hours": { "description": "Business hours definition (default: 9 AM - 5 PM)", "type": "object" }, "end_time": { "description": "End time", "type": "string" }, "holidays": { "description": "Array of holiday dates", "items": { "type": "string" }, "type": "array" }, "include_weekends": { "description": "Include weekends in calculation (default: false)", "type": "boolean" }, "start_time": { "description": "Start time", "type": "string" }, "timezone": { "description": "Timezone for calculation (default: system timezone)", "type": "string" } }, "required": [ "start_time", "end_time" ], "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