Install
openclaw skills install date-and-time-calculatorDate and Time Calculator: Date/time calculations: add/subtract days, business days, time until/since, timezone conversion, week. Use when an agent needs date and time calculator, date calculator and timestamp tool set, 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, add days, date through AgentPMT-hosted remote tool calls.
openclaw skills install date-and-time-calculatorLast updated: 2026-06-10.
If the current date is more than 7 days after the last updated date, reinstall this skill from skills.sh or ClawHub before relying on endpoints, schemas, setup steps, or examples.
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.
Comprehensive date/time calculations, timezone conversions, and duration tools.
Calculate time remaining until a future date.
target_date (string) - Target date in ISO or parseable format{"action": "time-until", "target_date": "2026-12-31T23:59:59"}Calculate time elapsed since a past date.
past_date (string) - Past date in ISO or parseable format{"action": "time-since", "past_date": "2024-01-01"}Add a number of days to a date.
date (string) - Starting date; days (integer) - Number of days to add{"action": "add-days", "date": "2026-03-10", "days": 30}Subtract a number of days from a date.
date (string) - Starting date; days (integer) - Number of days to subtract{"action": "subtract-days", "date": "2026-03-10", "days": 14}Add hours to a datetime.
date (string) - Starting datetime; hours (number) - Hours to add{"action": "add-hours", "date": "2026-03-10T09:00:00", "hours": 5.5}Subtract hours from a datetime.
date (string) - Starting datetime; hours (number) - Hours to subtract{"action": "subtract-hours", "date": "2026-03-10T17:00:00", "hours": 3}Add minutes to a datetime.
date (string) - Starting datetime; minutes (number) - Minutes to add{"action": "add-minutes", "date": "2026-03-10T09:00:00", "minutes": 45}Subtract minutes from a datetime.
date (string) - Starting datetime; minutes (number) - Minutes to subtract{"action": "subtract-minutes", "date": "2026-03-10T10:30:00", "minutes": 15}Calculate the number of calendar days between two dates.
start_date (string) - Start date; end_date (string) - End date{"action": "days-between", "start_date": "2026-01-01", "end_date": "2026-12-31"}Calculate the number of business days (weekdays only, Mon-Fri) between two dates.
start_date (string) - Start date; end_date (string) - End date{"action": "business-days-between", "start_date": "2026-03-01", "end_date": "2026-03-31"}Convert a datetime from one timezone to another.
date_string (string) - Datetime to convert; from_timezone (string) - Source timezone; to_timezone (string) - Target timezone{"action": "convert-timezone", "date_string": "2026-03-10 09:00:00", "from_timezone": "America/New_York", "to_timezone": "Europe/London"}Get the current UTC offset for a timezone.
timezone (string) - Timezone name (e.g., "America/New_York", "Europe/London", "Asia/Tokyo"){"action": "timezone-offset", "timezone": "America/Los_Angeles"}Format a number of seconds into human-readable text (e.g., "2 days, 3 hours, 15 minutes").
seconds (number) - Duration in seconds{"action": "format-duration", "seconds": 90061}Parse a human-readable duration string into total seconds. Supports units: s/sec/seconds, m/min/minutes, h/hr/hours, d/day/days.
duration_str (string) - Duration text to parse{"action": "parse-duration", "duration_str": "2h 30m 15s"}Get the ISO week number (1-53) for a date.
date (string) - Date to check{"action": "week-number", "date": "2026-03-10"}Get the fiscal quarter (1-4) for a date.
date (string) - Date to check{"action": "quarter", "date": "2026-08-15"}Check whether a given year is a leap year.
year (integer) - Year to check (minimum: 1){"action": "is-leap-year", "year": 2028}Check whether two time periods overlap (useful for scheduling across time zones).
start1 (string) - Start of first period (HH:MM); end1 (string) - End of first period (HH:MM); start2 (string) - Start of second period (HH:MM); end2 (string) - End of second period (HH:MM){"action": "working-hours-overlap", "start1": "09:00", "end1": "17:00", "start2": "14:00", "end2": "22:00"}Convert a Unix timestamp to ISO 8601 format.
timestamp (number) - Unix timestamp in seconds{"action": "unix-to-iso", "timestamp": 1773331200}Convert a Unix timestamp to a formatted date string, optionally in a specific timezone.
timestamp (number) - Unix timestamp in secondstimezone (string) - Timezone name (defaults to local time){"action": "unix-to-date", "timestamp": 1773331200, "timezone": "America/Chicago"}Convert a date string to a Unix timestamp.
date_string (string) - Date string to convertformat (string) - Date format pattern (default: "%Y-%m-%d %H:%M:%S"){"action": "date-to-unix", "date_string": "2026-03-10 12:00:00"}Convert seconds to a compact human-readable format (e.g., "1d 2h 30m 15s").
seconds (number) - Number of seconds{"action": "seconds-to-human", "seconds": 95415}Project deadline countdown: Use time-until with the deadline date to show remaining time, then business-days-between to count working days left.
Meeting scheduling across time zones: Use convert-timezone to align meeting times, then working-hours-overlap to confirm both parties are within work hours.
Date arithmetic for invoicing: Use add-days to compute due dates (e.g., Net 30), or subtract-days to find a billing period start.
Log timestamp conversion: Use unix-to-iso or unix-to-date to convert raw timestamps into readable dates, or date-to-unix to convert back.
business-days-between counts weekdays only (Monday through Friday) and does not account for public holidays.format-duration produces verbose output ("2 days, 3 hours") while seconds-to-human produces compact output ("2d 3h").parse-duration supports flexible input: "2h 30m", "5 days 3 hours", "90s", etc.Date and Time Calculator on AgentPMT.add-days, add-hours, add-minutes, business-days-between, convert-timezone, date-to-unix, days-between, format-duration, is-leap-year, parse-duration, quarter, seconds-to-human, subtract-days, subtract-hours, subtract-minutes, time-since, time-until, timezone-offset, unix-to-date, unix-to-iso, week-number, working-hours-overlap.No categories or industry tags are published for this tool.
Complete generated action schema: ./schema.md.
Supported action count: 22.
x402 availability: not enabled for this product.
add-days (action slug: add-days): Add a number of days to a date. Returns the resulting date in ISO format. Price: 5 credits. Parameters: date, days.add-hours (action slug: add-hours): Add hours to a datetime. Returns the resulting datetime in ISO format. Price: 5 credits. Parameters: date, hours.add-minutes (action slug: add-minutes): Add minutes to a datetime. Returns the resulting datetime in ISO format. Price: 5 credits. Parameters: date, minutes.business-days-between (action slug: business-days-between): Calculate the number of business days (weekdays only, Mon-Fri) between two dates. Does not account for public holidays. Price: 5 credits. Parameters: end_date, start_date.convert-timezone (action slug: convert-timezone): Convert a datetime from one timezone to another. Uses IANA timezone names. Price: 5 credits. Parameters: date_string, from_timezone, to_timezone.date-to-unix (action slug: date-to-unix): Convert a date string to a Unix timestamp. Price: 5 credits. Parameters: date_format, date_string.days-between (action slug: days-between): Calculate the number of calendar days between two dates. Price: 5 credits. Parameters: end_date, start_date.format-duration (action slug: format-duration): Format a number of seconds into human-readable text (e.g., '2 days, 3 hours, 15 minutes'). Price: 5 credits. Parameters: seconds.is-leap-year (action slug: is-leap-year): Check whether a given year is a leap year. Price: 5 credits. Parameters: year.parse-duration (action slug: parse-duration): Parse a human-readable duration string into total seconds. Supports s/sec/seconds, m/min/minutes, h/hr/hours, d/day/days. Price: 5 credits. Parameters: duration_str.quarter (action slug: quarter): Get the fiscal quarter (1-4) for a date. Price: 5 credits. Parameters: date.seconds-to-human (action slug: seconds-to-human): Convert seconds to compact human-readable format (e.g., '1d 2h 30m 15s'). Price: 5 credits. Parameters: seconds.subtract-days (action slug: subtract-days): Subtract a number of days from a date. Returns the resulting date in ISO format. Price: 5 credits. Parameters: date, days.subtract-hours (action slug: subtract-hours): Subtract hours from a datetime. Returns the resulting datetime in ISO format. Price: 5 credits. Parameters: date, hours.subtract-minutes (action slug: subtract-minutes): Subtract minutes from a datetime. Returns the resulting datetime in ISO format. Price: 5 credits. Parameters: date, minutes.time-since (action slug: time-since): Calculate time elapsed since a past date. Returns days, hours, minutes, seconds. Price: 5 credits. Parameters: past_date.time-until (action slug: time-until): Calculate time remaining until a future date. Returns days, hours, minutes, seconds. Price: 5 credits. Parameters: target_date.timezone-offset (action slug: timezone-offset): Get the current UTC offset for a timezone. Price: 5 credits. Parameters: timezone.unix-to-date (action slug: unix-to-date): Convert a Unix timestamp to a formatted date string, optionally in a specific timezone. Price: 5 credits. Parameters: timestamp, timezone.unix-to-iso (action slug: unix-to-iso): Convert a Unix timestamp to ISO 8601 format. Price: 5 credits. Parameters: timestamp.week-number (action slug: week-number): Get the ISO week number (1-53) for a date. Price: 5 credits. Parameters: date.working-hours-overlap (action slug: working-hours-overlap): Check whether two time periods overlap. Useful for scheduling across time zones. Price: 5 credits. Parameters: end1, end2, start1, start2.Use the compact schema above for ordinary calls. Before a new production integration, or whenever parameters, enum values, nested objects, outputs, or examples are unclear, fetch live details first.
agentpmt-tool-search-and-execution with action: "get_schema", and tool_id: "date-calculator-and-timestamp-tool-set".agentpmt-tool-search-and-execution with action: "get_instructions" and tool_id: "date-calculator-and-timestamp-tool-set", or call this product with action: "get_instructions" when the product tool is already selected.MCP schema lookup through the main AgentPMT MCP server:
{
"method": "tools/call",
"params": {
"name": "AgentPMT-Tool-Search-and-Execution",
"arguments": {
"action": "get_schema",
"tool_id": "date-calculator-and-timestamp-tool-set"
}
}
}
For live examples, keep the same MCP tool and use these arguments:
{
"action": "get_instructions",
"tool_id": "date-calculator-and-timestamp-tool-set"
}
Authenticated AgentPMT REST schema lookup body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_schema",
"tool_id": "date-calculator-and-timestamp-tool-set"
}
}
Authenticated AgentPMT REST live examples body:
{
"name": "agentpmt-tool-search-and-execution",
"parameters": {
"action": "get_instructions",
"tool_id": "date-calculator-and-timestamp-tool-set"
}
}
Product slug: date-calculator-and-timestamp-tool-set
Marketplace page: https://www.agentpmt.com/marketplace/date-calculator-and-timestamp-tool-set
../agentpmt-account-mcp-rest-api-setup to connect the main MCP server or REST API for an Agent Group where this tool is enabled.../what-is-agentpmt for marketplace, Agent Group, workflow, MCP, REST, and payment concepts.If those setup skills are not installed beside this product skill, use the downloads below.
Core AgentPMT setup skills:
openclaw skills install what-is-agentpmtnpx skills add AgentPMT/agent-skills --skill what-is-agentpmtopenclaw skills install agentpmt-account-mcp-rest-api-setupnpx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setupskills.sh install script:
npx skills add AgentPMT/agent-skills --skill what-is-agentpmt
npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup
MCP call shape after the main AgentPMT MCP server is connected:
{
"method": "tools/call",
"params": {
"name": "Date-and-Time-Calculator",
"arguments": {
"action": "add-days",
"date": "example date",
"days": 1
}
}
}
Use the exact tool name returned by tools/list; the name above is the expected readable form.
Authenticated AgentPMT REST call body:
{
"name": "date-calculator-and-timestamp-tool-set",
"parameters": {
"action": "add-days",
"date": "example date",
"days": 1
}
}
Use the setup skill for the account connection details before making REST calls.
passed or success-style boolean, use it as the workflow gate.get_schema or get_instructions before retrying.add-days fails, preserve the request parameters and retry only after fixing schema, auth, or payment errors.what-is-agentpmt, page: https://clawhub.ai/agentpmt/what-is-agentpmt; skills.sh: npx skills add AgentPMT/agent-skills --skill what-is-agentpmt)agentpmt-account-mcp-rest-api-setup, page: https://clawhub.ai/agentpmt/agentpmt-account-mcp-rest-api-setup; skills.sh: npx skills add AgentPMT/agent-skills --skill agentpmt-account-mcp-rest-api-setup)