Created
May 2, 2016 03:50
-
-
Save YumaInaura/dc87f7a942bb913334e432510a110759 to your computer and use it in GitHub Desktop.
Mac | コンソールで date --date '1 day ago' が使えない ref: http://qiita.com/Yinaura/items/7a95a47edd80bd4e1098
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install coreutils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gdate --date '1 day ago' | |
Sun May 1 12:44:19 JST 2016 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ date -d '1 day ago' [master] | |
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... | |
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment