Skip to content

Instantly share code, notes, and snippets.

@namgivu
Created March 10, 2020 04:46
Show Gist options
  • Save namgivu/0d456ee382bbff0e3350d2ad53cd396a to your computer and use it in GitHub Desktop.
Save namgivu/0d456ee382bbff0e3350d2ad53cd396a to your computer and use it in GitHub Desktop.
syntax ref. https://unix.stackexchange.com/a/48104/17671
```
TZ=Asia/Singapore date '+%Y%m%d_%H%M%S_%N'
```
sample
```bash
$ TZ=Asia/Singapore date
Tue Mar 10 12:43:28 +08 2020
$ TZ=Asia/Saigon date
Tue Mar 10 11:43:32 +07 2020
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment