Source-Changes-HG archive

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

[src/trunk]: src/lib/libutil Remove dawn/sunup/sunset/sundown (sunrise was ne...



details:   https://anonhg.NetBSD.org/src/rev/74717272ea1f
branches:  trunk
changeset: 346109:74717272ea1f
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Jun 26 07:09:24 2016 +0000

description:
Remove dawn/sunup/sunset/sundown (sunrise was never there...)
If 06:00 or 18:00 are wanted, just say "06:00" (etc).  If these
are ever added back, they really should determine location, and
calculate actual sunrise/sunset times for the location and date.
That's not likely to happen...

diffstat:

 lib/libutil/parsedate.3 |  8 ++------
 lib/libutil/parsedate.y |  6 +-----
 2 files changed, 3 insertions(+), 11 deletions(-)

diffs (45 lines):

diff -r c79e49fc99b2 -r 74717272ea1f lib/libutil/parsedate.3
--- a/lib/libutil/parsedate.3   Sun Jun 26 04:17:17 2016 +0000
+++ b/lib/libutil/parsedate.3   Sun Jun 26 07:09:24 2016 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: parsedate.3,v 1.20 2015/12/10 21:32:35 wiz Exp $
+.\"     $NetBSD: parsedate.3,v 1.21 2016/06/26 07:09:24 kre Exp $
 .\"
 .\" Copyright (c) 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -131,11 +131,7 @@
 .Dv p.m. ,
 .Dv midnight ,
 .Dv mn ,
-.Dv noon ,
-.Dv dawn ,
-.Dv sunup ,
-.Dv sunset ,
-.Dv sundown .
+.Dv noon .
 .Pp
 The months:
 .Dv january ,
diff -r c79e49fc99b2 -r 74717272ea1f lib/libutil/parsedate.y
--- a/lib/libutil/parsedate.y   Sun Jun 26 04:17:17 2016 +0000
+++ b/lib/libutil/parsedate.y   Sun Jun 26 07:09:24 2016 +0000
@@ -14,7 +14,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __RCSID
-__RCSID("$NetBSD: parsedate.y,v 1.28 2016/05/03 18:14:54 kre Exp $");
+__RCSID("$NetBSD: parsedate.y,v 1.29 2016/06/26 07:09:24 kre Exp $");
 #endif
 
 #include <stdio.h>
@@ -587,10 +587,6 @@
     { "mn",            tTIME,           0 },
     { "noon",          tTIME,          12 },
     { "midday",                tTIME,          12 },
-    { "dawn",          tTIME,           6 },
-    { "sunup",         tTIME,           6 },
-    { "sunset",                tTIME,          18 },
-    { "sundown",       tTIME,          18 },
     { NULL,            0,               0 }
 };
 



Home | Main Index | Thread Index | Old Index