GNU bug report logs - #30102
date -d 'next tuesday, 2 years ago' # Is something like that supported?

Previous Next

Package: coreutils;

Reported by: bug-coreutils <at> trodman.com

Date: Sun, 14 Jan 2018 00:05:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: bug-coreutils <at> trodman.com
To: 30102 <at> debbugs.gnu.org
Subject: bug#30102: date -d 'next tuesday, 2 years ago' # Is something like that supported?
Date: Sat, 13 Jan 2018 18:03:53 -0600
$ date --version
date (GNU coreutils) 8.27
--snip
$ info date -n 'Date input formats' |grep 'next tue'
* Relative items in date strings:: next tuesday, 2 years ago.

My goal is to find for example the date of the first Saturday after 1/7/2018
with a single date command.

--
thanks!




This bug report was last modified 6 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.