# Timestamp Converter (`convert.timestamp`)

Convert a date between ISO 8601, Unix seconds and milliseconds, and show it in any IANA time zone with weekday, ISO week and UTC offset.

- **Route:** `POST /v1/run/convert.timestamp`
- **Price:** $0.0002 per request ($0.20 per 1,000) · `cost_usd` on every response
- **Source:** GetAllAPIs compute (`compute`) · failover: no
- **Measured latency:** p50 33 ms · p95 33 ms · p99 33 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `value` | string | no | "now" | ISO 8601 date, Unix timestamp (s or ms) or 'now' |
| `timezone` | string | no | "UTC" | IANA time zone for the local view |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `iso_utc` | ISO 8601 in UTC. |
| `unix` | Unix seconds. |
| `unix_ms` | Unix milliseconds. |
| `local` | Date and time in the requested zone with its offset. |
| `utc_offset` | Offset of that zone at this instant (daylight saving applied). |
| `weekday` | Weekday in that zone. |
| `iso_week` | ISO week number (UTC). |
| `day_of_year` | Day of the year (UTC). |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/convert.timestamp \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":"2026-03-29T01:30:00Z","timezone":"Europe/Paris"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('convert.timestamp', {'value': '2026-03-29T01:30:00Z', 'timezone': 'Europe/Paris'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run convert.timestamp '{"value":"2026-03-29T01:30:00Z","timezone":"Europe/Paris"}'
```

Quote first (free, validates input): `POST /v1/quote/convert.timestamp` with the same body.
