Skip to main content
Glama

Plumbkit

Add or subtract time

date_add
Read-onlyIdempotent

Adds or subtracts a duration (years, months, weeks, days, hours, minutes, seconds) to a date/time. Use negative numbers to subtract. Calendar-aware: adding 1 month to Jan 31 gives Feb 28/29, and adding days keeps the same local clock time across daylight-saving changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNodays to add (negative to subtract)
hoursNohours to add (negative to subtract)
weeksNoweeks to add (negative to subtract)
yearsNoyears to add (negative to subtract)
monthsNomonths to add (negative to subtract)
minutesNominutes to add (negative to subtract)
secondsNoseconds to add (negative to subtract)
datetimeYesDate/time in ISO 8601 (e.g. "2026-03-08T14:30", "2026-03-08T14:30:00Z", "2026-03-08"), "YYYY-MM-DD HH:mm", a Unix timestamp in seconds or milliseconds, or "now".
timezoneNoTime zone the arithmetic happens in. IANA time zone name, e.g. "America/New_York", "Europe/London", "Asia/Tokyo", or "UTC". Fixed offsets like "UTC+5:30" also work. Defaults to UTC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources