nushell/crates/nu-command
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
..
assets Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
src Date format list (#4485) 2022-02-15 15:13:40 -06:00
tests Fix more command tests (#4481) 2022-02-15 10:08:07 -05:00
build.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
Cargo.toml Re-port filesystem commands (#4387) 2022-02-09 09:56:27 -05:00