Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/lib/libutil Pull up following revision(s) (requested by a...
details: https://anonhg.NetBSD.org/src/rev/763730509fb8
branches: netbsd-7
changeset: 798413:763730509fb8
user: snj <snj%NetBSD.org@localhost>
date: Sat Oct 11 16:45:58 2014 +0000
description:
Pull up following revision(s) (requested by apb in ticket #135):
lib/libutil/parsedate.3: revision 1.13
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 d24c1f0afe65 -r 763730509fb8 lib/libutil/parsedate.3
--- a/lib/libutil/parsedate.3 Sat Oct 11 16:45:24 2014 +0000
+++ b/lib/libutil/parsedate.3 Sat Oct 11 16:45:58 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.12.8.1 2014/10/11 16:45:58 snj 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