Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Sep 2000 22:03:52 +0200 (CEST)
From:      Dietmar Tanke <dtanke@gwdu60.gwdg.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/21039: date -v31d -v08m -v2000y
Message-ID:  <200009042003.WAA41103@gwdu60.gwdg.de>

next in thread | raw e-mail | index | archive | help

>Number:         21039
>Category:       bin
>Synopsis:       date -v31d -v08m -v2000y
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 04 13:10:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dietmar Tanke
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
University of G&umlo;ttingen, Germany
>Environment:
FreeBSD gwdu60.gwdg.de 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Mon Aug  7 10:27:48 CEST 2000     root@gwdp98.gwdg.de:/usr/src/sys/compile/GWDU60  i386

	

>Description:
Date adjustment using the -v option seems not work for any date with
the 31th day of a month. Two examples. First one with a good result
and the second leads to an unexpected error. Is it a bug?

dtanke$ date -v30d -v08m -v2000y 
Wed Aug 30 21:27:24 CEST 2000

dtanke$ date -v31d -v08m -v2000y 
31d: Cannot apply date adjustment

This example with "31" works well with 4.1 RELEASE.

dtanke$ date  -jf "%d.%m.%Y" 31.08.2000
Do  31 Aug 2000 21:38:15 CEST

	

>How-To-Repeat:
Same results with 2.2.8, 3.2, 4.0 and 4.1 RELEASE.

	

>Fix:
I am no programmer, sorry.
	


>Release-Note:
>Audit-Trail:
>Unformatted:


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?200009042003.WAA41103>