Add/subtract a duration
API · /datetime-api
DateTime API
A fast, fully-local date and time toolkit (UTC): parse any date string or unix timestamp into ISO, unix and components with the ISO week number, day-of-year and leap-year flag; format dates with custom tokens (YYYY-MM-DD, weekday and month names, and more); add or subtract month-aware durations; compute the difference between two dates in every unit plus a human-readable summary; and convert between unix timestamps and ISO. Every endpoint accepts input via the query string or the request body. Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for scheduling, billing periods, reminders, analytics and any date arithmetic. (For the current time in a specific timezone, see the oanor Time API.)
API salute
salutare- Tempo di attività
- 100.00%
- Sondaggi del server · 24 ore su 24
- Latenza media
- 77 ms
- Sondaggi del server · 24 ore su 24
- Abbonati
- 3,231
- attiva
- Chiamate totali
- 95
- ultimi 7 giorni
Prezzi
Scegli un livello: fatturazione mensile, annullamento in qualsiasi momento.
Free
Gratis
- 18,000 chiamate/mese
- 5 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 18,000 requests/month, 5 req/s
- All endpoints: parse, format, add/subtract, diff, convert
- No credit card
Basic
€4.00 /mese
- 260,000 chiamate/mese
- 15 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 260,000 requests/month, 15 req/s
- Full date-maths suite incl. ISO-week, day-of-year, leap-year
- Commercial use allowed
- Email support
Pro
€13.00 /mese
- 1,700,000 chiamate/mese
- 40 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 1,700,000 requests/month, 40 req/s
- Month-aware add/subtract and full-unit diff
- Priority email support
- Commercial use allowed
Mega
€35.00 /mese
- 9,000,000 chiamate/mese
- 120 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 9,000,000 requests/month, 120 req/s
- Highest throughput for bulk batch date processing
- Deterministic UTC compute
- Priority support
Costruito da
Correlato APIs
Altro APIs con tag sovrapposti.
Duration API
Work with ISO-8601 durations — the PnYnMnDTnHnMnS strings (P3Y6M4DT12H30M5S, PT1H30M) used across calendars, scheduling, video metadata, billing periods and APIs. Parse a duration into its components and a total in seconds and milliseconds; format a number of seconds (or individual year/month/week/day/hour/minute/second fields) back into a canonical ISO-8601 string; humanise any duration into readable text ("1 hour and 30 minutes"); and measure the exact duration between two instants (ISO timestamps or unix epochs) as both an ISO-8601 string and a precise second count. Years and months use documented calendar averages and are clearly flagged as approximate. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 5 endpoints. Distinct from date/time parsing and relative-time ("3 hours ago") formatting.
api.oanor.com/duration-api
Business Days API
Matemática de datas úteis. Conte os dias úteis entre duas datas, adicione ou subtraia um número de dias úteis de uma data (negativo retrocede) e verifique se uma determinada data é um dia útil — tudo ignorando fins de semana e quaisquer feriados que você fornecer. Configure quais dias contam como fim de semana (sábado/domingo por padrão, ou por exemplo sexta/sábado) e passe uma lista de datas de feriados personalizados para excluir. Perfeito para prazos de SLA e suporte, estimativas de entrega e lead time, períodos de folha de pagamento e faturamento, e datas de liquidação financeira. Matemática de data UTC local pura — sem chave, sem serviço de terceiros, determinística e instantânea. Ao vivo. 4 endpoints. Distinto de um kit de ferramentas de data de calendário (que conta dias corridos) e de um diretório de feriados (que lista feriados).
api.oanor.com/businessdays-api
Block Time API
Konvertieren Sie einen Zeitstempel oder ein Datum in die Blocknummer, die zu diesem Zeitpunkt auf einer von über 100 Blockchains live war, schlüssellos. On-Chain-Analysten, Indexierer und Dashboards benötigen ständig „Welcher Block war Chain X zum Zeitpunkt T“, um den historischen Zustand abzufragen, und „Welche Blöcke decken dieses Zeitfenster ab“, um einen Zeitraum zu scannen. Diese API beantwortet beides – für einen einzelnen Moment und für einen Datumsbereich (Rückgabe des Start- und Endblocks sowie der Blockanzahl und der durchschnittlichen Blockzeit). Live, nichts wird gespeichert. Die Timestamp-to-Block-Ebene für EVM- und Nicht-EVM-Chains gleichermaßen. Unterstützt durch die offene DeFiLlama Coins API.
api.oanor.com/blocktime-api
Snowflake ID API
Decode and build snowflake IDs — the 64-bit, time-sortable identifiers used by Twitter/X, Discord, Instagram and many distributed systems. Pass an ID and a platform and the service extracts the embedded creation timestamp (turn any Discord, Twitter/X or Instagram ID into the exact moment it was created) along with the machine and sequence components for that platform's epoch and bit layout. Supported platforms: twitter (X), discord, instagram, sony, and custom (supply your own epoch). The encode endpoint does the reverse: build the lower-bound snowflake for a given timestamp, so you can query "all IDs created at or after this moment" — the standard trick for time-based pagination on snowflake APIs. Everything is computed locally with exact 64-bit BigInt math and no network calls. Ideal for analytics, data forensics, API pagination and debugging distributed-ID systems. A snowflake-ID toolkit — distinct from UUID/ULID generation (uuid) and date/time math (datetime). No upstream key, no cache.
api.oanor.com/snowflake-api
Domande frequenti
Risposte rapide su prezzi, quote e integrazione.
Come ottengo una chiave API per DateTime API?
Qual è il limite di velocità di DateTime API?
Quanto costa DateTime API?
Posso cancellare l'abbonamento in qualsiasi momento?
DateTime API è conforme al GDPR?
Scegli un endpoint dall'elenco a sinistra per visualizzarne i dettagli e provarlo.
Frammenti di codice
Iscriviti per ottenere una chiave API, quindi chiama qualsiasi percorso sotto il tuo slug.
curl https://api.oanor.com/datetime-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/datetime-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/datetime-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/datetime-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Valutazioni
Accedi per votare.
Nessuna recensione ancora.
Discussione
Fai domande, condividi consigli, ricevi risposte dal provider e dagli altri sviluppatori. Pubblico — chiunque può leggere.
Accedi per scrivere o rispondere.
AccediNuova discussione
·
-
Risposta del provider
🔒 Discussione bloccata — non si può più rispondere.
-
·
- Nessuna discussione — inizia tu.
Supporto
Supporto privato 1:1 con il provider — fatturazione, integrazione, account. Solo tu e il team del provider vedete questi thread.
Accedi per aprire un ticket di supporto.
AccediApri nuovo ticket
Descrivi cosa ti serve. Il team del provider riceve un'email e risponde sulla pagina del ticket.
-
·
Urgente - Nessun ticket per questa API.