

Date and Time Calculator
Core Utility
Available ActionsEach successful request consumes credits as outlined below.
time-until5crtime-since5cradd-days5crsubtract-days5cradd-hours5crsubtract-hours5cradd-minutes5crsubtract-minutes5crdays-between5crbusiness-days-between5crconvert-timezone5crtimezone-offset5crformat-duration5crparse-duration5crweek-number5crquarter5cris-leap-year5crworking-hours-overlap5crunix-to-iso5crunix-to-date5crdate-to-unix5crseconds-to-human5cr
Details
Time Tools is a date and time utility providing 18 operations across two categories: time calculations and format conversions. Time calculation operations handle date arithmetic and temporal analysis. These include calculating time remaining until a future date, calculating time elapsed since a past date, adding or subtracting days from a date, counting total days between two dates, counting business days (weekdays only) between two dates, converting datetimes between timezones, retrieving UTC offset for any timezone, formatting duration in seconds to human-readable text, parsing human-readable duration strings (such as "2h 30m") into seconds, getting ISO week number for a date, determining fiscal quarter (1–4), checking leap year status, checking if two time periods overlap, and converting Unix timestamps to ISO format. Conversion operations handle format transformations between Unix timestamps, formatted date strings, and human-readable durations. Unix timestamps can be converted to formatted dates with optional timezone specification, date strings can be converted to Unix timestamps using configurable format patterns, and raw seconds can be converted to compact human-readable format (such as "1d 2h 30m 15s"). Date parsing is flexible and accepts multiple input formats. All timezone operations use the pytz library and support standard timezone names.
Use Cases
Building countdown timers for events or deadlines, calculating project durations in business days excluding weekends, scheduling meetings across multiple timezones, converting API timestamps to human-readable formats, parsing user-entered durations like "2 hours 30 minutes" into seconds, determining fiscal quarters for financial reporting, validating date ranges for booking systems, checking working hours overlap between distributed teams, generating relative timestamps for activity feeds, calculating age or tenure from start dates, converting between Unix epoch and display formats for logs, determining week numbers for sprint planning, building time-tracking applications, validating leap years for date calculations, formatting elapsed time for dashboards and reports.
Actions(22)
time-until5cr1 param(1 required)Calculate time remaining until a future date. Returns days, hours, minutes, seconds.
time-until5cr1 param(1 required)Calculate time remaining until a future date. Returns days, hours, minutes, seconds.
target_daterequiredstringTarget date in ISO format or any parseable format (e.g., '2026-12-31T23:59:59', 'December 31, 2026').
time-since5cr1 param(1 required)Calculate time elapsed since a past date. Returns days, hours, minutes, seconds.
time-since5cr1 param(1 required)Calculate time elapsed since a past date. Returns days, hours, minutes, seconds.
past_daterequiredstringPast date in ISO format or any parseable format.
add-days5cr2 params(2 required)Add a number of days to a date. Returns the resulting date in ISO format.
add-days5cr2 params(2 required)Add a number of days to a date. Returns the resulting date in ISO format.
daterequiredstringStarting date in ISO or parseable format.
daysrequiredintegerNumber of days to add.
subtract-days5cr2 params(2 required)Subtract a number of days from a date. Returns the resulting date in ISO format.
subtract-days5cr2 params(2 required)Subtract a number of days from a date. Returns the resulting date in ISO format.
daterequiredstringStarting date in ISO or parseable format.
daysrequiredintegerNumber of days to subtract.
add-hours5cr2 params(2 required)Add hours to a datetime. Returns the resulting datetime in ISO format.
add-hours5cr2 params(2 required)Add hours to a datetime. Returns the resulting datetime in ISO format.
daterequiredstringStarting datetime in ISO or parseable format.
hoursrequirednumberNumber of hours to add (supports decimals, e.g., 5.5).
subtract-hours5cr2 params(2 required)Subtract hours from a datetime. Returns the resulting datetime in ISO format.
subtract-hours5cr2 params(2 required)Subtract hours from a datetime. Returns the resulting datetime in ISO format.
daterequiredstringStarting datetime in ISO or parseable format.
hoursrequirednumberNumber of hours to subtract.
add-minutes5cr2 params(2 required)Add minutes to a datetime. Returns the resulting datetime in ISO format.
add-minutes5cr2 params(2 required)Add minutes to a datetime. Returns the resulting datetime in ISO format.
daterequiredstringStarting datetime in ISO or parseable format.
minutesrequirednumberNumber of minutes to add.
subtract-minutes5cr2 params(2 required)Subtract minutes from a datetime. Returns the resulting datetime in ISO format.
subtract-minutes5cr2 params(2 required)Subtract minutes from a datetime. Returns the resulting datetime in ISO format.
daterequiredstringStarting datetime in ISO or parseable format.
minutesrequirednumberNumber of minutes to subtract.
days-between5cr2 params(2 required)Calculate the number of calendar days between two dates.
days-between5cr2 params(2 required)Calculate the number of calendar days between two dates.
start_daterequiredstringStart date in ISO or parseable format.
end_daterequiredstringEnd date in ISO or parseable format.
business-days-between5cr2 params(2 required)Calculate the number of business days (weekdays only, Mon-Fri) between two dates. Does not account for public holidays.
business-days-between5cr2 params(2 required)Calculate the number of business days (weekdays only, Mon-Fri) between two dates. Does not account for public holidays.
start_daterequiredstringStart date in ISO or parseable format.
end_daterequiredstringEnd date in ISO or parseable format.
convert-timezone5cr3 params(3 required)Convert a datetime from one timezone to another. Uses IANA timezone names.
convert-timezone5cr3 params(3 required)Convert a datetime from one timezone to another. Uses IANA timezone names.
date_stringrequiredstringDatetime string to convert.
from_timezonerequiredstringSource timezone (e.g., 'America/New_York').
to_timezonerequiredstringTarget timezone (e.g., 'Europe/London').
timezone-offset5cr1 param(1 required)Get the current UTC offset for a timezone.
timezone-offset5cr1 param(1 required)Get the current UTC offset for a timezone.
timezonerequiredstringTimezone name (e.g., 'America/New_York', 'UTC', 'Europe/London').
format-duration5cr1 param(1 required)Format a number of seconds into human-readable text (e.g., '2 days, 3 hours, 15 minutes').
format-duration5cr1 param(1 required)Format a number of seconds into human-readable text (e.g., '2 days, 3 hours, 15 minutes').
secondsrequirednumberDuration in seconds to format.
parse-duration5cr1 param(1 required)Parse a human-readable duration string into total seconds. Supports s/sec/seconds, m/min/minutes, h/hr/hours, d/day/days.
parse-duration5cr1 param(1 required)Parse a human-readable duration string into total seconds. Supports s/sec/seconds, m/min/minutes, h/hr/hours, d/day/days.
duration_strrequiredstringDuration text to parse (e.g., '2h 30m 15s', '5 days 3 hours').
week-number5cr1 param(1 required)Get the ISO week number (1-53) for a date.
week-number5cr1 param(1 required)Get the ISO week number (1-53) for a date.
daterequiredstringDate to check in ISO or parseable format.
quarter5cr1 param(1 required)Get the fiscal quarter (1-4) for a date.
quarter5cr1 param(1 required)Get the fiscal quarter (1-4) for a date.
daterequiredstringDate to check in ISO or parseable format.
is-leap-year5cr1 param(1 required)Check whether a given year is a leap year.
is-leap-year5cr1 param(1 required)Check whether a given year is a leap year.
yearrequiredintegerYear to check.
Range: 1 - ...
working-hours-overlap5cr4 params(4 required)Check whether two time periods overlap. Useful for scheduling across time zones.
working-hours-overlap5cr4 params(4 required)Check whether two time periods overlap. Useful for scheduling across time zones.
start1requiredstringStart time of first period in HH:MM format (e.g., '09:00').
end1requiredstringEnd time of first period in HH:MM format (e.g., '17:00').
start2requiredstringStart time of second period in HH:MM format (e.g., '14:00').
end2requiredstringEnd time of second period in HH:MM format (e.g., '22:00').
unix-to-iso5cr1 param(1 required)Convert a Unix timestamp to ISO 8601 format.
unix-to-iso5cr1 param(1 required)Convert a Unix timestamp to ISO 8601 format.
timestamprequirednumberUnix timestamp in seconds since epoch.
unix-to-date5cr2 params(1 required)Convert a Unix timestamp to a formatted date string, optionally in a specific timezone.
unix-to-date5cr2 params(1 required)Convert a Unix timestamp to a formatted date string, optionally in a specific timezone.
timestamprequirednumberUnix timestamp in seconds since epoch.
timezonestringTimezone name (defaults to local time). Example: 'America/Chicago'.
date-to-unix5cr2 params(1 required)Convert a date string to a Unix timestamp.
date-to-unix5cr2 params(1 required)Convert a date string to a Unix timestamp.
date_stringrequiredstringDate string to convert.
date_formatstringPython strftime format string for parsing (default: '%Y-%m-%d %H:%M:%S'). If omitted, common formats are tried automatically.
Default:
%Y-%m-%d %H:%M:%Sseconds-to-human5cr1 param(1 required)Convert seconds to compact human-readable format (e.g., '1d 2h 30m 15s').
seconds-to-human5cr1 param(1 required)Convert seconds to compact human-readable format (e.g., '1d 2h 30m 15s').
secondsrequirednumberNumber of seconds to convert.
Frequently Asked Questions
How do I connect this tool to an external agent?
You can install the local MCP server by opening a terminal and running:
Install commands
npm install -g @agentpmt/mcp-router
agentpmt-setupThis will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.
Alternatively you can connect to the hosted version with this config block, no installation required:
Hosted MCP config
{
"mcpServers": {
"agentpmt": {
"type": "streamable-http",
"url": "https://api.agentpmt.com/mcp",
"headers": {
"Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
"x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
}
}
}
}View MCP Connection Instructions for more details.
How does an external agent use this tool?
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
Agent prompt
Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 69489f4eb54506f955d789ea ("Date and Time Calculator"). Then call the same tool with action 'call_tool', tool_id 69489f4eb54506f955d789ea, and the parameters needed for my request.
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.














