nushell/crates/nu-command/src/conversions/into
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
..
binary.rs Make PipelineData helpers collect rawstreams (#969) 2022-02-07 07:44:18 -05:00
bool.rs feat(into): add into-bool command (#499) 2021-12-20 07:11:28 +11:00
command.rs Highlight help tutor (#838) 2022-01-25 02:05:19 +11:00
datetime.rs Date format list (#4485) 2022-02-15 15:13:40 -06:00
decimal.rs Remove Span::unknown (#525) 2021-12-19 18:46:13 +11:00
filesize.rs fix into filesize tests and filesize (#932) 2022-02-04 13:26:08 -06:00
int.rs Remove Span::unknown (#525) 2021-12-19 18:46:13 +11:00
mod.rs feat(into): add into-bool command (#499) 2021-12-20 07:11:28 +11:00
string.rs Make PipelineData helpers collect rawstreams (#969) 2022-02-07 07:44:18 -05:00