Date: Thu, 31 May 2001 16:29:30 -0700 (PDT) From: <brian@FreeBSD.org> To: jabley@mfnx.net, brian@FreeBSD.org, freebsd-bugs@FreeBSD.org, brian@FreeBSD.org Subject: Re: bin/27796: Use of -v flag of date(1) can give non-intuitive results Message-ID: <200105312329.f4VNTUE08684@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: Use of -v flag of date(1) can give non-intuitive results State-Changed-From-To: open->feedback State-Changed-By: brian State-Changed-When: Thu May 31 16:28:17 PDT 2001 State-Changed-Why: Adjusting the date is not as straight forward as some might think. To find out what ``next month'' is you should ``date -v1d -v+1m +%m'' as there is always a ``day 1'' in each month. Your example is avoided in the man page as this rounding is done by mktime(3). Another good (confusing) example is ``date -v3m -v29d -v-1m''. If you (or anyone) care to produce documentation patches, I'm certainly happy to see if I can get them past a freebsd-doc review :) Responsible-Changed-From-To: freebsd-bugs->brian Responsible-Changed-By: brian Responsible-Changed-When: Thu May 31 16:28:17 PDT 2001 Responsible-Changed-Why: date -v is my fault^w^wmine http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27796 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105312329.f4VNTUE08684>