Hello community, here is the log from the commit of package dateutils for openSUSE:Factory checked in at 2016-01-28 17:22:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dateutils (Old) and /work/SRC/openSUSE:Factory/.dateutils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dateutils" Changes: -------- --- /work/SRC/openSUSE:Factory/dateutils/dateutils.changes 2016-01-12 16:13:29.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.dateutils.new/dateutils.changes 2016-01-28 17:22:40.000000000 +0100 @@ -1,0 +2,10 @@ +Fri Jan 22 22:45:28 UTC 2016 - [email protected] + +- bump version 0.3.5, this is a bugfix release. + * Bugfixes: + - bug/40, distinguish between numerals-only dates and durations + - tests will succeed independent of current date + * See info page examples and/or README. +- remove dateutils-0.3.4-fix-test-126.patch (upstream applied) + +------------------------------------------------------------------- Old: ---- dateutils-0.3.4-fix-test-126.patch dateutils-0.3.4.tar.xz New: ---- dateutils-0.3.5.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dateutils.spec ++++++ --- /var/tmp/diff_new_pack.Abpt6b/_old 2016-01-28 17:22:41.000000000 +0100 +++ /var/tmp/diff_new_pack.Abpt6b/_new 2016-01-28 17:22:41.000000000 +0100 @@ -16,7 +16,7 @@ # -%define xversion 0.3.4 +%define xversion 0.3.5 %define have_octave 0 @@ -39,15 +39,13 @@ %endif Name: dateutils -Version: 0.3.4 +Version: 0.3.5 Release: 0 Summary: Nifty command line date and time utilities License: BSD-3-Clause Group: Productivity/Text/Utilities Url: https://github.com/hroptatyr/dateutils/ Source: https://bitbucket.org/hroptatyr/dateutils/downloads/%{name}-%{version}.tar.xz -# PATCH-FIX-UPSTREAM dateutils-0.3.4-fix-test-126 -- Fix the test that was failing due to year change (from upstream) -Patch: dateutils-0.3.4-fix-test-126.patch BuildRequires: pkgconfig BuildRequires: xz %if 0%{?suse_version} @@ -80,7 +78,6 @@ %prep %setup -q -n %{name}-%{xversion} -%patch -p1 %build %configure \ ++++++ dateutils-0.3.4.tar.xz -> dateutils-0.3.5.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/.version new/dateutils-0.3.5/.version --- old/dateutils-0.3.4/.version 2015-08-28 14:07:53.000000000 +0200 +++ new/dateutils-0.3.5/.version 2016-01-22 12:03:34.000000000 +0100 @@ -1 +1 @@ -v0.3.4 +v0.3.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/README.md new/dateutils-0.3.5/README.md --- old/dateutils-0.3.4/README.md 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/README.md 2016-01-22 12:01:32.000000000 +0100 @@ -38,8 +38,8 @@ Examples ======== -I love everything to be explained by example to get a first -impression. So here it comes. +I love everything explained by example to get a first impression. +So here it comes. dateseq ------- @@ -258,6 +258,18 @@ => 2011-08-01 + Find the next Monday from the current date (today is 2016-01-08): + + $ dateround today Mon + => + 2015-01-11 + + Go back to last September, then round to the end of the month: + + $ dateround today -- -Sep +31d + => + 2015-09-30 + Round a stream of dates strictly to the next month's first: $ dateround -S -n 1 <<EOF @@ -309,9 +321,12 @@ datesort ----- - New in the 0.3 series of dateutils. A tool to bring the lines of a file into chronological order. + At the moment the `datesort` tool depends on `sort(1)` with support + for fields, in particular `-t` to select a separator and `-k` to sort + by a particular field. + $ datesort <<EOF 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2" 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05" @@ -328,12 +343,9 @@ 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92" 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53" - At the moment the `datesort` tool is built upon `sort(1)` and `cut(1)`. - datezone -------- - New in the 0.3 series of dateutils. A tool to quickly inspect date/time values in different timezones. The result will be a matrix that shows every date-time value in every timezone: @@ -363,25 +375,29 @@ strptime -------- - A tool that brings the flexibility of strptime(3) to the command - line. While date(1) has support for output formats, it lacks any kind - of support to read arbitrary input from the domain of dates, in - particular when the input format is specifically known beforehand and - only matching dates/times shall be considered. - - Usually, to print something like `Mon, May-01/2000` in ISO 8601, - people come up with the most prolific recommendations like using perl - or sed or awk or any two of them, or they come up with a pageful of - shell code full of bashisms, and when sufficiently pestered they - "improve" their variant to a dozen pages of portable shell code. + A tool that brings the flexibility of [`strptime(3)`][1] to the + command line. While (at least GNU) [`date(1)`][2] has support for + output formats, it lacks any kind of support to read arbitrary input + from the domain of dates, in particular when the input format is + specifically known beforehand and only matching dates/times shall be + considered. - The strptime tool does the job just fine + With the `strptime` tool reading weird dates like `Mon, May-01/2000` + becomes a matter of strptime -i "%a, %b-%d/%Y" "Mon, May-01/2000" => 2000-05-01 - just like you would have done in C. + just as you would have done in C. + + Note that `strptime` actually uses the system libc's strptime routine, + and for output the system's strftime routine. Input and output + modifiers will therefore vary between systems. + + For a portable parser/printer combination use `dateconv` as described + above. Its input and output format specifiers are independent of the + C runtime. Similar projects @@ -396,6 +412,10 @@ Use the one that best fits your purpose. And in case you happen to like mine, vote: [dateutils' openhub page](https://www.openhub.net/p/dateutils) + + [1]: http://linux.die.net/man/3/strptime + [2]: http://linux.die.net/man/1/date + <!-- Local variables: mode: auto-fill diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/build-aux/yuck-scmver.c new/dateutils-0.3.5/build-aux/yuck-scmver.c --- old/dateutils-0.3.4/build-aux/yuck-scmver.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/build-aux/yuck-scmver.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** yuck-scmver.c -- snarf versions off project cwds * - * Copyright (C) 2013-2015 Sebastian Freundt + * Copyright (C) 2013-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/build-aux/yuck-scmver.h new/dateutils-0.3.5/build-aux/yuck-scmver.h --- old/dateutils-0.3.4/build-aux/yuck-scmver.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/build-aux/yuck-scmver.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** yuck-version.h -- snarf versions off project cwds * - * Copyright (C) 2013-2015 Sebastian Freundt + * Copyright (C) 2013-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/build-aux/yuck.c new/dateutils-0.3.5/build-aux/yuck.c --- old/dateutils-0.3.4/build-aux/yuck.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/build-aux/yuck.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** yuck.c -- generate umbrella commands * - * Copyright (C) 2013-2015 Sebastian Freundt + * Copyright (C) 2013-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/configure new/dateutils-0.3.5/configure --- old/dateutils-0.3.4/configure 2015-08-28 14:07:45.000000000 +0200 +++ new/dateutils-0.3.5/configure 2016-01-22 12:03:27.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for dateutils 0.3.4. +# Generated by GNU Autoconf 2.68 for dateutils 0.3.5. # # Report bugs to <https://github.com/hroptatyr/dateutils/issues>. # @@ -14,7 +14,7 @@ # gives unlimited permission to copy, distribute and modify it. # # # #### Configuration script for dateutils and friends. -# #### Copyright (C) 2011-2015 Sebastian Freundt +# #### Copyright (C) 2011-2016 Sebastian Freundt # # ### Don't edit this script! # ### This script was automatically generated by the `autoconf' program @@ -580,8 +580,8 @@ # Identity of this package. PACKAGE_NAME='dateutils' PACKAGE_TARNAME='dateutils' -PACKAGE_VERSION='0.3.4' -PACKAGE_STRING='dateutils 0.3.4' +PACKAGE_VERSION='0.3.5' +PACKAGE_STRING='dateutils 0.3.5' PACKAGE_BUGREPORT='https://github.com/hroptatyr/dateutils/issues' PACKAGE_URL='' @@ -1487,7 +1487,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures dateutils 0.3.4 to adapt to many kinds of systems. +\`configure' configures dateutils 0.3.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1557,7 +1557,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of dateutils 0.3.4:";; + short | recursive ) echo "Configuration of dateutils 0.3.5:";; esac cat <<\_ACEOF @@ -1702,7 +1702,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -dateutils configure 0.3.4 +dateutils configure 0.3.5 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1710,7 +1710,7 @@ gives unlimited permission to copy, distribute and modify it. #### Configuration script for dateutils and friends. -#### Copyright (C) 2011-2015 Sebastian Freundt +#### Copyright (C) 2011-2016 Sebastian Freundt ### Don't edit this script! ### This script was automatically generated by the `autoconf' program @@ -2127,7 +2127,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by dateutils $as_me 0.3.4, which was +It was created by dateutils $as_me 0.3.5, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2950,7 +2950,7 @@ # Define the identity of the package. PACKAGE='dateutils' - VERSION='0.3.4' + VERSION='0.3.5' cat >>confdefs.h <<_ACEOF @@ -19707,7 +19707,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by dateutils $as_me 0.3.4, which was +This file was extended by dateutils $as_me 0.3.5, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -19777,7 +19777,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -dateutils config.status 0.3.4 +dateutils config.status 0.3.5 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/configure.ac new/dateutils-0.3.5/configure.ac --- old/dateutils-0.3.4/configure.ac 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/configure.ac 2016-01-22 12:01:32.000000000 +0100 @@ -3,7 +3,7 @@ dnl ------------------------------------------------------------------------- AC_PREREQ([2.63]) -AC_INIT([dateutils], [0.3.4], [https://github.com/hroptatyr/dateutils/issues]) +AC_INIT([dateutils], [0.3.5], [https://github.com/hroptatyr/dateutils/issues]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADER([src/config.h]) AC_CONFIG_MACRO_DIR([m4]) @@ -15,7 +15,7 @@ AC_COPYRIGHT([dnl #### Configuration script for dateutils and friends. -#### Copyright (C) 2011-2015 Sebastian Freundt +#### Copyright (C) 2011-2016 Sebastian Freundt ### Don't edit this script! ### This script was automatically generated by the `autoconf' program diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/contrib/leaps.c new/dateutils-0.3.5/contrib/leaps.c --- old/dateutils-0.3.4/contrib/leaps.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/contrib/leaps.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** leaps.c -- materialised leap seconds * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/contrib/leaps.h new/dateutils-0.3.5/contrib/leaps.h --- old/dateutils-0.3.4/contrib/leaps.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/contrib/leaps.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** leaps.h -- materialised leap seconds * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/contrib/tzconv.c new/dateutils-0.3.5/contrib/tzconv.c --- old/dateutils-0.3.4/contrib/tzconv.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/contrib/tzconv.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** tzconv.c -- convert matlab dates between timezones * - * Copyright (C) 2013-2014 Sebastian Freundt + * Copyright (C) 2013-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/contrib/tzraw.c new/dateutils-0.3.5/contrib/tzraw.c --- old/dateutils-0.3.4/contrib/tzraw.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/contrib/tzraw.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** tzraw.c -- reader for olson database zoneinfo files * - * Copyright (C) 2009-2015 Sebastian Freundt + * Copyright (C) 2009-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/contrib/tzraw.h new/dateutils-0.3.5/contrib/tzraw.h --- old/dateutils-0.3.4/contrib/tzraw.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/contrib/tzraw.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** tzraw.h -- reader for olson database zoneinfo files * - * Copyright (C) 2009-2015 Sebastian Freundt + * Copyright (C) 2009-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dadd.manu new/dateutils-0.3.5/info/dadd.manu --- old/dateutils-0.3.4/info/dadd.manu 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/dadd.manu 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEADD "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEADD "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dateadd - Add DURATION to DATE/TIME and print the result. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dateadd.manu new/dateutils-0.3.5/info/dateadd.manu --- old/dateutils-0.3.4/info/dateadd.manu 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/dateadd.manu 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEADD "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEADD "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dateadd - Add DURATION to DATE/TIME and print the result. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dateconv.man new/dateutils-0.3.5/info/dateconv.man --- old/dateutils-0.3.4/info/dateconv.man 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/dateconv.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATECONV "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATECONV "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dateconv - Convert DATE/TIMEs between calendrical systems. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/datediff.mand new/dateutils-0.3.5/info/datediff.mand --- old/dateutils-0.3.4/info/datediff.mand 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/datediff.mand 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEDIFF "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEDIFF "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME datediff - Compute duration from DATE/TIME (the reference date/time) to the other .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dategrep.man new/dateutils-0.3.5/info/dategrep.man --- old/dateutils-0.3.4/info/dategrep.man 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/dategrep.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEGREP "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEGREP "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dategrep - Grep standard input for lines that match EXPRESSION. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dateround.manu new/dateutils-0.3.5/info/dateround.manu --- old/dateutils-0.3.4/info/dateround.manu 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/dateround.manu 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEROUND "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEROUND "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dateround - Round DATE/TIME to the next occurrence of RNDSPEC. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dateseq.manu new/dateutils-0.3.5/info/dateseq.manu --- old/dateutils-0.3.4/info/dateseq.manu 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/dateseq.manu 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATESEQ "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATESEQ "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dateseq - Generate a sequence of date/times from FIRST to LAST, optionally in steps of .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/datesort.man new/dateutils-0.3.5/info/datesort.man --- old/dateutils-0.3.4/info/datesort.man 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/datesort.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATESORT "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATESORT "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME datesort - Sort contents of FILE chronologically. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/datetest.man new/dateutils-0.3.5/info/datetest.man --- old/dateutils-0.3.4/info/datetest.man 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/datetest.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATETEST "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATETEST "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME datetest - Like test(1) but for dates. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dateutils.info new/dateutils-0.3.5/info/dateutils.info --- old/dateutils-0.3.4/info/dateutils.info 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/dateutils.info 2016-01-22 12:04:01.000000000 +0100 @@ -28,7 +28,7 @@ This manual documents the dateutils package. - Copyright (C) 2011-2015 Sebastian Freundt. + Copyright (C) 2011-2016 Sebastian Freundt. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dateutils.texi new/dateutils-0.3.5/info/dateutils.texi --- old/dateutils-0.3.4/info/dateutils.texi 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/info/dateutils.texi 2016-01-22 12:01:32.000000000 +0100 @@ -30,7 +30,7 @@ This manual documents the dateutils package. -Copyright @copyright{} 2011-2015 Sebastian Freundt. +Copyright @copyright{} 2011-2016 Sebastian Freundt. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, @@ -54,7 +54,7 @@ @center Sebastian Freundt @page @vskip 0pt plus 1filll -Copyright @copyright{} 2011-2015 Sebastian Freundt. +Copyright @copyright{} 2011-2016 Sebastian Freundt. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/datezone.man new/dateutils-0.3.5/info/datezone.man --- old/dateutils-0.3.4/info/datezone.man 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/datezone.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEZONE "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEZONE "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME datezone - Convert DATE/TIMEs between timezones. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dconv.man new/dateutils-0.3.5/info/dconv.man --- old/dateutils-0.3.4/info/dconv.man 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/dconv.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATECONV "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATECONV "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dateconv - Convert DATE/TIMEs between calendrical systems. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/ddiff.mand new/dateutils-0.3.5/info/ddiff.mand --- old/dateutils-0.3.4/info/ddiff.mand 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/ddiff.mand 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEDIFF "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEDIFF "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME datediff - Compute duration from DATE/TIME (the reference date/time) to the other .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dgrep.man new/dateutils-0.3.5/info/dgrep.man --- old/dateutils-0.3.4/info/dgrep.man 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/dgrep.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEGREP "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEGREP "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dategrep - Grep standard input for lines that match EXPRESSION. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dround.manu new/dateutils-0.3.5/info/dround.manu --- old/dateutils-0.3.4/info/dround.manu 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/dround.manu 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEROUND "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEROUND "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dateround - Round DATE/TIME to the next occurrence of RNDSPEC. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dseq.manu new/dateutils-0.3.5/info/dseq.manu --- old/dateutils-0.3.4/info/dseq.manu 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/dseq.manu 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATESEQ "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATESEQ "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME dateseq - Generate a sequence of date/times from FIRST to LAST, optionally in steps of .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dsort.man new/dateutils-0.3.5/info/dsort.man --- old/dateutils-0.3.4/info/dsort.man 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/dsort.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATESORT "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATESORT "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME datesort - Sort contents of FILE chronologically. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dtest.man new/dateutils-0.3.5/info/dtest.man --- old/dateutils-0.3.4/info/dtest.man 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/dtest.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATETEST "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATETEST "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME datetest - Like test(1) but for dates. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/dzone.man new/dateutils-0.3.5/info/dzone.man --- old/dateutils-0.3.4/info/dzone.man 2015-08-28 14:08:27.000000000 +0200 +++ new/dateutils-0.3.5/info/dzone.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH DATEZONE "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH DATEZONE "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME datezone - Convert DATE/TIMEs between timezones. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/info/strptime.man new/dateutils-0.3.5/info/strptime.man --- old/dateutils-0.3.4/info/strptime.man 2015-08-28 14:08:26.000000000 +0200 +++ new/dateutils-0.3.5/info/strptime.man 2016-01-22 12:04:01.000000000 +0100 @@ -1,5 +1,5 @@ .\" auto generated by yuck -*- nroff -*- -.TH STRPTIME "1" "August 2015" "dateutils 0.3.4" "User Commands" +.TH STRPTIME "1" "January 2016" "dateutils 0.3.5" "User Commands" .SH NAME strptime - Parse input from stdin according to one of the given formats FORMATs. .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/bizda.c new/dateutils-0.3.5/lib/bizda.c --- old/dateutils-0.3.4/lib/bizda.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/bizda.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** bizda.c -- guts for bizda dates * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/boops.h new/dateutils-0.3.5/lib/boops.h --- old/dateutils-0.3.4/lib/boops.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/boops.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** boops.h -- byte-order operations * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * Copyright (C) 2012 Ruediger Meier * * Author: Sebastian Freundt <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/daisy.c new/dateutils-0.3.5/lib/daisy.c --- old/dateutils-0.3.4/lib/daisy.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/daisy.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** daisy.c -- guts for daisy dates * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/date-core-private.h new/dateutils-0.3.5/lib/date-core-private.h --- old/dateutils-0.3.4/lib/date-core-private.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/date-core-private.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** date-core-private.h -- our universe of dates, private bits * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/date-core-strpf.c new/dateutils-0.3.5/lib/date-core-strpf.c --- old/dateutils-0.3.4/lib/date-core-strpf.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/date-core-strpf.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** date-core-strpf.c -- parser and formatter funs for date-core * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/date-core-strpf.h new/dateutils-0.3.5/lib/date-core-strpf.h --- old/dateutils-0.3.4/lib/date-core-strpf.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/date-core-strpf.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** date-core-strpf.h -- parser and formatter funs for date-core * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/date-core.c new/dateutils-0.3.5/lib/date-core.c --- old/dateutils-0.3.4/lib/date-core.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/date-core.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** date-core.c -- our universe of dates * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/date-core.h new/dateutils-0.3.5/lib/date-core.h --- old/dateutils-0.3.4/lib/date-core.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/date-core.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** date-core.h -- our universe of dates * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/dt-core-private.h new/dateutils-0.3.5/lib/dt-core-private.h --- old/dateutils-0.3.4/lib/dt-core-private.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/dt-core-private.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-core-private.h -- our universe of datetimes, private bits * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/dt-core-strpf.c new/dateutils-0.3.5/lib/dt-core-strpf.c --- old/dateutils-0.3.4/lib/dt-core-strpf.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/dt-core-strpf.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-core-strpf.c -- parser and formatter funs for dt-core * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/dt-core-strpf.h new/dateutils-0.3.5/lib/dt-core-strpf.h --- old/dateutils-0.3.4/lib/dt-core-strpf.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/dt-core-strpf.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-core-strpf.h -- parser and formatter funs for dt-core * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/dt-core-tz-glue.c new/dateutils-0.3.5/lib/dt-core-tz-glue.c --- old/dateutils-0.3.4/lib/dt-core-tz-glue.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/dt-core-tz-glue.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-core-tz-glue.c -- gluing date/times and tzs * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/dt-core-tz-glue.h new/dateutils-0.3.5/lib/dt-core-tz-glue.h --- old/dateutils-0.3.4/lib/dt-core-tz-glue.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/dt-core-tz-glue.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-core-tz-glue.h -- glue between tzraw and dt-core * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/dt-core.c new/dateutils-0.3.5/lib/dt-core.c --- old/dateutils-0.3.4/lib/dt-core.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/dt-core.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-core.c -- our universe of datetimes * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * @@ -593,8 +593,13 @@ * no format specifiers */ case DT_JDN: + /* we demand a float representation from start to finish */ res.d.jdn = (dt_jdn_t)strtod(str, &on); + if (UNLIKELY(*on < '\0' || *on > ' ')) { + /* nah, that's not a distinguished float */ + goto fucked; + } /* fix up const-ness problem */ sp = on; /* don't worry about time slot or date/time sandwiches */ @@ -603,10 +608,8 @@ case DT_LDN: res.d.ldn = (dt_ldn_t)strtoi(str, &sp); - if (*sp != '.') { - dt_make_d_only(&res, DT_LDN); - } else { - /* yes, big cluster fuck */ + if (*sp == '.') { + /* oooh, a double it seems */ double tmp = strtod(sp, &on); /* fix up const-ness problem */ @@ -620,6 +623,12 @@ tmp -= (double)res.t.hms.s; res.t.hms.ns = (tmp *= NANOS_PER_SEC); dt_make_sandwich(&res, DT_LDN, DT_HMS); + } else if (UNLIKELY(*sp < '\0' || *sp > ' ')) { + /* not on my turf */ + goto fucked; + } else { + /* looking good */ + dt_make_d_only(&res, DT_LDN); } goto sober; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/dt-core.h new/dateutils-0.3.5/lib/dt-core.h --- old/dateutils-0.3.4/lib/dt-core.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/dt-core.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-core.h -- our universe of datetimes * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/generics.h new/dateutils-0.3.5/lib/generics.h --- old/dateutils-0.3.4/lib/generics.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/generics.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** generics.h -- type invariant generic funs * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/leaps.c new/dateutils-0.3.5/lib/leaps.c --- old/dateutils-0.3.4/lib/leaps.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/leaps.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** leaps.c -- materialised leap seconds * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/leaps.h new/dateutils-0.3.5/lib/leaps.h --- old/dateutils-0.3.4/lib/leaps.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/leaps.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** leaps.h -- materialised leap seconds * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/ltrcc.c new/dateutils-0.3.5/lib/ltrcc.c --- old/dateutils-0.3.4/lib/ltrcc.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/ltrcc.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** ltrcc.c -- leapseconds materialiser * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/nifty.h new/dateutils-0.3.5/lib/nifty.h --- old/dateutils-0.3.4/lib/nifty.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/nifty.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** nifty.h -- generally handy macroes * - * Copyright (C) 2009-2015 Sebastian Freundt + * Copyright (C) 2009-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/strops.c new/dateutils-0.3.5/lib/strops.c --- old/dateutils-0.3.4/lib/strops.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/strops.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** strops.c -- useful string operations * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/strops.h new/dateutils-0.3.5/lib/strops.h --- old/dateutils-0.3.4/lib/strops.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/strops.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** strops.h -- useful string operations * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/time-core-private.h new/dateutils-0.3.5/lib/time-core-private.h --- old/dateutils-0.3.4/lib/time-core-private.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/time-core-private.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** time-core-private.h -- our universe of times, private bits * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/time-core-strpf.c new/dateutils-0.3.5/lib/time-core-strpf.c --- old/dateutils-0.3.4/lib/time-core-strpf.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/time-core-strpf.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** time-core-strpf.c -- parser and formatter funs for time-core * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/time-core-strpf.h new/dateutils-0.3.5/lib/time-core-strpf.h --- old/dateutils-0.3.4/lib/time-core-strpf.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/time-core-strpf.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** time-core-strpf.h -- parser and formatter funs for time-core * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/time-core.c new/dateutils-0.3.5/lib/time-core.c --- old/dateutils-0.3.4/lib/time-core.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/time-core.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** time-core.c -- our universe of times * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/time-core.h new/dateutils-0.3.5/lib/time-core.h --- old/dateutils-0.3.4/lib/time-core.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/time-core.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** time-core.h -- our universe of times * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/token.c new/dateutils-0.3.5/lib/token.c --- old/dateutils-0.3.4/lib/token.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/token.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** token.c -- tokeniser specs and stuff * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/token.h new/dateutils-0.3.5/lib/token.h --- old/dateutils-0.3.4/lib/token.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/token.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** token.h -- tokeniser specs and stuff * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/tzmap.c new/dateutils-0.3.5/lib/tzmap.c --- old/dateutils-0.3.4/lib/tzmap.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/tzmap.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** tzmap.c -- zonename maps * - * Copyright (C) 2014-2015 Sebastian Freundt + * Copyright (C) 2014-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/tzmap.h new/dateutils-0.3.5/lib/tzmap.h --- old/dateutils-0.3.4/lib/tzmap.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/tzmap.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** tzmap.h -- zonename maps * - * Copyright (C) 2014-2015 Sebastian Freundt + * Copyright (C) 2014-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/tzraw.c new/dateutils-0.3.5/lib/tzraw.c --- old/dateutils-0.3.4/lib/tzraw.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/tzraw.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** tzraw.c -- reader for olson database zoneinfo files * - * Copyright (C) 2009-2015 Sebastian Freundt + * Copyright (C) 2009-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/tzraw.h new/dateutils-0.3.5/lib/tzraw.h --- old/dateutils-0.3.4/lib/tzraw.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/tzraw.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** tzraw.h -- reader for olson database zoneinfo files * - * Copyright (C) 2009-2015 Sebastian Freundt + * Copyright (C) 2009-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/version.c new/dateutils-0.3.5/lib/version.c --- old/dateutils-0.3.4/lib/version.c 2015-08-28 14:08:06.000000000 +0200 +++ new/dateutils-0.3.5/lib/version.c 2016-01-22 12:03:44.000000000 +0100 @@ -1,4 +1,4 @@ /* -*- c -*- */ #include "version.h" -const char dateutils_version_string[] = "0.3.4"; +const char dateutils_version_string[] = "0.3.5"; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/yd.c new/dateutils-0.3.5/lib/yd.c --- old/dateutils-0.3.4/lib/yd.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/yd.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** yd.c -- guts for yd dates that consist of a year and a year-day * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/ymcw.c new/dateutils-0.3.5/lib/ymcw.c --- old/dateutils-0.3.4/lib/ymcw.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/ymcw.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** ymcw.c -- guts for ymcw dates * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/ymd.c new/dateutils-0.3.5/lib/ymd.c --- old/dateutils-0.3.4/lib/ymd.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/ymd.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** ymd.c -- guts for ymd dates * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/lib/ywd.c new/dateutils-0.3.5/lib/ywd.c --- old/dateutils-0.3.4/lib/ywd.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/lib/ywd.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** ywd.c -- guts for ywd dates * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/m4/clitosis.m4 new/dateutils-0.3.5/m4/clitosis.m4 --- old/dateutils-0.3.4/m4/clitosis.m4 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/m4/clitosis.m4 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ dnl clitosis.m4 --- checks necessary for the clitosis test harness dnl -dnl Copyright (C) 2013-2015 Sebastian Freundt +dnl Copyright (C) 2013-2016 Sebastian Freundt dnl dnl Author: Sebastian Freundt <[email protected]> dnl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/m4/sxe-compiler.m4 new/dateutils-0.3.5/m4/sxe-compiler.m4 --- old/dateutils-0.3.4/m4/sxe-compiler.m4 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/m4/sxe-compiler.m4 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ dnl compiler.m4 --- compiler magic dnl -dnl Copyright (C) 2005-2015 Sebastian Freundt +dnl Copyright (C) 2005-2016 Sebastian Freundt dnl Copyright (c) 2005 Steven G. Johnson dnl Copyright (c) 2005 Matteo Frigo dnl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/m4/sxe-libtool.m4 new/dateutils-0.3.5/m4/sxe-libtool.m4 --- old/dateutils-0.3.4/m4/sxe-libtool.m4 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/m4/sxe-libtool.m4 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ dnl sxe-libtool.m4 -- just a quick libtoolish macros dnl -dnl Copyright (C) 2007-2014 Sebastian Freundt. +dnl Copyright (C) 2007-2016 Sebastian Freundt. dnl dnl This file is part of unserding diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/m4/yuck.m4 new/dateutils-0.3.5/m4/yuck.m4 --- old/dateutils-0.3.4/m4/yuck.m4 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/m4/yuck.m4 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ dnl yuck.m4 --- yuck goodies dnl -dnl Copyright (C) 2013-2015 Sebastian Freundt +dnl Copyright (C) 2013-2016 Sebastian Freundt dnl dnl Author: Sebastian Freundt <[email protected]> dnl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/alist.c new/dateutils-0.3.5/src/alist.c --- old/dateutils-0.3.4/src/alist.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/alist.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** alist.c -- bog standard associative lists * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/alist.h new/dateutils-0.3.5/src/alist.h --- old/dateutils-0.3.4/src/alist.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/alist.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** alist.h -- bog standard associative lists * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dadd.c new/dateutils-0.3.5/src/dadd.c --- old/dateutils-0.3.4/src/dadd.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dadd.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dadd.c -- perform simple date arithmetic, date plus duration * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * @@ -218,7 +218,6 @@ yuck_t argi[1U]; struct dt_dt_s d; struct __strpdtdur_st_s st = __strpdtdur_st_initialiser(); - char *inp; const char *ofmt; char **fmt; size_t nfmt; @@ -260,34 +259,37 @@ dt_set_base(base); } + /* sanity checks, decide whether we're a mass date adder + * or a mass duration adder, or both, a date and durations are + * present on the command line */ + with (const char *inp = argi->args[0U]) { + /* date parsing needed postponing as we need to find out + * about the durations */ + if (!dt_unk_p(dt_io_strpdt(inp, fmt, nfmt, NULL))) { + dt_given_p = true; + } + } + /* check first arg, if it's a date the rest of the arguments are * durations, if not, dates must be read from stdin */ - for (size_t i = 0; i < argi->nargs; i++) { - inp = argi->args[i]; + for (size_t i = dt_given_p; i < argi->nargs; i++) { + const char *inp = argi->args[i]; do { if (dt_io_strpdtdur(&st, inp) < 0) { - if (UNLIKELY(i == 0)) { - /* that's ok, must be a date then */ - dt_given_p = true; - } else { - serror("Error: \ + serror("Error: \ cannot parse duration string `%s'", st.istr); - rc = 1; - goto dur_out; - } + rc = 1; + goto dur_out; } } while (__strpdtdur_more_p(&st)); } /* check if there's only d durations */ hackz = durs_only_d_p(st.durs, st.ndurs) ? NULL : fromz; - /* sanity checks, decide whether we're a mass date adder - * or a mass duration adder, or both, a date and durations are - * present on the command line */ + /* read the first argument again in light of a completely parsed + * duration sequence */ if (dt_given_p) { - /* date parsing needed postponing as we need to find out - * about the durations */ - inp = argi->args[0U]; + const char *inp = argi->args[0U]; if (dt_unk_p(d = dt_io_strpdt(inp, fmt, nfmt, hackz))) { error("\ Error: cannot interpret date/time string `%s'", inp); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dconv.c new/dateutils-0.3.5/src/dconv.c --- old/dateutils-0.3.4/src/dconv.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dconv.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dconv.c -- convert calendrical and time stamp systems * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/ddiff.c new/dateutils-0.3.5/src/ddiff.c --- old/dateutils-0.3.4/src/ddiff.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/ddiff.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** ddiff.c -- perform simple date arithmetic, date minus date * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dexpr-parser.y new/dateutils-0.3.5/src/dexpr-parser.y --- old/dateutils-0.3.4/src/dexpr-parser.y 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dexpr-parser.y 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dexpr-parser.y -- parsing date expressions -*- c -*- * - * Copyright (C) 2002-2015 Sebastian Freundt + * Copyright (C) 2002-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dexpr-scanner.c new/dateutils-0.3.5/src/dexpr-scanner.c --- old/dateutils-0.3.4/src/dexpr-scanner.c 2015-08-28 14:08:17.000000000 +0200 +++ new/dateutils-0.3.5/src/dexpr-scanner.c 2016-01-22 12:03:54.000000000 +0100 @@ -503,7 +503,7 @@ #line 1 "dexpr-scanner.l" /*** dexpr.l -- date/time expressions for dateutils -*- C -*- * - * Copyright (C) 2002-2015 Sebastian Freundt + * Copyright (C) 2002-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dexpr-scanner.l new/dateutils-0.3.5/src/dexpr-scanner.l --- old/dateutils-0.3.4/src/dexpr-scanner.l 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dexpr-scanner.l 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dexpr.l -- date/time expressions for dateutils -*- C -*- * - * Copyright (C) 2002-2015 Sebastian Freundt + * Copyright (C) 2002-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dgrep.c new/dateutils-0.3.5/src/dgrep.c --- old/dateutils-0.3.4/src/dgrep.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dgrep.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dgrep.c -- grep for lines with dates * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dround.c new/dateutils-0.3.5/src/dround.c --- old/dateutils-0.3.4/src/dround.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dround.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dround.c -- perform simple date arithmetic, round to duration * - * Copyright (C) 2012-2015 Sebastian Freundt + * Copyright (C) 2012-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dsort.c new/dateutils-0.3.5/src/dsort.c --- old/dateutils-0.3.4/src/dsort.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dsort.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dsort.c -- sort FILEs or stdin chronologically * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dt-io-zone.c new/dateutils-0.3.5/src/dt-io-zone.c --- old/dateutils-0.3.4/src/dt-io-zone.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dt-io-zone.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-io-zone.c -- abstract from raw zone interface * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dt-io-zone.h new/dateutils-0.3.5/src/dt-io-zone.h --- old/dateutils-0.3.4/src/dt-io-zone.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dt-io-zone.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dt-io-zone.h -- abstract from raw zone interface * - * Copyright (C) 2009-2015 Sebastian Freundt + * Copyright (C) 2009-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dtest.c new/dateutils-0.3.5/src/dtest.c --- old/dateutils-0.3.4/src/dtest.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dtest.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dtest.c -- like test(1) but for dates * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/dzone.c new/dateutils-0.3.5/src/dzone.c --- old/dateutils-0.3.4/src/dzone.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/dzone.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** dzone.c -- convert date/times between timezones * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/prchunk.c new/dateutils-0.3.5/src/prchunk.c --- old/dateutils-0.3.4/src/prchunk.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/prchunk.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** prchunk.c -- guessing line oriented data formats * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/prchunk.h new/dateutils-0.3.5/src/prchunk.h --- old/dateutils-0.3.4/src/prchunk.h 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/prchunk.h 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** prchunk.h -- guessing line oriented data formats * - * Copyright (C) 2010-2015 Sebastian Freundt + * Copyright (C) 2010-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/src/strptime.c new/dateutils-0.3.5/src/strptime.c --- old/dateutils-0.3.4/src/strptime.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/src/strptime.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** strptime.c -- a shell interface to strptime(3) * - * Copyright (C) 2011-2015 Sebastian Freundt + * Copyright (C) 2011-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/test/Makefile.am new/dateutils-0.3.5/test/Makefile.am --- old/dateutils-0.3.4/test/Makefile.am 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/test/Makefile.am 2016-01-22 12:01:32.000000000 +0100 @@ -33,7 +33,7 @@ ## our friendly helper include clitosis.am -AM_CLIT_LOG_FLAGS = -v --builddir "$(top_builddir)/src" --timeout 20 --keep-going +AM_CLIT_LOG_FLAGS = -v --builddir "$(top_builddir)/src" --timeout 300 --keep-going TESTS_ENVIRONMENT += GPERF=$(GPERF) TESTS_ENVIRONMENT += GDATE=$(GDATE) @@ -298,6 +298,7 @@ dt_tests += dadd.086.clit dt_tests += dadd.087.clit dt_tests += dadd.088.clit +dt_tests += dadd.089.clit dt_tests += dtest.001.clit dt_tests += dtest.002.clit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/test/Makefile.in new/dateutils-0.3.5/test/Makefile.in --- old/dateutils-0.3.4/test/Makefile.in 2015-08-28 14:07:48.000000000 +0200 +++ new/dateutils-0.3.5/test/Makefile.in 2016-01-22 12:03:30.000000000 +0100 @@ -554,37 +554,37 @@ dadd.076.clit dadd.077.clit dadd.078.clit dadd.079.clit \ dadd.080.clit dadd.081.clit dadd.082.clit dadd.083.clit \ dadd.084.clit dadd.085.clit dadd.086.clit dadd.087.clit \ - dadd.088.clit dtest.001.clit dtest.002.clit dtest.003.clit \ - dtest.004.clit dtest.005.clit dtest.006.clit dtest.007.clit \ - dtest.008.clit dtest.009.clit ddiff.001.clit ddiff.002.clit \ - ddiff.003.clit ddiff.004.clit ddiff.005.clit ddiff.006.clit \ - ddiff.007.clit ddiff.008.clit ddiff.009.clit ddiff.010.clit \ - ddiff.011.clit ddiff.012.clit ddiff.013.clit ddiff.014.clit \ - ddiff.015.clit ddiff.016.clit ddiff.017.clit ddiff.018.clit \ - ddiff.019.clit ddiff.020.clit ddiff.021.clit ddiff.022.clit \ - ddiff.023.clit ddiff.024.clit ddiff.025.clit ddiff.026.clit \ - ddiff.027.clit ddiff.028.clit ddiff.029.clit ddiff.030.clit \ - ddiff.031.clit ddiff.032.clit ddiff.033.clit ddiff.034.clit \ - ddiff.035.clit ddiff.036.clit ddiff.037.clit ddiff.038.clit \ - ddiff.039.clit ddiff.040.clit ddiff.041.clit ddiff.042.clit \ - ddiff.043.clit ddiff.044.clit ddiff.045.clit ddiff.046.clit \ - ddiff.047.clit ddiff.048.clit ddiff.049.clit ddiff.050.clit \ - ddiff.051.clit ddiff.052.clit ddiff.053.clit ddiff.054.clit \ - ddiff.055.clit ddiff.056.clit ddiff.057.clit ddiff.058.clit \ - ddiff.059.clit ddiff.060.clit ddiff.061.clit ddiff.062.clit \ - ddiff.063.clit ddiff.064.clit ddiff.065.clit ddiff.066.clit \ - ddiff.067.clit ddiff.068.clit ddiff.069.clit ddiff.070.clit \ - dgrep.001.clit dgrep.002.clit dgrep.003.clit dgrep.004.clit \ - dgrep.005.clit dgrep.006.clit dgrep.007.clit dgrep.008.clit \ - dgrep.009.clit dgrep.010.clit dgrep.011.clit dgrep.012.clit \ - dgrep.013.clit dgrep.014.clit dgrep.015.clit dgrep.016.clit \ - dgrep.017.clit dgrep.018.clit dgrep.019.clit dgrep.020.clit \ - dgrep.021.clit dgrep.022.clit dgrep.023.clit dgrep.024.clit \ - dgrep.025.clit dgrep.026.clit dgrep.027.clit dgrep.028.clit \ - dgrep.029.clit dgrep.030.clit dgrep.031.clit dgrep.032.clit \ - dgrep.033.clit dgrep.034.clit dgrep.035.clit dgrep.036.clit \ - dgrep.037.clit dgrep.038.clit dgrep.039.clit dgrep.040.clit \ - dround.001.clit dround.002.clit dround.003.clit \ + dadd.088.clit dadd.089.clit dtest.001.clit dtest.002.clit \ + dtest.003.clit dtest.004.clit dtest.005.clit dtest.006.clit \ + dtest.007.clit dtest.008.clit dtest.009.clit ddiff.001.clit \ + ddiff.002.clit ddiff.003.clit ddiff.004.clit ddiff.005.clit \ + ddiff.006.clit ddiff.007.clit ddiff.008.clit ddiff.009.clit \ + ddiff.010.clit ddiff.011.clit ddiff.012.clit ddiff.013.clit \ + ddiff.014.clit ddiff.015.clit ddiff.016.clit ddiff.017.clit \ + ddiff.018.clit ddiff.019.clit ddiff.020.clit ddiff.021.clit \ + ddiff.022.clit ddiff.023.clit ddiff.024.clit ddiff.025.clit \ + ddiff.026.clit ddiff.027.clit ddiff.028.clit ddiff.029.clit \ + ddiff.030.clit ddiff.031.clit ddiff.032.clit ddiff.033.clit \ + ddiff.034.clit ddiff.035.clit ddiff.036.clit ddiff.037.clit \ + ddiff.038.clit ddiff.039.clit ddiff.040.clit ddiff.041.clit \ + ddiff.042.clit ddiff.043.clit ddiff.044.clit ddiff.045.clit \ + ddiff.046.clit ddiff.047.clit ddiff.048.clit ddiff.049.clit \ + ddiff.050.clit ddiff.051.clit ddiff.052.clit ddiff.053.clit \ + ddiff.054.clit ddiff.055.clit ddiff.056.clit ddiff.057.clit \ + ddiff.058.clit ddiff.059.clit ddiff.060.clit ddiff.061.clit \ + ddiff.062.clit ddiff.063.clit ddiff.064.clit ddiff.065.clit \ + ddiff.066.clit ddiff.067.clit ddiff.068.clit ddiff.069.clit \ + ddiff.070.clit dgrep.001.clit dgrep.002.clit dgrep.003.clit \ + dgrep.004.clit dgrep.005.clit dgrep.006.clit dgrep.007.clit \ + dgrep.008.clit dgrep.009.clit dgrep.010.clit dgrep.011.clit \ + dgrep.012.clit dgrep.013.clit dgrep.014.clit dgrep.015.clit \ + dgrep.016.clit dgrep.017.clit dgrep.018.clit dgrep.019.clit \ + dgrep.020.clit dgrep.021.clit dgrep.022.clit dgrep.023.clit \ + dgrep.024.clit dgrep.025.clit dgrep.026.clit dgrep.027.clit \ + dgrep.028.clit dgrep.029.clit dgrep.030.clit dgrep.031.clit \ + dgrep.032.clit dgrep.033.clit dgrep.034.clit dgrep.035.clit \ + dgrep.036.clit dgrep.037.clit dgrep.038.clit dgrep.039.clit \ + dgrep.040.clit dround.001.clit dround.002.clit dround.003.clit \ dround.004.clit dround.005.clit dround.006.clit \ dround.007.clit dround.008.clit dround.009.clit \ dround.010.clit dround.011.clit dround.012.clit \ @@ -707,7 +707,7 @@ clitosis_CPPFLAGS = -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 \ -D_BSD_SOURCE -D_ALL_SOURCE -D_NETBSD_SOURCE -UHAVE_VERSION_H clitosis_LDADD = $(am__append_1) -AM_CLIT_LOG_FLAGS = -v --builddir "$(top_builddir)/src" --timeout 20 --keep-going +AM_CLIT_LOG_FLAGS = -v --builddir "$(top_builddir)/src" --timeout 300 --keep-going dtcore_strp_LDADD = $(DT_LIBS) dtcore_conv_LDADD = $(DT_LIBS) dtcore_add_LDADD = $(DT_LIBS) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/test/clitosis.c new/dateutils-0.3.5/test/clitosis.c --- old/dateutils-0.3.4/test/clitosis.c 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/test/clitosis.c 2016-01-22 12:01:32.000000000 +0100 @@ -1,6 +1,6 @@ /*** clitosis.c -- command-line-interface tester on shell input syntax * - * Copyright (C) 2013-2015 Sebastian Freundt + * Copyright (C) 2013-2016 Sebastian Freundt * * Author: Sebastian Freundt <[email protected]> * diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/test/dadd.089.clit new/dateutils-0.3.5/test/dadd.089.clit --- old/dateutils-0.3.4/test/dadd.089.clit 1970-01-01 01:00:00.000000000 +0100 +++ new/dateutils-0.3.5/test/dadd.089.clit 2016-01-22 12:01:32.000000000 +0100 @@ -0,0 +1,7 @@ +#!/usr/bin/clitoris + +## this is don_crissti's issue +## http://unix.stackexchange.com/questions/24626/quickly-calculate-date-differences/36193?noredirect=1#comment420193_36193 +$ dadd -i '%m%d%Y' 01012015 +1d +2015-01-02 +$ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/test/dconv.126.clit new/dateutils-0.3.5/test/dconv.126.clit --- old/dateutils-0.3.4/test/dconv.126.clit 2015-08-28 14:04:43.000000000 +0200 +++ new/dateutils-0.3.5/test/dconv.126.clit 2016-01-22 12:01:32.000000000 +0100 @@ -1,8 +1,8 @@ #!/usr/bin/clitoris ## -*- shell-script -*- -$ dconv -i '%_b%_y' K5 -f '%Y-%m' -2015-05 -$ dconv -i '%_b%_y' Z2 -f '%Y-%m' +$ dconv -i '%_b%_y' K7 -f '%Y-%m' -b 2016-01-01 +2017-05 +$ dconv -i '%_b%_y' Z2 -f '%Y-%m' -b 2016-01-01 2022-12 $ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/dateutils-0.3.4/version.mk new/dateutils-0.3.5/version.mk --- old/dateutils-0.3.4/version.mk 2015-08-28 14:07:53.000000000 +0200 +++ new/dateutils-0.3.5/version.mk 2016-01-22 12:03:34.000000000 +0100 @@ -1,3 +1,3 @@ -VERSION = 0.3.4 +VERSION = 0.3.5 PACKAGE_VERSION = $(VERSION) PACKAGE_STRING = $(PACKAGE) $(VERSION)
