LoginSignup
0
0

More than 5 years have passed since last update.

GNU coreutils > date > 指定の日付の前日を表示する > $ date --date="20161020 1 day ago"

Last updated at Posted at 2017-01-17
動作環境
Xeon E5-2620 v4 (8コア) x 2
32GB RAM
CentOS 6.8 (64bit)
openmpi-1.8.x86_64 とその-devel
mpich.x86_64 3.1-5.el6とその-devel
gcc version 4.4.7 (とgfortran)
NCAR Command Language Version 6.3.0
WRF v3.7.1を使用。
date (GNU coreutils) 8.4

参考 http://qiita.com/iruseira/items/5514a8c5bef41e7e6aca
参考 https://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html

上のページを読んでいて、ダメ元で以下のコマンドを打ってみた。

$ date --date="20161020 1 day ago"                                                          
Wed Oct 19 00:00:00 JST 2016

以下でもできた。

$date --date="20161020 - 1 day"
$date --date="20161020 - 1 days"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0