1
0
hugo/content/blog/2017-09-12-mac.md

19 lines
256 B
Markdown
Raw Normal View History

2024-04-23 13:21:26 +00:00
+++
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"
# 代わり
2024-04-23 13:28:33 +00:00
$ env TZ=-33 date +"%Y-%m-%d"
2024-04-23 13:21:26 +00:00
```