From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Beno=EEt?= Rouits Subject: Re: Special date/cal needs eg. "thrid friday of july" Date: Thu, 11 Jan 2007 18:47:54 +0100 Message-ID: <1168537674.5526.17.camel@chimay> References: <200701111624.02217.martin.klier@atu.de> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <200701111624.02217.martin.klier@atu.de> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="utf-8" To: Martin Klier Cc: linux-admin@vger.kernel.org Hi An example relative to this week: ben@chimay:~ $ date -d "tuesday + 34 weeks" [will give the next tuesday 34 weeks in the future] An example relative to now ben@chimay:~ $ date -d "now + 35 seconds - 3 days + 1 year" [will give a dummy date in year 2008, based on "now" and some + and - ] Other example ben@chimay:~ $ date -d "3 days ago" [no comment] An absolute date: ben@chimay:~ $ date -d "2007 1 jan" could not find out how to mix absolute dates and '+' and '-' HTH Le jeudi 11 janvier 2007 =C3=A0 16:23 +0100, Martin Klier a =C3=A9crit = : > Hi Linux Admins, >=20 > is there a command to get something like "thrid friday of july" or "s= econd=20 > wednesday each month"? I crossread the manuals for date and gcal, but= it=20 > seems to be impossible. Next thing I found was gcal, with=20 > "--period-of-fixed-dates", but I have not been able to get useful res= ults,=20 > and=20 > date -d "35 tuesday" (35th tuesday of a year), but I have not been ab= le to=20 > limit it to months nor selecting the year (by the way, I do not need = it). >=20 > Has somebody experience with this one, and can you give me a hint whe= re to=20 > look, or even an example? >=20 > Thanks a lot in advance, - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html