ForHosting KIT · Developer Utilities

Add minutes to a datetime

Add minutes to a datetime when a schedule, log entry, expiration, handoff, or test fixture needs an exact shifted instant.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Supply a complete ISO datetime with either Z or a numeric timezone offset, plus a positive, negative, or zero whole-minute amount. The calculator validates the calendar and offset, converts the stated instant to UTC, performs deterministic arithmetic, and returns a canonical UTC datetime. It never reads the current time, guesses a timezone, uses network data, or depends on the machine where it runs.

Provide a complete and unambiguous starting instant

Enter the starting value as an ISO datetime containing a calendar date, a T separator, hours, minutes, seconds, and an explicit timezone designator. A value ending in Z already describes UTC. A value ending in an offset such as +02:00 or -05:30 describes local clock fields together with their exact displacement from UTC. Requiring that suffix prevents a common source of scheduling defects: a bare local time whose meaning changes according to the computer, browser, or server that parses it. The calendar portion is checked using Gregorian leap-year and month-length rules, so impossible dates are rejected instead of being silently normalized. Hours must stay within 00 through 23, while minutes and seconds must stay within 00 through 59. Optional fractional seconds may contain one to three digits and are preserved as part of the instant. The capability does not accept timezone names such as Europe/London because those require historical rule data and can introduce daylight-saving ambiguity. Use an offset that explicitly identifies the intended instant instead.

Understand how minute addition and UTC conversion work

The operation first interprets the supplied date, clock time, and numeric offset as one absolute instant. It converts that instant to UTC with calendar arithmetic, then adds the requested signed count of whole minutes. Positive numbers move forward, negative numbers move backward, and zero performs only UTC normalization. Carrying works across every boundary: an addition can enter the next hour, day, month, leap day, year, or century, while subtraction can cross the same boundaries in reverse. The result always ends in Z, making its timezone explicit and consistent for storage or comparison. Seconds and fractional seconds do not change because the offset being added is an exact multiple of one minute. The implementation does not call the JavaScript Date constructor or inspect a system clock. Instead, it counts Gregorian days, applies offset and minute arithmetic as integers, and reconstructs the UTC calendar fields. That makes the same input produce the same output in a browser, worker, automated test, or server regardless of locale and host timezone.

Use the result safely in automation and testing

This capability fits workflows that already know their starting instant and need a reproducible derived timestamp. For example, create a reminder thirty minutes after an event, calculate a fixed grace-period deadline, shift imported records from their stated offsets into UTC, or build fixtures around midnight and leap-day boundaries. The returned object includes the original trimmed datetime, the normalized integer minute amount, the shifted result, and an explicit UTC timezone label. Store or compare the result field when another system expects a canonical timestamp. Keep in mind that this is elapsed-minute arithmetic, not civil scheduling by a named region. Adding sixty minutes always adds exactly 3,600 seconds; it does not consult daylight-saving transitions or business calendars. If a human appointment must remain at the same wall-clock time after a regional offset change, resolve that region and intended offset before calling this capability. Invalid or incomplete input returns a typed invalid-input error, allowing an integration to correct the request without treating it as an infrastructure failure. API execution costs $0.002 per item, while the browser path uses the same pure calculation.

Set an exact expiry

Add a fixed grace period to a token, reservation, or upload timestamp and store the resulting UTC deadline.

Normalize offset timestamps

Shift an offset-bearing source datetime by zero minutes to obtain its equivalent canonical UTC representation.

Build boundary test fixtures

Generate deterministic cases that cross midnight, month-end, leap day, or year-end without reading the current clock.

What does an API call cost?

Each item costs $0.002. The browser version runs the same deterministic calculation locally.

Does this use the current date or time?

No. It uses only the explicit datetime and minute count supplied in the request.

Are negative minute values supported?

Yes. A negative whole number subtracts elapsed minutes, while zero only normalizes the instant to UTC.

Why must the datetime include Z or a numeric offset?

Without one, a local clock value does not identify a unique instant and could vary by host timezone.

Does it handle daylight-saving time?

It honors the explicit numeric offset in the input but does not infer regional daylight-saving rules from timezone names.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/date/add-minutes

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/date/add-minutes \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"datetime":"2026-07-25T23:45:30Z","minutes":30}'
{
  "datetime": "2026-07-25T23:45:30Z",
  "minutes": 30
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "date.add_minutes",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →