1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/bin/date
Yaroslav Tykhiy d3e240cb45 Change the behaviour of `-v' so that, e.g., stepping a month back
on March 31 won't take you to March 2 or 3 (now the result will
be the last day of February.)

In general, now stepping by months from the last days of the current
month A will take you to the very last day of the target month B if
B is shorter than A.

The previous version would just step to March 31 and rely on mktime(3)
to correct the date.  Despite its simplicity, such way was counter-intuitive
to users and caused pain to shell script writers.

Noticed by:	Igor Timkin <ivt at gamma dot ru>
Approved by:	brian
MFC after:	2 weeks
2004-08-09 13:43:39 +00:00
..
date.1 Change the behaviour of `-v' so that, e.g., stepping a month back 2004-08-09 13:43:39 +00:00
date.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
extern.h Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
Makefile Get this area compiling with the highest WARNS= that it works with. 2003-06-13 07:04:02 +00:00
netdate.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
vary.c Change the behaviour of `-v' so that, e.g., stepping a month back 2004-08-09 13:43:39 +00:00
vary.h $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00