nushell/crates/nu-command/src/conversions
Jonathan Moore f824388f63
Date format list (#4485)
* Add `date format --list`, and make format string optional (providing default)

* Make DRY

`into datetime --list` now uses `generate_strfttime_list` from `date format --list`

* refactor strftime to use current datetime

* Fix formatting of specification descriptions

Fixes issues caused when copying directly from docs.rs

* Change default format to rfc2822

Perhaps to make it more DRY, functions from `into datetime` can be used. However, currently `into datetime` is a bit tricky to use as it needs a separate time zone argument.

* Tweak in-shell docs to match modified behavior

* Show %#z format specifier in `into datetime --list` only

* cargo fmt

* Satisfy clippy
2022-02-15 15:13:40 -06:00
..
into Date format list (#4485) 2022-02-15 15:13:40 -06:00
fmt.rs new command fmt to format numbers (#707) 2022-01-09 19:19:41 -06:00
mod.rs new command fmt to format numbers (#707) 2022-01-09 19:19:41 -06:00