# Duration converter

Convert a duration between nanoseconds, milliseconds, seconds, hours and days, and read ISO 8601 durations.

## How it works

ISO 8601 writes durations as P for period, then days, then T and hours, minutes and seconds: PT1H30M is an hour and a half.

## Questions

### Why do traces use nanoseconds?

OpenTelemetry stores span times in nanoseconds so very fast operations still have a duration.

### Are months in ISO durations supported?

Months vary in length, so this tool reads weeks, days, hours, minutes and seconds.

## Related tools

- [Log pattern tester](https://powertraces.com/tools/log-pattern-tester)
- [JSON formatter & validator](https://powertraces.com/tools/json-formatter)
- [Timestamp converter](https://powertraces.com/tools/timestamp-converter)
- [Stack trace formatter](https://powertraces.com/tools/stack-trace-formatter)

[All tools](https://powertraces.com/tools)
