Date: Fri, 28 Jul 2000 20:58:24 +0200 (CEST) From: Paul Herman <pherman@frenchfries.net> To: Matt <matts@thepentagon.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: another date question Message-ID: <Pine.BSF.4.21.0007282049580.313-100000@bagabeedaboo.security.at12.de> In-Reply-To: <200007290007180515.01221B60@10.1.1.105>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 29 Jul 2000, Matt wrote: > I was after how to get date to report the number of > days until a certian date. Is this possible with > date? As you know, in UNIX there are many ways to do one thing. One way I can think of (until X-Mas for example): echo "(`date -v 12m -v 31d -v 0H +%s`-`date +%s`)/60/60/24" | bc There's lots of other ways, I'm sure. Choose your language, /bin/sh, perl, awk, etc... -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007282049580.313-100000>