[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to calculate date relative to another date?
From: |
Peng Yu |
Subject: |
Re: How to calculate date relative to another date? |
Date: |
Tue, 21 May 2019 20:02:11 -0500 |
> Seems to work fine when date specification is not quite as ambiguous
> as "2018/05".
>
> $ date --iso --date='2018-05-01 5 years ago'
> 2013-05-01
What is special about --iso? If I use the following date string, I get
a future time. Why?
$ date --date='2018-05-01 4 years 11 months ago' +%Y%m
202106
--
Regards,
Peng
- How to calculate date relative to another date?, Peng Yu, 2019/05/21
- Re: How to calculate date relative to another date?, Sami Kerola, 2019/05/21
- Re: How to calculate date relative to another date?,
Peng Yu <=
- Re: How to calculate date relative to another date?, Leslie S Satenstein, 2019/05/21
- Re: How to calculate date relative to another date?, Steeve McCauley, 2019/05/22
- Re: How to calculate date relative to another date?, Michael Stone, 2019/05/22
- Re: How to calculate date relative to another date?, Bernhard Voelker, 2019/05/23
- Re: How to calculate date relative to another date?, Egmont Koblinger, 2019/05/23
Re: How to calculate date relative to another date?, Egmont Koblinger, 2019/05/23