mirror of
https://github.com/nushell/nushell.git
synced 2025-08-13 22:38:25 +02:00
Auto-generate markdown command docs (#4451)
* Finish updating * a couple improvements * Update renames * cleanup examples
This commit is contained in:
38
docs/commands/date_to-timezone.md
Normal file
38
docs/commands/date_to-timezone.md
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
title: date to-timezone
|
||||
layout: command
|
||||
version: 0.59.0
|
||||
---
|
||||
|
||||
Convert a date to a given time zone.
|
||||
|
||||
## Signature
|
||||
|
||||
```> date to-timezone (time zone)```
|
||||
|
||||
## Parameters
|
||||
|
||||
- `time zone`: time zone description
|
||||
|
||||
## Examples
|
||||
|
||||
Get the current date in UTC+05:00
|
||||
```shell
|
||||
> date now | date to-timezone +0500
|
||||
```
|
||||
|
||||
Get the current local date
|
||||
```shell
|
||||
> date now | date to-timezone local
|
||||
```
|
||||
|
||||
Get the current date in Hawaii
|
||||
```shell
|
||||
> date now | date to-timezone US/Hawaii
|
||||
```
|
||||
|
||||
Get the current date in Hawaii
|
||||
```shell
|
||||
> "2020-10-10 10:00:00 +02:00" | date to-timezone "+0500"
|
||||
```
|
||||
|
Reference in New Issue
Block a user