EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Convert an integer in nanoseconds (-3,000,000,000) to a duration string ("-5m") while preserving the sign. This function converts to whole milliseconds, seconds, minutes, hours or days. This means it will round down to the nearest whole number time unit.
Name | Type | Description |
---|---|---|
duration | int64 | The duration in nanoseconds. |