mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 02:52:37 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
26
docs/commands/date-format.md
Normal file
26
docs/commands/date-format.md
Normal file
@ -0,0 +1,26 @@
|
||||
# date format
|
||||
Format a given date using the given format string.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> date format <format> {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* `<format>` strftime format
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -t, --table: print date in a table
|
||||
|
||||
## Examples
|
||||
Format the current date
|
||||
```shell
|
||||
> date now | date format '%Y.%m.%d_%H %M %S,%z'
|
||||
```
|
||||
|
||||
Format the current date and print in a table
|
||||
```shell
|
||||
> date now | date format -t '%Y-%m-%d_%H:%M:%S %z'
|
||||
```
|
||||
|
Reference in New Issue
Block a user