Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil Document that years in ISO 8601 dates are taken ...



details:   https://anonhg.NetBSD.org/src/rev/4b71847af00a
branches:  trunk
changeset: 332763:4b71847af00a
user:      apb <apb%NetBSD.org@localhost>
date:      Tue Oct 07 22:39:32 2014 +0000

description:
Document that years in ISO 8601 dates are taken literally.
"69-09-10" is in the year 69, not 2069.

diffstat:

 lib/libutil/parsedate.3 |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 2109a23d132b -r 4b71847af00a lib/libutil/parsedate.3
--- a/lib/libutil/parsedate.3   Tue Oct 07 22:33:52 2014 +0000
+++ b/lib/libutil/parsedate.3   Tue Oct 07 22:39:32 2014 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: parsedate.3,v 1.12 2013/01/19 15:28:25 apb Exp $
+.\"     $NetBSD: parsedate.3,v 1.13 2014/10/07 22:39:32 apb Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd January 19, 2013
+.Dd October 7, 2014
 .Dt PARSEDATE 3
 .Os
 .Sh NAME
@@ -198,11 +198,14 @@
 .Pp
 A variety of unambiguous dates are recognized:
 .Bl -tag -compact -width "20 Jun 1994"
-.It 69-09-10
+.It 9/10/69
 For years between 69-99 we assume 1900+ and for years between 0-68
 we assume 2000+.
 .It 2006-11-17
 An ISO-8601 date.
+.It 69-09-10
+The year in an ISO-8601 date is always taken literally,
+so this is the year 69, not 2069.
 .It 10/1/2000
 October 10, 2000; the common US format.
 .It 20 Jun 1994
@@ -210,7 +213,8 @@
 .It 1-sep-06
 Other common abbreviations.
 .It 1/11
-the year can be omitted
+The year can be omitted.
+This is the US month/day format.
 .El
 .Pp
 As well as times:



Home | Main Index | Thread Index | Old Index