Expand description
Provides formatting helpers for durations and byte sizes.
Functions§
- format_
bytes - Formats a given size in bytes.
- format_
duration - Formats a duration into a string like “5d 3h 17m 2s 12ms”.
- format_
micros - Formats a duration given in microseconds.
- format_
short_ duration - Formats a duration given in microseconds and returns a String representation.
- format_
size - Formats a given size in bytes.
- parse_
duration - Parses a duration from a given string.
- parse_
size - Parses a file size from a given string.