19 lines
259 B
Markdown
19 lines
259 B
Markdown
|
+++
|
||
|
date = "2017-09-12"
|
||
|
tags = ["mac"]
|
||
|
title = "unix-command-date"
|
||
|
slug = "mac"
|
||
|
+++
|
||
|
|
||
|
なんかmacの`date`で以下が使えなくなった。
|
||
|
|
||
|
```bash
|
||
|
$ which date
|
||
|
/bin/date
|
||
|
$ date +"%Y-%m-%d" -d "1 day"
|
||
|
|
||
|
# 代わり
|
||
|
$ env TZ=JST-33 date +"%Y-%m-%d"
|
||
|
```
|
||
|
|