mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 11:54:02 +01:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
571 B
571 B
title | layout | version |
---|---|---|
date to-timezone | command | 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
> date now | date to-timezone +0500
Get the current local date
> date now | date to-timezone local
Get the current date in Hawaii
> date now | date to-timezone US/Hawaii
Get the current date in Hawaii
> "2020-10-10 10:00:00 +02:00" | date to-timezone "+0500"