forked from extern/nushell
f91713b714
# Description Add `format duration` cmd to choose output unit. This takes the previous `into duration --convert ...` behavior which returned a string into its own `format duration` command. This was suprising and not fitting with the general type signature for the `into ...` commands. This command for now lives in the `nu-cmd-extra` nursery. # User-Facing Changes ## Breaking change Removes formatting behavior from `into duration` Now use `format duration` instead of `into duration --convert` ## Usage: ``` 1sec | format duration us # Output data in microseconds "2ms" | into duration | format duration sec # go from string to string ``` # Tests + Formatting Basic example testing (including basic broadcast) |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
LICENSE |