Konverter Unix Timestamp
Ubah Unix timestamp jadi tanggal terbaca dan sebaliknya, dalam UTC.
POST /api/v1/timestamp- Versi API
- v1
- Skema output
- 2
Path endpoint selalu /v1. Angka skema di bawah menandai bentuk output tool ini dan berubah terpisah.
Bikin akun gratis →Parameter
| Parameter | Tipe | Wajib | Default |
|---|---|---|---|
| input | text | ya | — |
| unit | auto | seconds | milliseconds | tidak | auto |
Request
curl -X POST https://sinikoding.dev/api/v1/timestamp \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"input":"…","unit":"auto"}'
Mengembalikan
"output": { "kind": "table", "columns": ["…"], "rows": [["…"]] }
Memanggil endpoint sandbox same-origin, bukan /api/v1. Tanpa key, dibatasi 15 request per menit.
Request
curl -X POST https://sinikoding.dev/api/v1/timestamp \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"input":"","unit":"auto"}'
Response
Kirim request untuk melihat response-nya.