それなりに使うのにいつも忘れるのでメモ。 特にMacでやるときとCent OSでやるときとで微妙に違うせいでよく混乱します。 前提 Cent OS 7で実行するときは下記。Linux系ならGNU拡張が使えるそうな。 $ date --version date (GNU coreutils) 8.22 Copyright (C) 2013 Free Software Foundation, Inc. ライセンス GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. 作