summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-08-09 13:43:39 +0000
committeryar <yar@FreeBSD.org>2004-08-09 13:43:39 +0000
commitdd0f8a67929deaead706c990da5b6ecb9af261ac (patch)
tree9a797209d384a487f3c1b54df047042e3daaf5a0 /usr.bin
parentef551a94aceafda3f38cb51670de442924036f0b (diff)
downloadFreeBSD-src-dd0f8a67929deaead706c990da5b6ecb9af261ac.zip
FreeBSD-src-dd0f8a67929deaead706c990da5b6ecb9af261ac.tar.gz
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
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud