coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to calculate date relative to another date?


From: Peng Yu
Subject: How to calculate date relative to another date?
Date: Tue, 21 May 2019 12:51:54 -0500

Hi,

For example, I want to calculate 5 years less a month from May 2018,
i.e., "2018/05", the result should be "2013/06".

https://www.gnu.org/software/coreutils/manual/html_node/Examples-of-date.html

I don't think the direct calculation of this kind of relative date is
possible with coreutiles' date command. Some kind of external
arithmetic calculation must be used. Is it so?

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]