datetime

Convert any moment in time between formats

Bidirectional conversion: Unix epoch ↔ ISO 8601 / RFC 3339 / RFC 2822 / human-readable. Auto-detects epoch resolution (seconds, ms, µs, ns) by magnitude. Accepts strtotime-style natural language ('next monday', '+2 weeks', 'tomorrow 3pm'). Returns the moment in 6 formats plus components in any timezone.

post/timestamp.php

Request

  • Base URL: https://mate.tools/api/v1
  • URL: https://mate.tools/api/v1/timestamp.php
  • Auth: none declared

Request body

inputstring

Date/time string or Unix epoch. Omit for current time.

timezonestring

IANA timezone name e.g. 'Europe/Madrid'.

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.