Codebase list dateutils / HEAD
Import Debian changes 0.4.10-1 dateutils (0.4.10-1) unstable; urgency=medium * New upstream release * fix for failing test dzone.008.ctst (Closes: #1028864) * debian/control: bump standard to 4.6.2 (no changes) Thorsten Alteholz 1 year, 2 months ago
1795 changed file(s) with 16526 addition(s) and 15253 deletion(s). Raw diff Collapse all Expand all
4242 script:
4343 - if [ "$CHECK" = "normal" ]; then
4444 ./configure --enable-contrib || { cat config.log; false; } &&
45 make -j2 clean && make -j2 check;
45 make -j2 clean && make -j2 check || { cat test/test-suite.log; false; } ;
4646 fi
4747 - if [ "$CHECK" = "distcheck" ]; then
4848 ./configure --enable-tzmap-fetch || { cat config.log; false; } &&
49 make -j2 all && make -j2 distcheck;
49 make -j2 all && make -j1 distcheck;
5050 fi
5151
5252 after_script:
8787 deploy:
8888 provider: releases
8989 api_key:
90 secure: WRTz8MTXtkK69Hk/E1iXj4wXxko60vXgmcuW0RaLeRpmphUN9emVUu791W7fQeqx4j/GM32vwGPDa0jdm4dQ2s4ptNpEliisOpx/sGwJsugmeQm/5lSwTMuDwSWoIdWV7HRwsaWodXSzrxFBbZ9g+peTjz28geXp7lDtUCQbWC0=
90 secure: "Ro2TJvcaJnA3h4YPedB7YFzvxjB93OTdzChu+gj4mvVvf8s7GFBYiTeieTtgeAVioOQGP/9Aovra7swtd9kLUT3GeV1i9G8PSG2chJstMpvM2L5/W71b9vjS5PkmvlLIKvmK31PXmU9EAdxy4aFIETZNC11bOOknaKDaWt87EIE="
9191 file_glob: true
9292 file: dateutils-*.tar.xz
9393 skip_cleanup: true
94 draft: true
9495 on:
9596 tags: true
1515 if test "$(MAKECMDGOALS)" != "am--refresh"; then \
1616 $(MAKE) -C "$(top_builddir)/build-aux" $(MAKECMDGOALS); \
1717 PATH="$(top_builddir)/build-aux:$${PATH}" \
18 yuck scmver --ignore-noscm -o $@ --reference $^; \
18 $(YUCK) scmver --ignore-noscm -o $@ --reference $^; \
1919 if test $$? -eq 3 -a -n "$(_dist-target_p)"; then \
2020 exec $(MAKE) $(MAKECMDGOALS); \
2121 fi; \
156156 resume;
157157
158158 dnl TYPE actions
159 pushdef([yuck_flag_action], [tgt->yuck_slot([$1], [$2])++; goto xtra_chk])dnl
159 pushdef([yuck_flag_action], [tgt->yuck_slot([$1], [$2])++; ifdef([YOPT_ALLOW_UNKNOWN_DASHDASH], [], [goto xtra_chk])])dnl
160160 pushdef([yuck_arg_action], [tgt->yuck_slot([$1], [$2]) = arg ?: argv[[++i]]])dnl
161161 pushdef([yuck_arg_opt_action], [tgt->yuck_slot([$1], [$2]) = arg ?: YUCK_OPTARG_NONE])dnl
162162 pushdef([yuck_arg_mul_action], [tgt->yuck_slot([$1], [$2]) =
270270 foreachq([__CMD], yuck_umbcmds(), [coroutine(yuck_cmd(defn([__CMD]))[_shortopt])
271271 {
272272 switch (*op) {
273 case '0':
274 case '1':
275 case '2':
276 case '3':
277 case '4':
278 case '5':
279 case '6':
280 case '7':
281 case '8':
282 case '9':
283 if (op[[-1]] == '-') {
284 /* literal treatment of numeral */
285 resume_at(arg);
273 default:
274 /* again for clarity */
275 switch (*op) {
276 case '0':
277 case '1':
278 case '2':
279 case '3':
280 case '4':
281 case '5':
282 case '6':
283 case '7':
284 case '8':
285 case '9':
286 if (op[[-1]] == '-') {
287 /* literal treatment of numeral */
288 resume_at(arg);
289 }
290 /* fallthrough */
291 default:
292 break;
286293 }
287 /*@fallthrough@*/
288 default:
289294 divert(1);
290295 ifdef([YOPT_ALLOW_UNKNOWN_DASH], [dnl
291296 resume_at(arg);
292297 ], [dnl
293 fprintf(stderr, "YUCK_UMB_STR: invalid option -%c\n", *op);
298 fprintf(stderr, "YUCK_UMB_STR: unrecognized option -%c\n", *op);
294299 resume_at(failure);
295300 ])dnl
296301
00 /*** yuck-scmver.c -- snarf versions off project cwds
11 *
2 * Copyright (C) 2013-2018 Sebastian Freundt
2 * Copyright (C) 2013-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
9898 return;
9999 }
100100
101 static inline __attribute__((const, pure, always_inline)) char*
101 static inline __attribute__((const, always_inline)) char*
102102 deconst(const char *s)
103103 {
104104 union {
00 /*** yuck-version.h -- snarf versions off project cwds
11 *
2 * Copyright (C) 2013-2018 Sebastian Freundt
2 * Copyright (C) 2013-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** yuck.c -- generate umbrella commands
11 *
2 * Copyright (C) 2013-2018 Sebastian Freundt
2 * Copyright (C) 2013-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
6464 #include <sys/wait.h>
6565 #include <sys/stat.h>
6666 #include <sys/types.h>
67 #include <sys/sysctl.h>
67 #if defined __FreeBSD__
68 # include <sys/sysctl.h>
69 #endif /* __FreeBSD__ */
6870 #include <time.h>
71 #if defined __APPLE__
72 # include <mach-o/dyld.h>
73 #endif /* __APPLE__ */
6974 #if defined WITH_SCMVER
7075 # include <yuck-scmver.h>
7176 #endif /* WITH_SCMVER */
399404 static void yield_inter(const bbuf_t x[static 1U]);
400405 static void yield_setopt(yopt_t);
401406
407 static struct {
408 unsigned int no_auto_help:1U;
409 unsigned int no_auto_version:1U;
410 unsigned int no_auto_action:1U;
411 unsigned int preserve:1U;
412 } global_tweaks;
413
402414 #define DEBUG(args...)
403415
404416 static int
527539 static bbuf_t desc[1U];
528540 static bbuf_t lopt[1U];
529541 static bbuf_t larg[1U];
542 static size_t pos = 0U;
530543 const char *sp = line;
531544 const char *const ep = line + llen;
532545
543556 sp += 7U;
544557 }
545558 }
546 if ((sp - line >= 8 || (sp - line >= 1 && *sp != '-')) &&
559 if ((*sp == '\n' || sp - line >= 8 || (sp - line >= 1 && *sp != '-')) &&
547560 (cur_opt.sopt || cur_opt.lopt)) {
548561 /* should be description */
549562 goto desc;
665678 for (; sp < ep && isspace(*sp); sp++);
666679 /* don't free but reset the old guy */
667680 desc->n = 0U;
681 pos = sp - line;
668682 desc:
669683 with (size_t sz = llen - (sp - line)) {
670 if (LIKELY(sz > 0U)) {
671 cur_opt.desc = bbuf_cat(desc, sp, sz);
684 ssize_t temp = (sp - line) - pos;
685 if (temp < 0) {
686 temp = 0;
687 }
688 if (!global_tweaks.preserve) {
689 if (LIKELY(sz > 0U)) {
690 cur_opt.desc = bbuf_cat(desc, sp, sz);
691 }
692 } else if (LIKELY(sz > 0)) {
693 cur_opt.desc = bbuf_cat(desc, sp - temp, sz + temp);
694 } else {
695 cur_opt.desc = bbuf_cat(desc, "\n", 1U);
672696 }
673697 }
674698 return 1;
731755 static const char nul_str[] = "";
732756 static const char *const auto_types[] = {"auto", "flag"};
733757 static FILE *outf;
734
735 static struct {
736 unsigned int no_auto_flags:1U;
737 unsigned int no_auto_action:1U;
738 } global_tweaks;
739758
740759 static void
741760 __identify(char *restrict idn)
894913 idn, arg->desc);
895914 }
896915 /* insert auto-help and auto-version */
897 if (!global_tweaks.no_auto_flags) {
916 if (!global_tweaks.no_auto_help) {
898917 yield_help();
918 }
919 if (!global_tweaks.no_auto_version) {
899920 yield_version();
900921 }
901922 }
15771598 } else if (UNLIKELY((ofp = mkftempp(&ofn, sizeof(P_tmpdir))) == NULL)) {
15781599 error("Cannot open output file `%s', ignoring", ofn);
15791600 *inc = NULL;
1601 fclose(fp);
15801602 return -1;
15811603 }
15821604
17271749 char *deffn = _deffn;
17281750 int rc = 0;
17291751
1730 if (argi->no_auto_flags_flag) {
1731 global_tweaks.no_auto_flags = 1U;
1732 }
1733 if (argi->no_auto_actions_flag) {
1734 global_tweaks.no_auto_action = 1U;
1735 }
1752 global_tweaks.no_auto_help =
1753 !!(argi->no_auto_flags_flag + argi->no_auto_help_flag);
1754 global_tweaks.no_auto_version =
1755 !!(argi->no_auto_flags_flag + argi->no_auto_version_flag);
1756 global_tweaks.no_auto_action = !!argi->no_auto_actions_flag;
1757 global_tweaks.preserve = !!argi->preserve_flag;
17361758
17371759 /* deal with the output first */
17381760 if (UNLIKELY((outf = mkftempp(&deffn, sizeof(P_tmpdir))) == NULL)) {
18731895 {
18741896 int rc = 0;
18751897
1876 if (argi->no_auto_flags_flag) {
1877 global_tweaks.no_auto_flags = 1U;
1878 }
1879 if (argi->no_auto_actions_flag) {
1880 global_tweaks.no_auto_action = 1U;
1881 }
1898 global_tweaks.no_auto_help =
1899 !!(argi->no_auto_flags_flag + argi->no_auto_help_flag);
1900 global_tweaks.no_auto_version =
1901 !!(argi->no_auto_flags_flag + argi->no_auto_version_flag);
1902 global_tweaks.no_auto_action = !!argi->no_auto_actions_flag;
1903 global_tweaks.preserve = !!argi->preserve_flag;
18821904
18831905 /* bang to stdout or argi->output_arg */
18841906 with (const char *outfn = argi->output_arg) {
1212
1313 -H, --header=FILE Also generate a header file.
1414 --no-auto-flags Do not add auto flags (--help, --version).
15 --no-auto-help Do not add auto --help flag
16 --no-auto-version Do not add auto --version flag
1517 --no-auto-actions Do not automatically handle auto flags.
1618 --version=VERSION Hardwire version number.
1719 --custom=FILE Include custom macros from FILE.
20 -p, --preserve Preserve indentation and newlines.
1821
1922
2023 ## GENMAN
3639 if omitted.
3740
3841 --no-auto-flags Do not add auto flags (--help, --version).
42 --no-auto-help Do not add auto --help flag
43 --no-auto-version Do not add auto --version flag
3944 --no-auto-actions Do not automatically handle auto flags.
4045 --version=VERSION Hardwire version number.
46 -p, --preserve Preserve indentation and newlines.
4147
4248
4349 ## VER
22 dnl -------------------------------------------------------------------------
33
44 AC_PREREQ([2.63])
5 AC_INIT([dateutils], [0.4.5], [https://github.com/hroptatyr/dateutils/issues])
5 AC_INIT([dateutils], [0.4.10], [https://github.com/hroptatyr/dateutils/issues])
66 AC_CONFIG_AUX_DIR([build-aux])
77 AC_CONFIG_HEADER([src/config.h])
88 AC_CONFIG_MACRO_DIR([m4])
1414
1515 AC_COPYRIGHT([dnl
1616 #### Configuration script for dateutils and friends.
17 #### Copyright (C) 2011-2018 Sebastian Freundt
17 #### Copyright (C) 2011-2022 Sebastian Freundt
1818
1919 ### Don't edit this script!
2020 ### This script was automatically generated by the `autoconf' program
211211 cntrb_apps="none"
212212 fi
213213
214 AX_CHECK_YUCK
214 AX_CHECK_YUCK([yes])
215215
216216 dnl must come after all AC_LINK_IFELSE clauses
217217 ## check for the ldflags
00 /*** tzconv.c -- convert matlab dates between timezones
11 *
2 * Copyright (C) 2013-2018 Sebastian Freundt
2 * Copyright (C) 2013-2019 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
1010 % Output Arguments:
1111 % d - vector of dates in the result
1212 %
13 % Copyright (C) 2013 Sebastian Freundt <freundt@ga-group.nl>
13 % Copyright (C) 2019 Sebastian Freundt <freundt@ga-group.nl>
1414 %
1515 % This file is part of dateutils
0 dateutils (0.4.10-1) unstable; urgency=medium
1
2 * New upstream release
3 * fix for failing test dzone.008.ctst (Closes: #1028864)
4 * debian/control: bump standard to 4.6.2 (no changes)
5
6 -- Thorsten Alteholz <debian@alteholz.de> Thu, 02 Feb 2023 18:36:25 +0100
7
08 dateutils (0.4.5-2) unstable; urgency=medium
19
210 * debian/control: use dh13
1313 tzdata,
1414 texinfo,
1515 autoconf-archive
16 Standards-Version: 4.6.0
16 Standards-Version: 4.6.2
1717 Homepage: http://www.fresse.org/dateutils
1818 Vcs-Browser: https://salsa.debian.org/alteholz/dateutils
1919 Vcs-Git: https://salsa.debian.org/alteholz/dateutils.git
+0
-154
debian/patches/0001-Use-unsigned-type-for-leap-second-conversion.patch less more
0 From 6f653805ee528e9068d3108af7227dea685f88ed Mon Sep 17 00:00:00 2001
1 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= <bernhardu@mailbox.org>
2 Date: Tue, 7 May 2019 19:13:21 +0200
3 Subject: [PATCH] Use unsigned type for leap second conversion.
4
5 https://bugs.debian.org/907348
6 ---
7 lib/ltrcc.c | 40 ++++++++++++++++++++--------------------
8 1 file changed, 20 insertions(+), 20 deletions(-)
9
10 diff --git a/lib/ltrcc.c b/lib/ltrcc.c
11 index 20c0e38..11c8a74 100644
12 --- a/lib/ltrcc.c
13 +++ b/lib/ltrcc.c
14 @@ -55,10 +55,10 @@
15 #include "version.c"
16
17
18 -static __attribute__((pure, const)) long int
19 -ntp_to_unix_epoch(long int x)
20 +static __attribute__((pure, const)) unsigned long int
21 +ntp_to_unix_epoch(unsigned long int x)
22 {
23 - return x - 25567L * 86400L;
24 + return x - 25567U * 86400U;
25 }
26
27
28 @@ -68,7 +68,7 @@ ntp_to_unix_epoch(long int x)
29 static int
30 pr_line_corr(const char *line, size_t llen, va_list UNUSED(vap))
31 {
32 - static long int cor;
33 + static unsigned long int cor;
34 char *sp, *ep;
35
36 if (llen == PROLOGUE) {
37 @@ -96,7 +96,7 @@ const int32_t %s[] = {\n\
38 /* otherwise process */
39 if ((sp = memchr(line, '\t', llen)) == NULL) {
40 return -1;
41 - } else if ((ep = NULL, cor = strtol(++sp, &ep, 10), ep == NULL)) {
42 + } else if ((ep = NULL, cor = strtoul(++sp, &ep, 10), ep == NULL || cor == ULONG_MAX)) {
43 return -1;
44 }
45
46 @@ -108,10 +108,10 @@ const int32_t %s[] = {\n\
47 static int
48 pr_line_d(const char *line, size_t llen, va_list vap)
49 {
50 - static long int cor;
51 + static unsigned long int cor;
52 struct dt_d_s d;
53 dt_dtyp_t typ;
54 - long int val;
55 + unsigned long int val;
56 int colp;
57 char *ep;
58
59 @@ -155,7 +155,7 @@ const uint32_t %s[] = {\n\
60 return 0;
61 }
62 /* otherwise process */
63 - if ((ep = NULL, val = strtol(line, &ep, 10), ep == NULL)) {
64 + if ((ep = NULL, val = strtoul(line, &ep, 10), ep == NULL || val == ULONG_MAX)) {
65 return -1;
66 }
67
68 @@ -164,7 +164,7 @@ const uint32_t %s[] = {\n\
69 d = dt_dconv(typ, d);
70
71 if (!colp) {
72 - if ((cor = strtol(ep, &ep, 10), ep == NULL)) {
73 + if ((cor = strtoul(ep, &ep, 10), ep == NULL || val == ULONG_MAX)) {
74 return -1;
75 }
76 /* just output the line then */
77 @@ -179,9 +179,9 @@ const uint32_t %s[] = {\n\
78 static int
79 pr_line_dt(const char *line, size_t llen, va_list vap)
80 {
81 - static long int cor;
82 + static unsigned long int cor;
83 dt_dtyp_t __attribute__((unused)) typ;
84 - long int val;
85 + unsigned long int val;
86 int colp;
87 char *ep;
88
89 @@ -225,7 +225,7 @@ const int32_t %s[] = {\n\
90 return 0;
91 }
92 /* otherwise process */
93 - if ((ep = NULL, val = strtol(line, &ep, 10), ep == NULL)) {
94 + if ((ep = NULL, val = strtoul(line, &ep, 10), ep == NULL || val == ULONG_MAX)) {
95 return -1;
96 }
97
98 @@ -234,15 +234,15 @@ const int32_t %s[] = {\n\
99 val = ntp_to_unix_epoch(val);
100
101 if (!colp) {
102 - if ((cor = strtol(ep, &ep, 10), ep == NULL)) {
103 + if ((cor = strtoul(ep, &ep, 10), ep == NULL || cor == ULONG_MAX)) {
104 return -1;
105 }
106 /* just output the line then */
107 - fprintf(stdout, "\t{0x%xU/* %li */, %li},\n",
108 - (uint32_t)val, val, cor);
109 + fprintf(stdout, "\t{0x%lxU/* %li */, %li},\n",
110 + val, val, cor);
111 } else {
112 /* column-oriented mode */
113 - fprintf(stdout, "\t0x%xU/* %li */,\n", (uint32_t)val, val);
114 + fprintf(stdout, "\t0x%lxU/* %li */,\n", val, val);
115 }
116 return 0;
117 }
118 @@ -250,12 +250,12 @@ const int32_t %s[] = {\n\
119 static int
120 pr_line_t(const char *line, size_t llen, va_list vap)
121 {
122 - static long int cor;
123 + static unsigned long int cor;
124 struct dt_t_s t = dt_t_initialiser();
125 dt_dtyp_t typ;
126 int colp;
127 char *ep;
128 - long int val;
129 + unsigned long int val;
130
131 /* extract type from inner list */
132 typ = va_arg(vap, dt_dtyp_t);
133 @@ -292,7 +292,7 @@ const uint32_t %s[] = {\n\
134 return 0;
135 }
136 /* otherwise process */
137 - if ((ep = NULL, val = strtol(line, &ep, 10), ep == NULL)) {
138 + if ((ep = NULL, val = strtoul(line, &ep, 10), ep == NULL || val == ULONG_MAX)) {
139 return -1;
140 }
141 val--;
142 @@ -303,7 +303,7 @@ const uint32_t %s[] = {\n\
143 t.hms.h = val % 24L;
144
145 /* read correction */
146 - if ((val = strtol(ep, &ep, 10), ep == NULL)) {
147 + if ((val = strtoul(ep, &ep, 10), ep == NULL || val == ULONG_MAX)) {
148 return -1;
149 }
150
151 --
152 2.20.1
153
11 Author: Chris Lamb <lamby@debian.org>
22 Last-Update: 2016-08-22
33
4 Index: dateutils-0.4.5/build-aux/yuck.c
4 Index: dateutils-0.4.10/build-aux/yuck.c
55 ===================================================================
6 --- dateutils-0.4.5.orig/build-aux/yuck.c 2018-10-17 12:00:09.841641697 +0200
7 +++ dateutils-0.4.5/build-aux/yuck.c 2018-10-17 12:00:09.833641697 +0200
8 @@ -1404,6 +1404,38 @@
6 --- dateutils-0.4.10.orig/build-aux/yuck.c 2023-02-02 18:37:22.603100924 +0000
7 +++ dateutils-0.4.10/build-aux/yuck.c 2023-02-02 18:37:22.591100073 +0000
8 @@ -1425,6 +1425,38 @@
99 return rc;
1010 }
1111
4444
4545 static int
4646 wr_pre(void)
47 @@ -1487,7 +1519,7 @@
47 @@ -1508,7 +1540,7 @@
4848 char buf[32U];
4949 int rc = 0;
5050
+0
-13
debian/patches/0003-remove-sysctl.patch less more
0 Description: sys/sysctl.h is deprecated and only used for *BSD*
1 Index: dateutils-0.4.5/build-aux/yuck.c
2 ===================================================================
3 --- dateutils-0.4.5.orig/build-aux/yuck.c 2021-10-27 20:38:12.000000000 +0000
4 +++ dateutils-0.4.5/build-aux/yuck.c 2021-10-27 20:43:45.271016759 +0000
5 @@ -65,7 +65,6 @@
6 #include <sys/wait.h>
7 #include <sys/stat.h>
8 #include <sys/types.h>
9 -#include <sys/sysctl.h>
10 #include <time.h>
11 #if defined WITH_SCMVER
12 # include <yuck-scmver.h>
00 Description: build tools with the compiler of the build architecture
11 instead of the host architecture
22 (needed to avoid FTCBFS)
3 Forwarded: not-needed
34 Author: Helmut Grohne <helmut@subdivi.de>
45 --- dateutils-0.4.5.orig/m4/yuck.m4
56 +++ dateutils-0.4.5/m4/yuck.m4
0 commit 841c635bf283e4b023bd98fbff9ebda1f340b024
1 Author: Sebastian Freundt <freundt@ga-group.nl>
2 Date: Mon Dec 12 07:53:31 2022 +0000
3
4 test, follow tzdata's research on past transitions, fixes issue #148
5
6 Singapore's 1981-12-31 change was at 16:00 UTC (23:30 local time),
7 not 24:00 local time. (Thanks to Geoff Clare via Robert Elz)
8
9 diff --git a/test/dzone.008.ctst b/test/dzone.008.ctst
10 index 94d8017e..758401b5 100644
11 --- a/test/dzone.008.ctst
12 +++ b/test/dzone.008.ctst
13 @@ -1,7 +1,7 @@
14 #!/usr/bin/clitosis ## -*- shell-script -*-
15
16 $ dzone --prev Asia/Singapore 2014-02-22
17 -1982-01-01T00:00:00+07:30 <- 1982-01-01T00:30:00+08:00 Asia/Singapore
18 +1981-12-31T23:30:00+07:30 <- 1982-01-01T00:00:00+08:00 Asia/Singapore
19 $
20
21 ## dzone.008.ctst ends here
0 commit 35041f4d9f06f94e4e408a3a12be237d4aa9ef44
1 Author: Sebastian Freundt <freundt@ga-group.nl>
2 Date: Mon Dec 12 08:01:42 2022 +0000
3
4 test, revert, do not use Singapore for testing previous transitions
5
6 diff --git a/test/dzone.008.ctst b/test/dzone.008.ctst
7 index 758401b5..c8c9daa9 100644
8 --- a/test/dzone.008.ctst
9 +++ b/test/dzone.008.ctst
10 @@ -1,7 +1,7 @@
11 #!/usr/bin/clitosis ## -*- shell-script -*-
12
13 -$ dzone --prev Asia/Singapore 2014-02-22
14 -1981-12-31T23:30:00+07:30 <- 1982-01-01T00:00:00+08:00 Asia/Singapore
15 +$ dzone --prev Asia/Jakarta
16 +1964-01-01T00:00:00+07:30 <- 1963-12-31T23:30:00+07:00 Asia/Jakarta
17 $
18
19 ## dzone.008.ctst ends here
00 0001-do-not-use-march-native-compiler-flags.diff
11 0002-reproducible-build.diff
2 0001-Use-unsigned-type-for-leap-second-conversion.patch
3 0003-remove-sysctl.patch
42 #build fails with this patch: 0004-cross.patch
3 0005-a-fix-for-dzone.008.patch
4 0005-b-use-jakarta-instead-of-singapore-in-dzone.008.patch
0 Bug-Database: https://github.com/hroptatyr/dateutils/issues
1 Bug-Submit: https://github.com/hroptatyr/dateutils/issues/new
2 Repository: https://github.com/hroptatyr/dateutils.git
3 Repository-Browse: https://github.com/hroptatyr/dateutils
2626 dateutils_H2M_EX =
2727
2828 dconv_EXAMPLES =
29 dconv_EXAMPLES += $(top_srcdir)/test/dconv.001.clit
30 dconv_EXAMPLES += $(top_srcdir)/test/dconv.002.clit
31 dconv_EXAMPLES += $(top_srcdir)/test/dconv.003.clit
32 dconv_EXAMPLES += $(top_srcdir)/test/dconv.004.clit
33 dconv_EXAMPLES += $(top_srcdir)/test/tconv.001.clit
34 dconv_EXAMPLES += $(top_srcdir)/test/tconv.002.clit
35 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.001.clit
36 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.002.clit
37 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.011.clit
38 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.012.clit
39 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.014.clit
29 dconv_EXAMPLES += $(top_srcdir)/test/dconv.001.ctst
30 dconv_EXAMPLES += $(top_srcdir)/test/dconv.002.ctst
31 dconv_EXAMPLES += $(top_srcdir)/test/dconv.003.ctst
32 dconv_EXAMPLES += $(top_srcdir)/test/dconv.004.ctst
33 dconv_EXAMPLES += $(top_srcdir)/test/tconv.001.ctst
34 dconv_EXAMPLES += $(top_srcdir)/test/tconv.002.ctst
35 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.001.ctst
36 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.002.ctst
37 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.011.ctst
38 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.012.ctst
39 dconv_EXAMPLES += $(top_srcdir)/test/dtconv.014.ctst
4040 dateutils_EXAMPLES += $(dconv_EXAMPLES)
4141 dateutils_H2M_EX += dconv.h2m
4242
4343 dseq_EXAMPLES =
44 dseq_EXAMPLES += $(top_srcdir)/test/dseq.01.clit
45 dseq_EXAMPLES += $(top_srcdir)/test/dseq.02.clit
46 dseq_EXAMPLES += $(top_srcdir)/test/dseq.03.clit
47 dseq_EXAMPLES += $(top_srcdir)/test/dseq.04.clit
48 dseq_EXAMPLES += $(top_srcdir)/test/dseq.05.clit
49 dseq_EXAMPLES += $(top_srcdir)/test/dseq.06.clit
50 dseq_EXAMPLES += $(top_srcdir)/test/dseq.07.clit
51 dseq_EXAMPLES += $(top_srcdir)/test/dseq.08.clit
52 dseq_EXAMPLES += $(top_srcdir)/test/dseq.09.clit
53 dseq_EXAMPLES += $(top_srcdir)/test/dseq.10.clit
54 dseq_EXAMPLES += $(top_srcdir)/test/dseq.11.clit
55 dseq_EXAMPLES += $(top_srcdir)/test/dseq.12.clit
56 dseq_EXAMPLES += $(top_srcdir)/test/dseq.13.clit
57 dseq_EXAMPLES += $(top_srcdir)/test/tseq.01.clit
58 dseq_EXAMPLES += $(top_srcdir)/test/tseq.02.clit
59 dseq_EXAMPLES += $(top_srcdir)/test/tseq.03.clit
60 dseq_EXAMPLES += $(top_srcdir)/test/tseq.04.clit
44 dseq_EXAMPLES += $(top_srcdir)/test/dseq.01.ctst
45 dseq_EXAMPLES += $(top_srcdir)/test/dseq.02.ctst
46 dseq_EXAMPLES += $(top_srcdir)/test/dseq.03.ctst
47 dseq_EXAMPLES += $(top_srcdir)/test/dseq.04.ctst
48 dseq_EXAMPLES += $(top_srcdir)/test/dseq.05.ctst
49 dseq_EXAMPLES += $(top_srcdir)/test/dseq.06.ctst
50 dseq_EXAMPLES += $(top_srcdir)/test/dseq.07.ctst
51 dseq_EXAMPLES += $(top_srcdir)/test/dseq.08.ctst
52 dseq_EXAMPLES += $(top_srcdir)/test/dseq.09.ctst
53 dseq_EXAMPLES += $(top_srcdir)/test/dseq.10.ctst
54 dseq_EXAMPLES += $(top_srcdir)/test/dseq.11.ctst
55 dseq_EXAMPLES += $(top_srcdir)/test/dseq.12.ctst
56 dseq_EXAMPLES += $(top_srcdir)/test/dseq.13.ctst
57 dseq_EXAMPLES += $(top_srcdir)/test/tseq.01.ctst
58 dseq_EXAMPLES += $(top_srcdir)/test/tseq.02.ctst
59 dseq_EXAMPLES += $(top_srcdir)/test/tseq.03.ctst
60 dseq_EXAMPLES += $(top_srcdir)/test/tseq.04.ctst
6161 dateutils_EXAMPLES += $(dseq_EXAMPLES)
6262 dateutils_H2M_EX += dseq.h2m
6363
6464 dadd_EXAMPLES =
65 dadd_EXAMPLES += $(top_srcdir)/test/dadd.001.clit
66 dadd_EXAMPLES += $(top_srcdir)/test/dadd.002.clit
67 dadd_EXAMPLES += $(top_srcdir)/test/dadd.003.clit
68 dadd_EXAMPLES += $(top_srcdir)/test/dadd.004.clit
69 dadd_EXAMPLES += $(top_srcdir)/test/tadd.001.clit
70 dadd_EXAMPLES += $(top_srcdir)/test/tadd.002.clit
71 dadd_EXAMPLES += $(top_srcdir)/test/tadd.003.clit
65 dadd_EXAMPLES += $(top_srcdir)/test/dadd.001.ctst
66 dadd_EXAMPLES += $(top_srcdir)/test/dadd.002.ctst
67 dadd_EXAMPLES += $(top_srcdir)/test/dadd.003.ctst
68 dadd_EXAMPLES += $(top_srcdir)/test/dadd.004.ctst
69 dadd_EXAMPLES += $(top_srcdir)/test/tadd.001.ctst
70 dadd_EXAMPLES += $(top_srcdir)/test/tadd.002.ctst
71 dadd_EXAMPLES += $(top_srcdir)/test/tadd.003.ctst
7272 dateutils_EXAMPLES += $(dadd_EXAMPLES)
7373 dateutils_H2M_EX += dadd.h2m
7474
7575 dtest_EXAMPLES =
76 dtest_EXAMPLES += $(top_srcdir)/test/dtest.001.clit
77 dtest_EXAMPLES += $(top_srcdir)/test/dtest.002.clit
78 dtest_EXAMPLES += $(top_srcdir)/test/dtest.003.clit
79 dtest_EXAMPLES += $(top_srcdir)/test/dtest.004.clit
80 dtest_EXAMPLES += $(top_srcdir)/test/dtest.005.clit
81 dtest_EXAMPLES += $(top_srcdir)/test/ttest.001.clit
82 dtest_EXAMPLES += $(top_srcdir)/test/ttest.002.clit
83 dtest_EXAMPLES += $(top_srcdir)/test/ttest.003.clit
84 dtest_EXAMPLES += $(top_srcdir)/test/ttest.004.clit
85 dtest_EXAMPLES += $(top_srcdir)/test/dttest.010.clit
86 dtest_EXAMPLES += $(top_srcdir)/test/dttest.002.clit
87 dtest_EXAMPLES += $(top_srcdir)/test/dttest.003.clit
88 dtest_EXAMPLES += $(top_srcdir)/test/dttest.004.clit
89 dtest_EXAMPLES += $(top_srcdir)/test/dttest.005.clit
76 dtest_EXAMPLES += $(top_srcdir)/test/dtest.001.ctst
77 dtest_EXAMPLES += $(top_srcdir)/test/dtest.002.ctst
78 dtest_EXAMPLES += $(top_srcdir)/test/dtest.003.ctst
79 dtest_EXAMPLES += $(top_srcdir)/test/dtest.004.ctst
80 dtest_EXAMPLES += $(top_srcdir)/test/dtest.005.ctst
81 dtest_EXAMPLES += $(top_srcdir)/test/ttest.001.ctst
82 dtest_EXAMPLES += $(top_srcdir)/test/ttest.002.ctst
83 dtest_EXAMPLES += $(top_srcdir)/test/ttest.003.ctst
84 dtest_EXAMPLES += $(top_srcdir)/test/ttest.004.ctst
85 dtest_EXAMPLES += $(top_srcdir)/test/dttest.010.ctst
86 dtest_EXAMPLES += $(top_srcdir)/test/dttest.002.ctst
87 dtest_EXAMPLES += $(top_srcdir)/test/dttest.003.ctst
88 dtest_EXAMPLES += $(top_srcdir)/test/dttest.004.ctst
89 dtest_EXAMPLES += $(top_srcdir)/test/dttest.005.ctst
9090 dateutils_EXAMPLES += $(dtest_EXAMPLES)
9191 dateutils_H2M_EX += dtest.h2m
9292
9393 ddiff_EXAMPLES =
94 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.001.clit
95 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.002.clit
96 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.003.clit
97 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.004.clit
98 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.005.clit
99 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.006.clit
100 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.008.clit
101 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.001.clit
102 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.002.clit
103 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.003.clit
104 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.008.clit
105 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.006.clit
106 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.007.clit
107 ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.001.clit
108 ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.003.clit
109 ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.011.clit
110 ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.012.clit
94 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.001.ctst
95 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.002.ctst
96 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.003.ctst
97 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.004.ctst
98 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.005.ctst
99 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.006.ctst
100 ddiff_EXAMPLES += $(top_srcdir)/test/ddiff.008.ctst
101 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.001.ctst
102 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.002.ctst
103 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.003.ctst
104 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.008.ctst
105 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.006.ctst
106 ddiff_EXAMPLES += $(top_srcdir)/test/tdiff.007.ctst
107 ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.001.ctst
108 ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.003.ctst
109 ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.011.ctst
110 ddiff_EXAMPLES += $(top_srcdir)/test/dtdiff.012.ctst
111111 dateutils_EXAMPLES += $(ddiff_EXAMPLES)
112112 dateutils_H2M_EX += ddiff.h2m
113113
114114 dgrep_EXAMPLES =
115 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.001.clit
116 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.002.clit
117 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.006.clit
118 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.007.clit
119 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.008.clit
120 dgrep_EXAMPLES += $(top_srcdir)/test/tgrep.001.clit
121 dgrep_EXAMPLES += $(top_srcdir)/test/tgrep.002.clit
122 dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.001.clit
123 dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.002.clit
124 dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.005.clit
125 dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.006.clit
115 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.001.ctst
116 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.002.ctst
117 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.006.ctst
118 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.007.ctst
119 dgrep_EXAMPLES += $(top_srcdir)/test/dgrep.008.ctst
120 dgrep_EXAMPLES += $(top_srcdir)/test/tgrep.001.ctst
121 dgrep_EXAMPLES += $(top_srcdir)/test/tgrep.002.ctst
122 dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.001.ctst
123 dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.002.ctst
124 dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.005.ctst
125 dgrep_EXAMPLES += $(top_srcdir)/test/dtgrep.006.ctst
126126 dateutils_EXAMPLES += $(dgrep_EXAMPLES)
127127 dateutils_H2M_EX += dgrep.h2m
128128
129129 dround_EXAMPLES =
130 dround_EXAMPLES += $(top_srcdir)/test/dround.002.clit
131 dround_EXAMPLES += $(top_srcdir)/test/dround.003.clit
132 dround_EXAMPLES += $(top_srcdir)/test/tround.003.clit
133 dround_EXAMPLES += $(top_srcdir)/test/tround.002.clit
130 dround_EXAMPLES += $(top_srcdir)/test/dround.002.ctst
131 dround_EXAMPLES += $(top_srcdir)/test/dround.003.ctst
132 dround_EXAMPLES += $(top_srcdir)/test/tround.003.ctst
133 dround_EXAMPLES += $(top_srcdir)/test/tround.002.ctst
134134 dateutils_EXAMPLES += $(dround_EXAMPLES)
135135 dateutils_H2M_EX += dround.h2m
136136
137137 dzone_EXAMPLES =
138 dzone_EXAMPLES += $(top_srcdir)/test/dzone.001.clit
139 dzone_EXAMPLES += $(top_srcdir)/test/dzone.002.clit
140 dzone_EXAMPLES += $(top_srcdir)/test/dzone.003.clit
141 dzone_EXAMPLES += $(top_srcdir)/test/dzone.004.clit
138 dzone_EXAMPLES += $(top_srcdir)/test/dzone.001.ctst
139 dzone_EXAMPLES += $(top_srcdir)/test/dzone.002.ctst
140 dzone_EXAMPLES += $(top_srcdir)/test/dzone.003.ctst
141 dzone_EXAMPLES += $(top_srcdir)/test/dzone.004.ctst
142142 dateutils_EXAMPLES += $(dzone_EXAMPLES)
143143 dateutils_H2M_EX += dzone.h2m
144144
145145 dsort_EXAMPLES =
146 dsort_EXAMPLES += $(top_srcdir)/test/dsort.001.clit
147 dsort_EXAMPLES += $(top_srcdir)/test/dsort.002.clit
148 dsort_EXAMPLES += $(top_srcdir)/test/dsort.003.clit
149 dsort_EXAMPLES += $(top_srcdir)/test/dsort.004.clit
150 dsort_EXAMPLES += $(top_srcdir)/test/dsort.005.clit
151 dsort_EXAMPLES += $(top_srcdir)/test/dsort.006.clit
146 dsort_EXAMPLES += $(top_srcdir)/test/dsort.001.ctst
147 dsort_EXAMPLES += $(top_srcdir)/test/dsort.002.ctst
148 dsort_EXAMPLES += $(top_srcdir)/test/dsort.003.ctst
149 dsort_EXAMPLES += $(top_srcdir)/test/dsort.004.ctst
150 dsort_EXAMPLES += $(top_srcdir)/test/dsort.005.ctst
151 dsort_EXAMPLES += $(top_srcdir)/test/dsort.006.ctst
152152 dateutils_EXAMPLES += $(dsort_EXAMPLES)
153153 dateutils_H2M_EX += dsort.h2m
154154
155155 if HAVE_STRPTIME
156156 strptime_EXAMPLES =
157 strptime_EXAMPLES += $(top_srcdir)/test/strptime.001.clit
158 strptime_EXAMPLES += $(top_srcdir)/test/strptime.002.clit
157 strptime_EXAMPLES += $(top_srcdir)/test/strptime.001.ctst
158 strptime_EXAMPLES += $(top_srcdir)/test/strptime.002.ctst
159159 dateutils_EXAMPLES += $(strptime_EXAMPLES)
160160 dateutils_H2M_EX += strptime.h2m
161161 endif HAVE_STRPTIME
230230 built_mans += dsort.man
231231 built_mans += dtest.man
232232 built_mans += dzone.man
233 endif WITH_OLD_LINKS
233 else !WITH_OLD_LINKS
234 ## just for the tarball
235 EXTRA_DIST += dadd.manu
236 EXTRA_DIST += dconv.man
237 EXTRA_DIST += ddiff.mand
238 EXTRA_DIST += dgrep.man
239 EXTRA_DIST += dround.manu
240 EXTRA_DIST += dseq.manu
241 EXTRA_DIST += dsort.man
242 EXTRA_DIST += dtest.man
243 EXTRA_DIST += dzone.man
244 endif !WITH_OLD_LINKS
234245
235246 EXTRA_DIST += $(man1_MANS)
236247 EXTRA_DIST += $(dateutils_TEXINFOS)
246257 dsort.man: dsort.h2m
247258 dtest.man: dtest.h2m
248259 dzone.man: dzone.h2m
260
261 strptime.h2m: $(strptime_EXAMPLES)
262 dadd.h2m: $(dadd_EXAMPLES)
263 dconv.h2m: $(dconv_EXAMPLES)
264 ddiff.h2m: $(ddiff_EXAMPLES)
265 dgrep.h2m: $(dgrep_EXAMPLES)
266 dround.h2m: $(dround_EXAMPLES)
267 dseq.h2m: $(dseq_EXAMPLES)
268 dsort.h2m: $(dsort_EXAMPLES)
269 dtest.h2m: $(dtest_EXAMPLES)
270 dzone.h2m: $(dzone_EXAMPLES)
271
272 strptime.texi: $(strptime_EXAMPLES) dateutils.texi
273 dadd.texi: $(dadd_EXAMPLES) dateutils.texi
274 dconv.texi: $(dconv_EXAMPLES) dateutils.texi
275 ddiff.texi: $(ddiff_EXAMPLES) dateutils.texi
276 dgrep.texi: $(dgrep_EXAMPLES) dateutils.texi
277 dround.texi: $(dround_EXAMPLES) dateutils.texi
278 dseq.texi: $(dseq_EXAMPLES) dateutils.texi
279 dsort.texi: $(dsort_EXAMPLES) dateutils.texi
280 dtest.texi: $(dtest_EXAMPLES) dateutils.texi
281 dzone.texi: $(dzone_EXAMPLES) dateutils.texi
249282
250283 ## new file names
251284 TRAFO = sed 's/dadd/dateadd/g; s/dconv/dateconv/g; s/ddiff/datediff/g; s/dgrep/dategrep/g; s/dround/dateround/g; s/dseq/dateseq/g; s/dsort/datesort/g; s/dtest/datetest/g; s/dzone/datezone/g'
295328 SUFFIXES += .man
296329 .yuck.man:
297330 $(AM_V_GEN) PATH="$(top_builddir)/build-aux:$${PATH}" \
298 yuck$(EXEEXT) genman \
331 $(YUCK) genman \
299332 --package "$(PACKAGE_NAME)" \
300333 --info-page \
301334 -i "$(builddir)/format.th2m" \
307340 SUFFIXES += .mand
308341 .yuck.mand:
309342 $(AM_V_GEN) PATH="$(top_builddir)/build-aux:$${PATH}" \
310 yuck$(EXEEXT) genman \
343 $(YUCK) genman \
311344 --package "$(PACKAGE_NAME)" \
312345 --info-page \
313346 -i "$(builddir)/format.th2m" \
320353 SUFFIXES += .manu
321354 .yuck.manu:
322355 $(AM_V_GEN) PATH="$(top_builddir)/build-aux:$${PATH}" \
323 yuck$(EXEEXT) genman \
356 $(YUCK) genman \
324357 --package "$(PACKAGE_NAME)" \
325358 --info-page \
326359 -i "$(builddir)/format.th2m" \
333366 __bld_h2m_ = $(__bld_h2m_$(AM_DEFAULT_VERBOSITY))
334367 __bld_h2m_0 = @echo " GENH2M " $*;
335368 SUFFIXES += .h2m
336 .yuck.h2m: $(dateutils_EXAMPLES)
369 .yuck.h2m:
337370 $(my_bld_h2m) ${SHELL} \
338371 $(srcdir)/genh2m.sh $(top_builddir)/src/$* \
339372 $($*_EXAMPLES) > $@ || rm -f -- $@
342375 __bld_texi_ = $(__bld_texi_$(AM_DEFAULT_VERBOSITY))
343376 __bld_texi_0 = @echo " GENTEXI " $*;
344377 SUFFIXES += .texi
345 .yuck.texi: $(dateutils_EXAMPLES) dateutils.texi
378 .yuck.texi:
346379 $(my_bld_texi) ${SHELL} \
347380 $(srcdir)/gentexi.sh $(top_builddir)/src/$* \
348381 $($*_EXAMPLES) > $@ || test "$$?" = "2" || rm -f -- $@
2020 %g ISO week date year without the century (range 00 to 99)
2121 %G ISO week date year including the century
2222 %j Equivalent to %D
23 %m The month in the current calendar (range 00 to 19)
23 %m The month in the current calendar (range 00 to 12)
2424 %Q The quarter of the year (range Q1 to Q4)
2525 %q The number of the quarter (range 01 to 04)
2626 %s The number of seconds since the Epoch.
55 Tools that output absolute date/times also allow @samp{--zone=ZONE} to
66 globally declare that date/time output is to be converted into ZONE.
77
8 When input or output zones are omitted dates and timestamps are treated
9 as coming from the special (built-in) timezone UTC.
10
811 Due to the complexity in setting up and maintaining timezone reference
912 data, we decided to depart from our usual course and depend on the
1013 system's zoneinfo database. As a consequence, @samp{ZONE} can point to
1114 anything in the system's zoneinfo directory which is assumed to be in
1215 IANA format.
16
17 Zones @samp{UTC}, @samp{TAI}, and @samp{GPS} are treated specially.
18 Their rules and offsets are built-in and never read from the disk.
1319
1420 @heading Timezone maps
1521
8787 tzmap_CPPFLAGS += -DSTANDALONE
8888 BUILT_SOURCES += tzmap.yucc
8989
90 noinst_PROGRAMS += tzraw
91 tzraw_SOURCES = tzraw.c tzraw.h
92 tzraw_SOURCES += leaps.h leaps.c
93 tzraw_CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
94 tzraw_CPPFLAGS += -DSTANDALONE
95
9096 ## some tzmaps we'd like to support
9197 tzminfo_FILES =
9298 tzminfo_FILES += iata.tzminfo
141147 ## version rules
142148 version.c: version.c.in $(top_builddir)/.version
143149 $(AM_V_GEN) PATH="$(top_builddir)/build-aux:$${PATH}" \
144 yuck$(EXEEXT) scmver --ignore-noscm --force -o $@ \
150 $(YUCK) scmver --ignore-noscm --force -o $@ \
145151 --use-reference --reference $(top_builddir)/.version \
146152 $(srcdir)/version.c.in
147153
150156 SUFFIXES += .yucc
151157 .yuck.yucc:
152158 $(AM_V_GEN) PATH="$(top_builddir)/build-aux:$${PATH}" \
153 yuck$(EXEEXT) gen -o $@ $<
159 $(YUCK) gen -o $@ $<
154160
155161 ## gperf rule
156162 SUFFIXES += .gperf
00 /*** bizda.c -- guts for bizda dates
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5757 /* return the number of gregorian days B business days away from now,
5858 * where the first day is on a DOW. */
5959 int res = 0;
60
61 switch (dow) {
62 case DT_MONDAY:
63 case DT_TUESDAY:
64 case DT_WEDNESDAY:
65 case DT_THURSDAY:
66 case DT_FRIDAY:
67 res += GREG_DAYS_P_WEEK * (b / (signed int)DUWW_BDAYS_P_WEEK);
68 b %= (signed int)DUWW_BDAYS_P_WEEK;
69 break;
70 case DT_SATURDAY:
71 res++;
72 case DT_SUNDAY:
73 res++;
74 b--;
75 res += GREG_DAYS_P_WEEK * (b / (signed int)DUWW_BDAYS_P_WEEK);
76 if ((b %= (signed int)DUWW_BDAYS_P_WEEK) < 0) {
77 /* act as if we're on the monday after */
78 res++;
60 int u5, u7;
61
62 if (dow >= DT_SATURDAY) {
63 if (b >= 0) {
64 /* move to monday */
65 res += 8 - dow;
66 dow = DT_MONDAY;
67 b -= b != 0;
68 } else {
69 /* move to friday */
70 res -= dow - 5;
71 dow = DT_FRIDAY;
72 b += b != 0;
7973 }
80 dow = DT_MONDAY;
81 break;
82 case DT_MIRACLEDAY:
83 default:
84 break;
85 }
86
87 /* fixup b */
88 if (b < 0) {
89 res -= GREG_DAYS_P_WEEK;
90 b += DUWW_BDAYS_P_WEEK;
91 }
92 /* b >= 0 && b < 5 */
93 switch (dow) {
94 case DT_MONDAY:
95 case DT_TUESDAY:
96 case DT_WEDNESDAY:
97 case DT_THURSDAY:
98 case DT_FRIDAY:
99 if ((int)dow + b <= (int)DT_FRIDAY) {
100 res += b;
101 } else {
102 res += b + 2;
103 }
104 break;
105 case DT_MIRACLEDAY:
106 default:
107 res = 0;
108 break;
109 }
74 }
75 /* 384 == 4 mod 5 and 384 == 6 mod 7 */
76 u5 = (dow + 384 + b) % 5;
77 b = b / 5 * 7 + b % 5;
78 u7 = (dow + 384 + b) % 7;
79
80 /* u5 is the day we want to be on, Mon=0
81 * u7 is the day we land on, Mon=0 */
82 res += b;
83 res += u5 - u7;
84 res += b >= 0 && u5 < u7 ? 7 : 0;
11085 return res;
11186 }
11287 #endif /* ASPECT_YMD */
00 /*** boops.h -- byte-order operations
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 * Copyright (C) 2012 Ruediger Meier
44 *
55 * Author: Sebastian Freundt <freundt@ga-group.nl>
125125 # define htooe16(x) be16toh(x)
126126 #else
127127 /* do it agnostically */
128 static inline __attribute__((pure, const)) uint16_t
128 static inline __attribute__((const)) uint16_t
129129 htooe16(uint16_t x)
130130 {
131131 return ((x >> 8U) & 0xffU) | ((x << 8U) & 0xff00U);
184184 # define htooe32(x) be32toh(x)
185185 #else
186186 /* do it agnostically */
187 static inline __attribute__((pure, const)) uint32_t
187 static inline __attribute__((const)) uint32_t
188188 htooe32(uint32_t x)
189189 {
190190 /* swap them word-wise first */
246246 # define htooe64(x) be64toh(x)
247247 #else
248248 /* do it agnostically */
249 static inline __attribute__((pure, const)) uint64_t
249 static inline __attribute__((const)) uint64_t
250250 htooe64(uint64_t x)
251251 {
252252 /* swap them dword-wise first */
00 /*** daisy.c -- guts for daisy dates
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
4747 #define TO_BASE(x) ((x) - DT_DAISY_BASE_YEAR)
4848 #define TO_YEAR(x) ((x) + DT_DAISY_BASE_YEAR)
4949
50 static inline __attribute__((const, pure)) dt_daisy_t
50 static inline __attribute__((const)) dt_daisy_t
5151 __jan00_daisy(unsigned int year)
5252 {
5353 /* daisy's base year is both 1 mod 4 and starts on a monday, so ... */
8080 #if defined ASPECT_GETTERS && !defined DAISY_ASPECT_GETTERS_
8181 #define DAISY_ASPECT_GETTERS_
8282
83 static __attribute__((const, pure)) dt_dow_t
83 static __attribute__((const)) dt_dow_t
8484 __daisy_get_wday(dt_daisy_t d)
8585 {
8686 /* daisy wdays are simple because the base year is chosen so that day 0
8888 return (dt_dow_t)((d % GREG_DAYS_P_WEEK) ?: DT_SUNDAY);
8989 }
9090
91 static __attribute__((const, pure)) unsigned int
91 static __attribute__((const)) unsigned int
9292 __daisy_get_year(dt_daisy_t d)
9393 {
9494 /* given days since 1917-01-01 (Mon), compute a year */
112112 return TO_YEAR(by);
113113 }
114114
115 static __attribute__((const, pure)) unsigned int
115 static __attribute__((const)) unsigned int
116116 __daisy_get_yday(dt_daisy_t d)
117117 {
118118 dt_daisy_t j00;
147147 # error cannot convert to ldn, unknown base year
148148 #endif
149149
150 static __attribute__((const, pure)) dt_ldn_t
150 static __attribute__((const)) dt_ldn_t
151151 __daisy_to_ldn(dt_daisy_t d)
152152 {
153153 return d + DT_LDN_BASE;
154154 }
155155
156 static __attribute__((const, pure)) dt_jdn_t
156 static __attribute__((const)) dt_jdn_t
157157 __daisy_to_jdn(dt_daisy_t d)
158158 {
159159 return (dt_jdn_t)d + DT_JDN_BASE;
160160 }
161161
162 static __attribute__((const, pure)) dt_mdn_t
162 static __attribute__((const)) dt_mdn_t
163163 __daisy_to_mdn(dt_daisy_t d)
164164 {
165165 return (dt_mdn_t)d + DT_MDN_BASE;
166166 }
167167
168 static __attribute__((const, pure)) dt_daisy_t
168 static __attribute__((const)) dt_daisy_t
169169 __ldn_to_daisy(dt_ldn_t d)
170170 {
171171 dt_sdaisy_t tmp;
176176 return 0U;
177177 }
178178
179 static __attribute__((const, pure)) dt_daisy_t
179 static __attribute__((const)) dt_daisy_t
180180 __jdn_to_daisy(dt_jdn_t d)
181181 {
182182 float tmp;
186186 return 0U;
187187 }
188188
189 static __attribute__((const, pure)) dt_daisy_t
189 static __attribute__((const)) dt_daisy_t
190190 __mdn_to_daisy(dt_mdn_t d)
191191 {
192192 dt_sdaisy_t tmp;
197197 return 0U;
198198 }
199199
200 DEFUN __attribute__((const, pure)) dt_ymd_t
200 DEFUN __attribute__((const)) dt_ymd_t
201201 __daisy_to_ymd(dt_daisy_t that)
202202 {
203203 dt_daisy_t j00;
226226 #endif /* HAVE_ANON_STRUCTS_INIT */
227227 }
228228
229 static __attribute__((const, pure)) dt_ymcw_t
229 static __attribute__((const)) dt_ymcw_t
230230 __daisy_to_ymcw(dt_daisy_t that)
231231 {
232232 dt_ymd_t tmp;
253253 #endif
254254 }
255255
256 static __attribute__((const, pure)) dt_ywd_t
256 static __attribute__((const)) dt_ywd_t
257257 __daisy_to_ywd(dt_daisy_t that)
258258 {
259259 const unsigned int wd = (that + GREG_DAYS_P_WEEK - 1) % GREG_DAYS_P_WEEK;
264264 return __make_ywd_yd_dow(y, yd, dow);
265265 }
266266
267 static __attribute__((const, pure)) dt_yd_t
267 static __attribute__((const)) dt_yd_t
268268 __daisy_to_yd(dt_daisy_t d)
269269 {
270270 int yd = __daisy_get_yday(d);
288288 #include "daisy.c"
289289 #undef ASPECT_GETTERS
290290
291 static __attribute__((const, pure)) dt_daisy_t
291 static __attribute__((const)) dt_daisy_t
292292 __daisy_add_d(dt_daisy_t d, int n)
293293 {
294294 /* add N days to D */
296296 return d;
297297 }
298298
299 static __attribute__((const, pure)) dt_daisy_t
299 static __attribute__((const)) dt_daisy_t
300300 __daisy_add_b(dt_daisy_t d, int n)
301301 {
302302 /* add N business days to D */
306306 return d;
307307 }
308308
309 static __attribute__((const, pure)) dt_daisy_t
309 static __attribute__((const)) dt_daisy_t
310310 __daisy_add_w(dt_daisy_t d, int n)
311311 {
312312 /* add N weeks to D */
317317
318318 #if defined ASPECT_DIFF && !defined DAISY_ASPECT_DIFF_
319319 #define DAISY_ASPECT_DIFF_
320 static __attribute__((const, pure)) struct dt_ddur_s
320 static __attribute__((const)) struct dt_ddur_s
321321 __daisy_diff(dt_daisy_t d1, dt_daisy_t d2)
322322 {
323323 /* compute d2 - d1 */
00 /*** date-core-private.h -- our universe of dates, private bits
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** date-core-strpf.c -- parser and formatter funs for date-core
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
6565 __strpd_std(const char *str, char **ep)
6666 {
6767 /* code dupe, see __strpdt_std() */
68 struct dt_d_s res = dt_d_initialiser();
69 struct strpd_s d;
68 struct dt_d_s res = {DT_DUNK};
69 struct strpd_s d = {0};
7070 const char *sp;
7171
7272 if ((sp = str) == NULL) {
7373 goto out;
7474 }
7575
76 d = strpd_initialiser();
76 d.c = -1;
7777 /* read the year */
78 d.y = strtoi(sp, &sp);
78 d.y = strtoi32(sp, &sp);
7979 if (d.y < DT_MIN_YEAR || d.y > DT_MAX_YEAR || *sp++ != '-') {
8080 goto fucked;
8181 }
8282 /* check for ywd dates */
8383 if (UNLIKELY(*sp == 'W')) {
8484 /* brilliant */
85 sp++, d.c = strtoi(sp, &sp);
86 if (d.c < 0 || d.c > 53 || *sp++ != '-') {
85 sp++, d.c = strtoi32(sp, &sp);
86 if (d.c < 0 || d.c > 53) {
8787 goto fucked;
8888 }
8989 d.flags.c_wcnt_p = 1;
9090 d.flags.wk_cnt = YWD_ISOWK_CNT;
91 goto dow;
91 if (*sp == '-') {
92 goto dow;
93 } else if ((unsigned char)*sp <= ' ') {
94 /* unspecified week-date */
95 goto guess;
96 }
97 goto fucked;
9298 }
9399 /* read the month, then day count */
94100 with (const char *tmp) {
95 d.m = strtoi(sp, &tmp);
101 d.m = strtoi32(sp, &tmp);
96102 if (d.m < 0 || d.m > 366) {
97103 goto fucked;
98104 } else if (UNLIKELY(*tmp != '-')) {
106112 } else {
107113 goto fucked;
108114 }
109 sp = tmp;
110 } else if (d.d = strtoi(++tmp, &sp), d.d < 0 || d.d > 31) {
115 switch (*(sp = tmp)) {
116 case 'B':
117 /* it's a bizda/YMDU before ultimo date */
118 d.flags.ab = BIZDA_BEFORE;
119 case 'b':
120 /* it's a bizda/YMDU after ultimo date */
121 d.flags.bizda = 1;
122 sp++;
123 /* we currently don't support
124 * business day of year calendars */
125 goto fucked;
126 }
127 goto guess;
128 } else if (d.d = strtoi32(++tmp, &sp), d.d < 0 || d.d > 31) {
111129 /* didn't work, fuck off */
112130 goto fucked;
113131 }
116134 switch (*sp) {
117135 case '-':
118136 /* it is a YMCW date */
119 if ((d.c = d.d) > 5) {
137 if (d.d > 5) {
120138 /* nope, it was bollocks */
121 break;
122 }
123 d.d = 0;
139 goto fucked;
140 }
141 d.c = d.d, d.d = 0;
142 dow:
124143 sp++;
125 dow:
126 if (d.w = strtoi(sp, &sp),
144 if (d.w = strtoi32(sp, &sp),
127145 d.w < 0 || (unsigned int)d.w > GREG_DAYS_P_WEEK) {
128146 /* didn't work, fuck off */
129147 goto fucked;
130148 }
131 /* fix up d.w right away */
132 d.w = d.w ?: DT_SUNDAY;
133149 break;
134150 case 'B':
135151 /* it's a bizda/YMDU before ultimo date */
145161 /* we don't care */
146162 break;
147163 }
164 guess:
148165 /* guess what we're doing */
149166 res = __guess_dtyp(d);
150167 out:
156173 if (ep != NULL) {
157174 *ep = (char*)str;
158175 }
159 return dt_d_initialiser();
176 return (struct dt_d_s){DT_DUNK};
160177 }
161178
162179 DEFUN int
250267 /* ymcw mode? */
251268 d->w = strtoi_lim(sp, &sp, 0, GREG_DAYS_P_WEEK);
252269 /* fix up d->w right away */
253 d->w = d->w ?: DT_SUNDAY;
254270 res = 0 - (d->w < 0);
255271 break;
256272 case DT_SPFL_N_WCNT_MON:
538554 with (unsigned int w = (unsigned)d->w ?: dt_get_wday(that)) {
539555 const unsigned int ymcwp = s.wk_cnt != YWD_MONWK_CNT;
540556
541 if (w == DT_SUNDAY && ymcwp) {
542 /* turn Sun 07 to Sun 00 */
543 w = 0;
544 }
545557 res = ui99topstr(buf, bsz, w, 1 + ymcwp, padchar(s));
546558 }
547559 break;
00 /*** date-core-strpf.h -- parser and formatter funs for date-core
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
8080 };
8181
8282
83 /* helpers */
84 static inline __attribute__((pure, const)) struct strpd_s
85 strpd_initialiser(void)
86 {
87 #if defined HAVE_SLOPPY_STRUCTS_INIT
88 static const struct strpd_s res = {};
89 #else
90 static const struct strpd_s res;
91 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
92 return res;
93 }
94
95 static inline __attribute__((pure, const)) struct strpdi_s
96 strpdi_initialiser(void)
97 {
98 #if defined HAVE_SLOPPY_STRUCTS_INIT
99 static const struct strpdi_s res = {};
100 #else
101 static const struct strpdi_s res;
102 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
103 return res;
104 }
105
10683 #if defined INCLUDED_date_core_h_
10784 /**
10885 * Populate TGT with duration information from DUR. */
00 /*** date-core.c -- our universe of dates
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
120120 return x >= 0 ? res : x % m ? res - 1 : res;
121121 }
122122
123 static inline __attribute__((const, pure)) int
124 __sgn(signed int x)
125 {
126 return (x > 0) - (x < 0);
127 }
128
123129
124130 /* helpers from the calendar files, don't define any aspect, so only
125131 * the helpers should get included */
789795 DEFUN struct dt_d_s
790796 __guess_dtyp(struct strpd_s d)
791797 {
792 struct dt_d_s res = dt_d_initialiser();
798 struct dt_d_s res = {DT_DUNK};
793799
794800 if (LIKELY(d.y > 0 && d.c <= 0 && !d.flags.c_wcnt_p && !d.flags.bizda)) {
795801 /* nearly all goes to ymd */
874880 DEFUN struct dt_d_s
875881 dt_strpd(const char *str, const char *fmt, char **ep)
876882 {
877 struct dt_d_s res = dt_d_initialiser();
878 struct strpd_s d = strpd_initialiser();
883 struct dt_d_s res = {DT_DUNK};
884 struct strpd_s d = {0};
879885 const char *sp = str;
880886 const char *fp;
881887
948954 DEFUN size_t
949955 dt_strfd(char *restrict buf, size_t bsz, const char *fmt, struct dt_d_s that)
950956 {
951 struct strpd_s d = strpd_initialiser();
957 struct strpd_s d = {0};
952958 const char *fp;
953959 char *bp;
954960 dt_dtyp_t tgttyp;
11471153 DEFUN size_t
11481154 dt_strfddur(char *restrict buf, size_t bsz, const char *fmt, struct dt_ddur_s that)
11491155 {
1150 struct strpd_s d = strpd_initialiser();
1156 struct strpd_s d = {0};
11511157 const char *fp;
11521158 char *bp;
11531159
13621368 DEFUN struct dt_d_s
13631369 dt_dconv(dt_dtyp_t tgttyp, struct dt_d_s d)
13641370 {
1365 struct dt_d_s res = dt_d_initialiser();
1371 struct dt_d_s res = {DT_DUNK};
13661372
13671373 /* fix up before conversion */
13681374 d = dt_dfixup(d);
14211427 {
14221428 /* add N (gregorian) days to D */
14231429 if (UNLIKELY(!n)) {
1424 /* cacn't use short-cut return here, it'd upset the IPO/LTO */
1430 /* can't use short-cut return here, it'd upset the IPO/LTO */
14251431 goto out;
14261432 }
14271433 switch (d.typ) {
17271733 dt_dadd(struct dt_d_s d, struct dt_ddur_s dur)
17281734 {
17291735 if (UNLIKELY(!dur.dv)) {
1730 /* cacn't use short-cut return here, it'd upset the IPO/LTO */
1736 /* can't use short-cut return here, it'd upset the IPO/LTO */
17311737 goto out;
17321738 }
17331739 switch (dur.durtyp) {
17401746 case DT_DURWK:
17411747 d = dt_dadd_w(d, dur.dv);
17421748 break;
1749 case DT_DURQU:
1750 /* just use the month adder */
1751 dur.dv *= 3U;
17431752 case DT_DURMO:
17441753 d = dt_dadd_m(d, dur.dv);
17451754 break;
17931802 }
17941803
17951804 DEFUN struct dt_ddur_s
1796 dt_ddiff(dt_durtyp_t tgttyp, struct dt_d_s d1, struct dt_d_s d2)
1797 {
1805 dt_ddiff(dt_durtyp_t tgttyp, struct dt_d_s d1, struct dt_d_s d2, int carry)
1806 {
1807 /* carry of 0 doesn't change anything
1808 * carry <0 adds -1 to d2 iff d1 <= d2
1809 * carry >0 adds 1 to d2 iff d1 >= d2 */
17981810 struct dt_ddur_s res = dt_make_ddur(DT_DURUNK, 0);
17991811
18001812 switch (tgttyp) {
18021814 case DT_DURBD: {
18031815 dt_daisy_t tmp1 = dt_conv_to_daisy(d1);
18041816 dt_daisy_t tmp2 = dt_conv_to_daisy(d2);
1817
18051818 res = __daisy_diff(tmp1, tmp2);
18061819
18071820 /* fix up result in case it's bizsi, i.e. kick weekends */
18141827 case DT_DURYMD: {
18151828 dt_ymd_t tmp1 = dt_conv_to_ymd(d1);
18161829 dt_ymd_t tmp2 = dt_conv_to_ymd(d2);
1830 int fix = __sgn(carry) == -__sgn(tmp2.u - tmp1.u);
1831
1832 if (UNLIKELY(fix)) {
1833 /* add -1 iff tmp2 > tmp1 && carry < 0
1834 * add 1 iff tmp2 < tmp1 && carry > 0, i.e.
1835 * add sgn(carry) iff sgn(tmp2-tmp1) = -sgn(carry) */
1836 tmp2 = __ymd_add_d(tmp2, __sgn(carry));
1837 }
18171838 res = __ymd_diff(tmp1, tmp2);
1839 res.fix = fix;
18181840 break;
18191841 }
18201842 case DT_DURYMCW: {
18211843 dt_ymcw_t tmp1 = dt_conv_to_ymcw(d1);
18221844 dt_ymcw_t tmp2 = dt_conv_to_ymcw(d2);
1845 int fix = carry && __sgn(carry) == -__ymcw_cmp(tmp1, tmp2);
1846
1847 if (UNLIKELY(fix)) {
1848 /* add -1 iff tmp2 > tmp1 && carry < 0
1849 * add 1 iff tmp2 < tmp1 && carry > 0, i.e.
1850 * add sgn(carry) iff sgn(tmp2-tmp1) = -sgn(carry) */
1851 tmp2 = __ymcw_add_d(tmp2, __sgn(carry));
1852 }
18231853 res = __ymcw_diff(tmp1, tmp2);
1854 res.fix = fix;
18241855 break;
18251856 }
18261857 case DT_DURYD: {
18271858 dt_yd_t tmp1 = dt_conv_to_yd(d1);
18281859 dt_yd_t tmp2 = dt_conv_to_yd(d2);
1860 int fix = __sgn(carry) == -__sgn(tmp2.u - tmp1.u);
1861
1862 if (UNLIKELY(fix)) {
1863 /* add -1 iff tmp2 > tmp1 && carry < 0
1864 * add 1 iff tmp2 < tmp1 && carry > 0, i.e.
1865 * add sgn(carry) iff sgn(tmp2-tmp1) = -sgn(carry) */
1866 tmp2 = __yd_add_d(tmp2, __sgn(carry));
1867 }
18291868 res = __yd_diff(tmp1, tmp2);
1869 res.fix = fix;
18301870 break;
18311871 }
18321872 case DT_DURYWD: {
18331873 dt_ywd_t tmp1 = dt_conv_to_ywd(d1);
18341874 dt_ywd_t tmp2 = dt_conv_to_ywd(d2);
1875 int fix = __sgn(carry) == -__sgn(tmp2.u - tmp1.u);
1876
1877 if (UNLIKELY(fix)) {
1878 /* add -1 iff tmp2 > tmp1 && carry < 0
1879 * add 1 iff tmp2 < tmp1 && carry > 0, i.e.
1880 * add sgn(carry) iff sgn(tmp2-tmp1) = -sgn(carry) */
1881 tmp2 = __ywd_add_d(tmp2, __sgn(carry));
1882 }
18351883 res = __ywd_diff(tmp1, tmp2);
1884 res.fix = fix;
18361885 break;
18371886 }
18381887 case DT_DURBIZDA:
18931942 return 2 - ((m >> (i * 8U + j * 2U)) & 0b11U);
18941943 }
18951944
1896 DEFUN __attribute__((pure)) struct dt_d_s
1945 DEFUN __attribute__((const)) struct dt_d_s
18971946 dt_dfixup(struct dt_d_s d)
18981947 {
18991948 switch (d.typ) {
00 /*** date-core.h -- our universe of dates
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
101101 uint32_t u;
102102 struct {
103103 #if BYTE_ORDER == BIG_ENDIAN
104 /* 11 bits left */
105 unsigned int:11;
104 /* 10 bits left, make ym coincide with ym from ymcw */
105 unsigned int:10;
106106 unsigned int y:12;
107107 unsigned int m:4;
108 unsigned int d:5;
108 unsigned int d:6;
109109 #elif BYTE_ORDER == LITTLE_ENDIAN
110 unsigned int d:5;
110 unsigned int d:6;
111111 unsigned int m:4;
112112 unsigned int y:12;
113 /* 11 bits left */
114 unsigned int:11;
113 /* 10 bits left, make ym coincide with ym from ymcw */
114 unsigned int:10;
115115 #else
116116 # warning unknown byte order
117117 #endif /* BYTE_ORDER */
124124 uint32_t u;
125125 struct {
126126 #if BYTE_ORDER == BIG_ENDIAN
127 /* 10 bits left */
127 /* 10 bits left, make ym coincide with ym from ymd */
128128 unsigned int:10;
129129 unsigned int y:12;
130130 unsigned int m:4;
135135 unsigned int c:3;
136136 unsigned int m:4;
137137 unsigned int y:12;
138 /* 10 bits left */
138 /* 10 bits left, make ym coincide with ym from ymd */
139139 unsigned int:10;
140140 #else
141141 # warning unknown byte order
519519 * If instead D2 should count, swap D1 and D2 and negate the duration
520520 * by setting/clearing the neg bit. */
521521 extern struct dt_ddur_s
522 dt_ddiff(dt_durtyp_t tgttyp, struct dt_d_s d1, struct dt_d_s d2);
522 dt_ddiff(dt_durtyp_t tgttyp, struct dt_d_s d1, struct dt_d_s d2, int carry);
523523
524524 /**
525525 * Compare two dates, yielding 0 if they are equal, -1 if D1 is older,
540540
541541 /**
542542 * Crop dates with days beyond ultimo. */
543 extern __attribute__((pure)) struct dt_d_s dt_dfixup(struct dt_d_s);
543 extern __attribute__((const)) struct dt_d_s dt_dfixup(struct dt_d_s);
544544
545545
546 /* some useful gimmicks, sort of */
547 static inline __attribute__((pure, const)) struct dt_d_s
548 dt_d_initialiser(void)
549 {
550 #if defined HAVE_SLOPPY_STRUCTS_INIT
551 static const struct dt_d_s res = {};
552 #else /* HAVE_SLOPPY_STRUCTS_INIT */
553 static const struct dt_d_s res;
554 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
555 return res;
556 }
557
558546 /* other ctors */
559547 static inline struct dt_d_s
560548 dt_make_ymd(unsigned int y, unsigned int m, unsigned int d)
00 /*** dt-core-private.h -- our universe of datetimes, private bits
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** dt-core-strpf.c -- parser and formatter funs for dt-core
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
149149 __strpdt_std(const char *str, char **ep)
150150 {
151151 /* code dupe, see __strpd_std() */
152 struct dt_dt_s res = dt_dt_initialiser();
153 struct strpdt_s d = strpdt_initialiser();
152 struct dt_dt_s res = {DT_UNK};
153 struct strpdt_s d = {0};
154154 const char *sp;
155155
156156 if ((sp = str) == NULL) {
160160 if (*sp == '@') {
161161 /* yay, epoch */
162162 const char *tmp;
163 d.i = strtoi(++sp, &tmp);
164 if (UNLIKELY(d.i == -1 && sp == tmp)) {
163 d.i = strtoi64(++sp, &tmp);
164 if (UNLIKELY(d.i == INT64_MIN && sp == tmp)) {
165165 sp--;
166166 } else {
167167 /* let's make a DT_SEXY */
276276 res = __strpt_card(&d->st, sp, s, ep);
277277 goto out_direct;
278278
279 case DT_SPFL_N_EPOCH: {
279 case DT_SPFL_N_EPOCH:
280 case DT_SPFL_N_EPOCHNS: {
280281 /* read over @ */
281282 const char *tp = sp;
282283 tp += *tp == '@';
283 d->i = strtoi(tp, &tp);
284 if (UNLIKELY(d->i < 0 || tp == sp)) {
284 d->i = strtoi64(tp, &tp);
285 if (UNLIKELY(d->i == INT64_MIN || tp == sp)) {
285286 res = -1;
286287 } else {
287288 sp = tp;
289 }
290 if (s.spfl == DT_SPFL_N_EPOCHNS) {
291 d->st.ns = d->i % 1000000000LL;
292 d->i /= 1000000000LL;
288293 }
289294 break;
290295 }
357362 res = __strft_card(buf, bsz, s, &d->st, that.t);
358363 break;
359364
360 case DT_SPFL_N_EPOCH: {
365 case DT_SPFL_N_EPOCH:
366 case DT_SPFL_N_EPOCHNS: {
361367 /* convert to sexy */
362368 int64_t sexy = dt_conv_to_sexy(that).sexy;
363369 res = snprintf(buf, bsz, "%" PRIi64, sexy);
00 /*** dt-core-strpf.h -- parser and formatter funs for dt-core
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
4242 #endif /* __cplusplus */
4343
4444
45 /* helpers */
46 static inline __attribute__((pure, const)) struct strpdt_s
47 strpdt_initialiser(void)
48 {
49 #if defined HAVE_SLOPPY_STRUCTS_INIT
50 static const struct strpdt_s res = {};
51 #else
52 static const struct strpdt_s res;
53 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
54 return res;
55 }
56
57
5845 #if defined INCLUDED_dt_core_h_
5946 /**
6047 * Parse STR with the standard parser, put the end of the parsed string in EP.*/
00 /*** dt-core-tz-glue.c -- gluing date/times and tzs
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** dt-core-tz-glue.h -- glue between tzraw and dt-core
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** dt-core.c -- our universe of datetimes
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
8484 struct strpdt_s {
8585 struct strpd_s sd;
8686 struct strpt_s st;
87 long int i;
87 int64_t i;
8888
8989 /* use 31 bits for the difference */
9090 int32_t zdiff:31;
184184 } else if (dt_sandwich_p(dt) || dt_sandwich_only_d_p(dt)) {
185185 dt.sxepoch = __to_unix_epoch(dt);
186186 } else {
187 dt = dt_dt_initialiser();
187 dt = (struct dt_dt_s){DT_UNK};
188188 }
189189 /* make sure we hand out sexies */
190190 dt.typ = DT_SEXY;
194194 static inline struct dt_dt_s
195195 __sexy_to_daisy(dt_ssexy_t sx)
196196 {
197 struct dt_dt_s res = dt_dt_initialiser();
198
199 res.t.hms.s = sx % SECS_PER_MIN;
197 struct dt_dt_s res = {DT_UNK};
198 int s, m, h;
199
200 s = sx % SECS_PER_MIN;
200201 sx /= SECS_PER_MIN;
201 res.t.hms.m = sx % MINS_PER_HOUR;
202 m = sx % MINS_PER_HOUR;
202203 sx /= MINS_PER_HOUR;
203 res.t.hms.h = sx % HOURS_PER_DAY;
204 h = sx % HOURS_PER_DAY;
204205 sx /= HOURS_PER_DAY;
206
207 m -= s < 0;
208 h -= m < 0;
209 sx -= h < 0;
210
211 s += s >= 0 ? 0 : SECS_PER_MIN;
212 m += m >= 0 ? 0 : MINS_PER_HOUR;
213 h += h >= 0 ? 0 : HOURS_PER_DAY;
214
215 /* assign now */
216 res.t.hms.s = s;
217 res.t.hms.m = m;
218 res.t.hms.h = h;
205219
206220 /* rest is a day-count, move to daisy */
207221 res.d.daisy = sx + DAISY_UNIX_BASE;
214228 static inline struct dt_dt_s
215229 __ymdhms_to_ymd(dt_ymdhms_t x)
216230 {
217 struct dt_dt_s res = dt_dt_initialiser();
231 struct dt_dt_s res = {DT_UNK};
218232
219233 res.t.hms.s = x.S;
220234 res.t.hms.m = x.M;
441455 } else if ((tv = now_tv()).tv_sec == 0U) {
442456 /* big cinema :( */
443457 #if defined HAVE_SLOPPY_STRUCTS_INIT
444 return (struct tm){};
458 return (struct tm){0};
445459 #else /* !HAVE_SLOPPY_STRUCTS_INIT */
446460 memset(&tm, 0, sizeof(tm));
447461 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
457471 /* the reason we do this separately is that we don't want to bother
458472 * the pieces of code that use the guesser for different reasons */
459473 if (UNLIKELY(d.sd.y == 0U)) {
460 #if defined HAVE_SLOPPY_STRUCTS_INIT
461 static const struct strpd_s d0 = {};
462 #else /* !HAVE_SLOPPY_STRUCTS_INIT */
463 static const struct strpd_s d0;
464 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
474 static const struct strpd_s d0 = {0};
465475 struct dt_dt_s now = dt_get_base();
466476
467477 if (UNLIKELY(memcmp(&d.sd, &d0, sizeof(d0)) == 0U)) {
567577 return zdiff;
568578 }
569579
570 static inline __attribute__((const, pure)) bool
580 static inline __attribute__((const)) bool
571581 dt_dur_only_d_p(struct dt_dtdur_s d)
572582 {
573583 return d.durtyp && d.d.durtyp < DT_NDURTYP && !d.t.sdur;
600610 DEFUN struct dt_dt_s
601611 dt_strpdt(const char *str, const char *fmt, char **ep)
602612 {
603 struct dt_dt_s res = dt_dt_initialiser();
604 struct strpdt_s d;
613 struct dt_dt_s res = {DT_UNK};
614 struct strpdt_s d = {0};
605615 const char *sp = str;
606616 const char *fp;
607617
632642 goto sober;
633643
634644 case DT_LDN:
635 res.d.ldn = (dt_ldn_t)strtoi(str, &sp);
645 res.d.ldn = (dt_ldn_t)strtoi32(str, &sp);
636646 if (*sp == '.') {
637647 /* oooh, a double it seems */
638648 double tmp = strtod(sp, &on);
658668 goto sober;
659669
660670 case DT_MDN:
661 res.d.mdn = (dt_ldn_t)strtoi(str, &sp);
671 res.d.mdn = (dt_ldn_t)strtoi32(str, &sp);
662672 if (*sp == '.') {
663673 /* oooh, a double it seems */
664674 double tmp = strtod(sp, &on);
685695 }
686696
687697 fp = fmt;
688 d = strpdt_initialiser();
689698 while (*fp && *sp) {
690699 const char *fp_sav = fp;
691700 struct dt_spec_s spec = __tok_spec(fp_sav, &fp);
692701
693702 if (spec.spfl == DT_SPFL_UNK) {
694703 /* must be literal */
695 if (*fp_sav != *sp++) {
704 if (UNLIKELY(*fp_sav != *sp++)) {
696705 goto fucked;
697706 }
698707 } else if (LIKELY(!spec.rom)) {
764773 if (ep != NULL) {
765774 *ep = (char*)str;
766775 }
767 return dt_dt_initialiser();
776 return (struct dt_dt_s){DT_UNK};
768777 }
769778
770779 DEFUN size_t
771780 dt_strfdt(char *restrict buf, size_t bsz, const char *fmt, struct dt_dt_s that)
772781 {
773 struct strpdt_s d = strpdt_initialiser();
782 struct strpdt_s d = {0};
774783 const char *fp;
775784 char *bp;
776785 dt_dtyp_t tgttyp;
10921101 dt_strfdtdur(
10931102 char *restrict buf, size_t bsz, const char *fmt, struct dt_dtdur_s that)
10941103 {
1095 struct strpdt_s d;
1104 struct strpdt_s d = {0};
10961105 const char *fp;
10971106 char *bp;
10981107
11011110 goto out;
11021111 }
11031112
1104 d = strpdt_initialiser();
11051113 switch (that.d.durtyp) {
11061114 case DT_YMD:
11071115 d.sd.y = that.d.ymd.y;
12941302 DEFUN struct dt_dt_s
12951303 dt_datetime(dt_dttyp_t outtyp)
12961304 {
1297 struct dt_dt_s res = dt_dt_initialiser();
1305 struct dt_dt_s res = {DT_UNK};
12981306 const dt_dtyp_t outdtyp = (dt_dtyp_t)outtyp;
12991307 struct tm tm = now_tm();
13001308 struct timeval tv = now_tv();
14061414 unsigned int ss = __secs_since_midnight(d.t);
14071415
14081416 switch (tgttyp) {
1409 int32_t sx;
1417 int64_t sx;
14101418 #if defined WITH_LEAP_SECONDS
14111419 case DT_SEXYTAI: {
14121420 zidx_t zi;
14361444
14371445 case DT_DUNK:
14381446 default:
1439 d = dt_dt_initialiser();
1447 d = (struct dt_dt_s){DT_UNK};
14401448 break;
14411449 }
14421450 } else if (dt_sandwich_only_t_p(d)) {
14661474 }
14671475 break;
14681476 default:
1469 d = dt_dt_initialiser();
1477 d = (struct dt_dt_s){DT_UNK};
14701478 break;
14711479 }
14721480 } else {
15431551 carry--;
15441552 }
15451553
1546 d.t.hms.ns = dv;
1554 if (d.sandwich) {
1555 d.t.hms.ns = dv;
1556 }
15471557
15481558 /* the rest is normal second-wise tadd */
15491559 dv = carry;
15951605 dt_dtdiff(dt_dtdurtyp_t tgttyp, struct dt_dt_s d1, struct dt_dt_s d2)
15961606 {
15971607 struct dt_dtdur_s res = {(dt_dtdurtyp_t)DT_DURUNK};
1598 int dt = 0;
1608 int64_t dt = 0;
15991609
16001610 if (!dt_sandwich_only_d_p(d1) && !dt_sandwich_only_d_p(d2)) {
16011611 /* do the time portion difference right away */
1602 dt = dt_tdiff_s(d1.t, d2.t);
1612 switch (tgttyp) {
1613 default:
1614 dt = dt_tdiff_s(d1.t, d2.t);
1615 break;
1616 case DT_DURNANO:
1617 dt = dt_tdiff_ns(d1.t, d2.t);
1618 break;
1619 }
16031620 }
16041621 /* now assess what else is to be done */
16051622 if (dt_sandwich_only_t_p(d1) && dt_sandwich_only_t_p(d2)) {
16061623 /* make t-only */
1607 res.durtyp = DT_DURS;
1608 res.dv = dt;
1624 res.durtyp = (dt_dtdurtyp_t)(DT_DURS + (tgttyp == DT_DURNANO));
1625 res.neg = (uint16_t)(dt < 0);
1626 res.dv = dt >= 0 ? dt : -dt;
16091627 } else if (tgttyp && (dt_durtyp_t)tgttyp < DT_NDURTYP) {
1610 /* check for negative carry */
1611 if (UNLIKELY(dt < 0)) {
1612 d2.d = dt_dadd(d2.d, dt_make_ddur(DT_DURD, -1));
1613 dt += SECS_PER_DAY;
1614 }
16151628 res.durtyp = tgttyp;
1616 res.d = dt_ddiff((dt_durtyp_t)tgttyp, d1.d, d2.d);
1629 res.d = dt_ddiff((dt_durtyp_t)tgttyp, d1.d, d2.d, dt);
1630 dt = !res.neg ? dt : -dt;
1631 dt = !res.d.fix ? dt
1632 : dt > 0 ? SECS_PER_DAY - dt
1633 : dt < 0 ? dt + SECS_PER_DAY
1634 : 0;
16171635 res.t.sdur = dt;
1636 res.t.nsdur = 0;
16181637 } else if ((dt_durtyp_t)tgttyp >= DT_NDURTYP) {
16191638 int64_t sxdur;
16201639
16211640 if (d1.typ < DT_PACK && d2.typ < DT_PACK) {
16221641 /* go for tdiff and ddiff independently */
1623 res.d = dt_ddiff(DT_DURD, d1.d, d2.d);
1642 res.d = dt_ddiff(DT_DURD, d1.d, d2.d, 0);
1643
1644 if (UNLIKELY(tgttyp == DT_DURNANO)) {
1645 /* unfortunately we have to scale back */
1646 dt /= NANOS_PER_SEC;
1647 }
16241648 /* since target type is SEXY do the conversion here */
1625 sxdur = (int64_t)dt +
1626 (int64_t)res.d.dv * SECS_PER_DAY;
1649 sxdur = dt + (int64_t)res.d.dv * SECS_PER_DAY;
16271650 } else {
16281651 /* oh we're in the sexy domain already,
16291652 * note, we can't diff ymdhms packs */
16311654 d2 = dt_dtconv(DT_SEXY, d2);
16321655
16331656 /* now it's fuck-easy */
1634 sxdur = d2.sexy - d1.sexy;
1657 sxdur = (int64_t)(d2.sexy - d1.sexy);
16351658 }
16361659
16371660 /* set up the output here */
1638 res.durtyp = tgttyp;
1661 res.durtyp = DT_DURS;
16391662 res.neg = 0U;
16401663 if (LIKELY(tgttyp < DT_NDTDURTYP)) {
16411664 res.tai = 0U;
16421665 } else {
16431666 /* just a hack to transfer the notion of TAIness */
16441667 res.tai = 1U;
1645 res.durtyp = DT_DURS;
16461668 }
16471669 res.dv = sxdur;
16481670
17991821 # endif /* INCLUDED_time_core_h_ */
18001822 #endif /* LIBDUT */
18011823
1802 DEFUN __attribute__((pure)) struct dt_dt_s
1824 DEFUN __attribute__((const)) struct dt_dt_s
18031825 dt_fixup(struct dt_dt_s d)
18041826 {
18051827 if (LIKELY(dt_sandwich_only_d_p(d) || dt_sandwich_p(d))) {
18081830 return d;
18091831 }
18101832
1811 DEFUN __attribute__((pure)) struct dt_dt_s
1833 DEFUN __attribute__((const)) struct dt_dt_s
18121834 dt_milfup(struct dt_dt_s dt)
18131835 {
18141836 if (dt_sandwich_p(dt) && UNLIKELY(dt.t.hms.h == 24)) {
00 /*** dt-core.h -- our universe of datetimes
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
7676 /* offset by the year 1900 */
7777 unsigned int y:12;
7878 unsigned int m:4;
79 unsigned int d:5;
79 unsigned int d:6;
8080 /* round up to 32 bits, remaining bits are seconds east */
81 unsigned int offs:11;
81 unsigned int offs:10;
8282
8383 /* time part */
8484 unsigned int H:5;
8585 unsigned int M:8;
8686 unsigned int S:8;
8787 #elif BYTE_ORDER == LITTLE_ENDIAN
88 unsigned int d:5;
88 unsigned int d:6;
8989 unsigned int m:4;
9090 /* offset by the year 1900 */
9191 #define DT_YEAR_OFFS (1900)
9292 unsigned int y:12;
9393 /* round up to 32 bits, remaining bits are seconds east */
94 unsigned int offs:11;
94 unsigned int offs:10;
9595
9696 /* time part */
9797 unsigned int S:8;
105105
106106 /** sexy
107107 * sexy is really, secsi, seconds since X, 1970-01-01T00:00:00 here */
108 typedef uint64_t dt_sexy_t;
108 typedef int64_t dt_sexy_t;
109109 typedef int64_t dt_ssexy_t;
110110 #define DT_SEXY_BASE_YEAR (1917)
111111
317317
318318 /**
319319 * Crop datetimess with days beyond ultimo. */
320 extern __attribute__((pure)) struct dt_dt_s dt_fixup(struct dt_dt_s);
320 extern __attribute__((const)) struct dt_dt_s dt_fixup(struct dt_dt_s);
321321
322322 /**
323323 * Decay military midnigths to the following day 00:00:00 */
324 extern __attribute__((pure)) struct dt_dt_s dt_milfup(struct dt_dt_s);
324 extern __attribute__((const)) struct dt_dt_s dt_milfup(struct dt_dt_s);
325325
326326
327327 /* some useful gimmicks, sort of */
328 static inline __attribute__((pure, const)) struct dt_dt_s
329 dt_dt_initialiser(void)
330 {
331 #if defined HAVE_SLOPPY_STRUCTS_INIT
332 static const struct dt_dt_s res = {};
333 #else
334 static const struct dt_dt_s res;
335 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
336 return res;
337 }
338
339 static inline __attribute__((pure, const)) bool
328 static inline __attribute__((const)) bool
340329 dt_unk_p(struct dt_dt_s d)
341330 {
342331 return !(d.sandwich || d.typ > DT_UNK);
343332 }
344333
345 static inline __attribute__((pure, const)) bool
334 static inline __attribute__((const)) bool
346335 dt_durunk_p(struct dt_dtdur_s d)
347336 {
348337 return !d.durtyp;
349338 }
350339
351 static inline __attribute__((pure, const)) bool
340 static inline __attribute__((const)) bool
352341 dt_sandwich_p(struct dt_dt_s d)
353342 {
354343 return d.sandwich && d.d.typ > DT_DUNK;
355344 }
356345
357 static inline __attribute__((pure, const)) bool
346 static inline __attribute__((const)) bool
358347 dt_sandwich_only_d_p(struct dt_dt_s d)
359348 {
360349 return !d.sandwich && d.d.typ > DT_DUNK && d.d.typ < DT_NDTYP;
361350 }
362351
363 static inline __attribute__((pure, const)) bool
352 static inline __attribute__((const)) bool
364353 dt_sandwich_only_t_p(struct dt_dt_s d)
365354 {
366355 return d.sandwich && d.typ == DT_UNK;
367356 }
368357
369 static inline __attribute__((pure, const)) bool
358 static inline __attribute__((const)) bool
370359 dt_separable_p(struct dt_dt_s d)
371360 {
372361 /* return true if D is a d+t sandwich or D is d-only or D is t-only */
00 /*** locale.c -- locale light
11 *
2 * Copyright (C) 2015-2018 Sebastian Freundt
2 * Copyright (C) 2015-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** locale.h -- locale light
11 *
2 * Copyright (C) 2015-2018 Sebastian Freundt
2 * Copyright (C) 2015-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** generics.h -- type invariant generic funs
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
0 /*** autogenerated by: ltrcc ../../lib/leap-seconds.list */
1
2 #include <stdint.h>
3 #include <limits.h>
4 #include "leaps.h"
5 #include "leap-seconds.h"
6
7 #if !defined INCLUDED_ltrcc_generated_def_
8 #define INCLUDED_ltrcc_generated_def_
9
10 #if !defined countof
11 # define countof(x) (sizeof(x) / sizeof(*x))
12 #endif /* !countof */
13
14 const int32_t leaps_corr[] = {
15 10,
16 10,
17 11,
18 12,
19 13,
20 14,
21 15,
22 16,
23 17,
24 18,
25 19,
26 20,
27 21,
28 22,
29 23,
30 24,
31 25,
32 26,
33 27,
34 28,
35 29,
36 30,
37 31,
38 32,
39 33,
40 34,
41 35,
42 36,
43 37,
44 37
45 };
46 const size_t nleaps_corr = countof(leaps_corr);
47
48 const uint32_t leaps_ymd[] = {
49 0x00U/* 0 */,
50 0x1ecf1fU/* 2019103 */,
51 0x1ed19eU/* 2019742 */,
52 0x1ed31fU/* 2020127 */,
53 0x1ed71fU/* 2021151 */,
54 0x1edb1fU/* 2022175 */,
55 0x1edf1fU/* 2023199 */,
56 0x1ee31fU/* 2024223 */,
57 0x1ee71fU/* 2025247 */,
58 0x1eeb1fU/* 2026271 */,
59 0x1eef1fU/* 2027295 */,
60 0x1ef59eU/* 2028958 */,
61 0x1ef99eU/* 2029982 */,
62 0x1efd9eU/* 2031006 */,
63 0x1f059eU/* 2033054 */,
64 0x1f0f1fU/* 2035487 */,
65 0x1f171fU/* 2037535 */,
66 0x1f1b1fU/* 2038559 */,
67 0x1f219eU/* 2040222 */,
68 0x1f259eU/* 2041246 */,
69 0x1f299eU/* 2042270 */,
70 0x1f2f1fU/* 2043679 */,
71 0x1f359eU/* 2045342 */,
72 0x1f3b1fU/* 2046751 */,
73 0x1f571fU/* 2053919 */,
74 0x1f631fU/* 2056991 */,
75 0x1f719eU/* 2060702 */,
76 0x1f7d9eU/* 2063774 */,
77 0x1f831fU/* 2065183 */,
78 UINT32_MAX
79 };
80 const size_t nleaps_ymd = countof(leaps_ymd);
81
82 const uint32_t leaps_ymcw[] = {
83 0x00U/* 0 */,
84 0x191ecf2dU/* 421449517 */,
85 0x191ed1adU/* 421450157 */,
86 0x191ed32fU/* 421450543 */,
87 0x191ed729U/* 421451561 */,
88 0x191edb2aU/* 421452586 */,
89 0x191edf2bU/* 421453611 */,
90 0x191ee32dU/* 421454637 */,
91 0x191ee72eU/* 421455662 */,
92 0x191eeb2fU/* 421456687 */,
93 0x191eef29U/* 421457705 */,
94 0x191ef5aaU/* 421459370 */,
95 0x191ef9abU/* 421460395 */,
96 0x191efdacU/* 421461420 */,
97 0x191f05afU/* 421463471 */,
98 0x191f0f2cU/* 421465900 */,
99 0x191f172fU/* 421467951 */,
100 0x191f1b29U/* 421468969 */,
101 0x191f21aaU/* 421470634 */,
102 0x191f25abU/* 421471659 */,
103 0x191f29acU/* 421472684 */,
104 0x191f2f2fU/* 421474095 */,
105 0x191f35a9U/* 421475753 */,
106 0x191f3b2cU/* 421477164 */,
107 0x191f572eU/* 421484334 */,
108 0x191f632bU/* 421487403 */,
109 0x191f71aeU/* 421491118 */,
110 0x191f7daaU/* 421494186 */,
111 0x191f832eU/* 421495598 */,
112 UINT32_MAX
113 };
114 const size_t nleaps_ymcw = countof(leaps_ymcw);
115
116 const uint32_t leaps_d[] = {
117 0x00U/* 0 */,
118 0x21150U/* 135504 */,
119 0x21206U/* 135686 */,
120 0x212beU/* 135870 */,
121 0x2142bU/* 136235 */,
122 0x21598U/* 136600 */,
123 0x21705U/* 136965 */,
124 0x21873U/* 137331 */,
125 0x219e0U/* 137696 */,
126 0x21b4dU/* 138061 */,
127 0x21cbaU/* 138426 */,
128 0x21eddU/* 138973 */,
129 0x2204aU/* 139338 */,
130 0x221b7U/* 139703 */,
131 0x22492U/* 140434 */,
132 0x22824U/* 141348 */,
133 0x22affU/* 142079 */,
134 0x22c6cU/* 142444 */,
135 0x22e8fU/* 142991 */,
136 0x22ffcU/* 143356 */,
137 0x23169U/* 143721 */,
138 0x2338eU/* 144270 */,
139 0x235b1U/* 144817 */,
140 0x237d6U/* 145366 */,
141 0x241d3U/* 147923 */,
142 0x2461bU/* 149019 */,
143 0x24b18U/* 150296 */,
144 0x24f5fU/* 151391 */,
145 0x25185U/* 151941 */,
146 UINT32_MAX
147 };
148 const size_t nleaps_d = countof(leaps_d);
149
150 const int32_t leaps_s[] = {
151 INT32_MIN,
152 0x3c266ffU/* 63071999 */,
153 0x4b257ffU/* 78796799 */,
154 0x5a4ebffU/* 94694399 */,
155 0x7861f7fU/* 126230399 */,
156 0x96752ffU/* 157766399 */,
157 0xb48867fU/* 189302399 */,
158 0xd2b0b7fU/* 220924799 */,
159 0xf0c3effU/* 252460799 */,
160 0x10ed727fU/* 283996799 */,
161 0x12cea5ffU/* 315532799 */,
162 0x159fca7fU/* 362793599 */,
163 0x1780fdffU/* 394329599 */,
164 0x1962317fU/* 425865599 */,
165 0x1d25e9ffU/* 489023999 */,
166 0x21dae4ffU/* 567993599 */,
167 0x259e9d7fU/* 631151999 */,
168 0x277fd0ffU/* 662687999 */,
169 0x2a50f57fU/* 709948799 */,
170 0x2c3228ffU/* 741484799 */,
171 0x2e135c7fU/* 773020799 */,
172 0x30e723ffU/* 820454399 */,
173 0x33b8487fU/* 867715199 */,
174 0x368c0fffU/* 915148799 */,
175 0x43b71b7fU/* 1136073599 */,
176 0x495c077fU/* 1230767999 */,
177 0x4fef92ffU/* 1341100799 */,
178 0x55932d7fU/* 1435708799 */,
179 0x5868467fU/* 1483228799 */,
180 INT32_MAX
181 };
182 const size_t nleaps_s = countof(leaps_s);
183
184 const uint32_t leaps_hms[] = {
185 UINT32_MAX,
186 0x173b3cU/* 1522492 */,
187 0x173b3cU/* 1522492 */,
188 0x173b3cU/* 1522492 */,
189 0x173b3cU/* 1522492 */,
190 0x173b3cU/* 1522492 */,
191 0x173b3cU/* 1522492 */,
192 0x173b3cU/* 1522492 */,
193 0x173b3cU/* 1522492 */,
194 0x173b3cU/* 1522492 */,
195 0x173b3cU/* 1522492 */,
196 0x173b3cU/* 1522492 */,
197 0x173b3cU/* 1522492 */,
198 0x173b3cU/* 1522492 */,
199 0x173b3cU/* 1522492 */,
200 0x173b3cU/* 1522492 */,
201 0x173b3cU/* 1522492 */,
202 0x173b3cU/* 1522492 */,
203 0x173b3cU/* 1522492 */,
204 0x173b3cU/* 1522492 */,
205 0x173b3cU/* 1522492 */,
206 0x173b3cU/* 1522492 */,
207 0x173b3cU/* 1522492 */,
208 0x173b3cU/* 1522492 */,
209 0x173b3cU/* 1522492 */,
210 0x173b3cU/* 1522492 */,
211 0x173b3cU/* 1522492 */,
212 0x173b3cU/* 1522492 */,
213 0x173b3cU/* 1522492 */,
214 UINT32_MAX
215 };
216 const size_t nleaps_hms = countof(leaps_hms);
217
218 /* exported number of leap transitions */
219 const size_t nleaps = countof(leaps_corr);
220
221 #endif /* INCLUDED_ltrcc_generated_def_ */
6161 # Terry Quinn, "The BIPM and the Accurate Measurement
6262 # of Time," Proc. of the IEEE, Vol. 79, pp. 894-905,
6363 # July, 1991. <http://dx.doi.org/10.1109/5.84965>
64 # reprinted in:
64 # reprinted in:
6565 # Christine Hackman and Donald B Sullivan (eds.)
6666 # Time and Frequency Measurement
6767 # American Association of Physics Teachers (1996)
203203 # current -- the update time stamp, the data and the name of the file
204204 # will not change.
205205 #
206 # Updated through IERS Bulletin C55
207 # File expires on: 28 December 2018
208 #
209 #@ 3754944000
206 # Updated through IERS Bulletin C61
207 # File expires on: 28 December 2021
208 #
209 #@ 3849638400
210210 #
211211 2272060800 10 # 1 Jan 1972
212212 2287785600 11 # 1 Jul 1972
251251 # the hash line is also ignored in the
252252 # computation.
253253 #
254 #h 44dcf58c e28d25aa b36612c8 f3d3e8b5 a8fdf478
254 #h 2ab8253d d4380d28 75f01343 381504f8 8f8a4bfc
00 /*** leaps.c -- materialised leap seconds
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** leaps.h -- materialised leap seconds
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** ltrcc.c -- leapseconds materialiser
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5454 #include "version.c"
5555
5656
57 static __attribute__((pure, const)) long int
58 ntp_to_unix_epoch(long int x)
59 {
60 return x - 25567L * 86400L;
57 static __attribute__((const)) unsigned long int
58 ntp_to_unix_epoch(unsigned long int x)
59 {
60 return x - 25567U * 86400U;
6161 }
6262
6363
6767 static int
6868 pr_line_corr(const char *line, size_t llen, va_list UNUSED(vap))
6969 {
70 static long int cor;
70 static unsigned long int cor;
7171 char *sp, *ep;
7272
7373 if (llen == PROLOGUE) {
9595 /* otherwise process */
9696 if ((sp = memchr(line, '\t', llen)) == NULL) {
9797 return -1;
98 } else if ((ep = NULL, cor = strtol(++sp, &ep, 10), ep == NULL)) {
98 } else if ((ep = NULL, cor = strtoul(++sp, &ep, 10), ep == NULL || cor == ULONG_MAX)) {
9999 return -1;
100100 }
101101
107107 static int
108108 pr_line_d(const char *line, size_t llen, va_list vap)
109109 {
110 static long int cor;
110 static unsigned long int cor;
111111 struct dt_d_s d;
112112 dt_dtyp_t typ;
113 long int val;
113 unsigned long int val;
114114 int colp;
115115 char *ep;
116116
154154 return 0;
155155 }
156156 /* otherwise process */
157 if ((ep = NULL, val = strtol(line, &ep, 10), ep == NULL)) {
157 if ((ep = NULL, val = strtoul(line, &ep, 10), ep == NULL || val == ULONG_MAX)) {
158158 return -1;
159159 }
160160
163163 d = dt_dconv(typ, d);
164164
165165 if (!colp) {
166 if ((cor = strtol(ep, &ep, 10), ep == NULL)) {
166 if ((cor = strtoul(ep, &ep, 10), ep == NULL || val == ULONG_MAX)) {
167167 return -1;
168168 }
169169 /* just output the line then */
178178 static int
179179 pr_line_dt(const char *line, size_t llen, va_list vap)
180180 {
181 static long int cor;
181 static unsigned long int cor;
182182 dt_dtyp_t __attribute__((unused)) typ;
183 long int val;
183 unsigned long int val;
184184 int colp;
185185 char *ep;
186186
224224 return 0;
225225 }
226226 /* otherwise process */
227 if ((ep = NULL, val = strtol(line, &ep, 10), ep == NULL)) {
227 if ((ep = NULL, val = strtoul(line, &ep, 10), ep == NULL || val == ULONG_MAX)) {
228228 return -1;
229229 }
230230
233233 val = ntp_to_unix_epoch(val);
234234
235235 if (!colp) {
236 if ((cor = strtol(ep, &ep, 10), ep == NULL)) {
236 if ((cor = strtoul(ep, &ep, 10), ep == NULL || cor == ULONG_MAX)) {
237237 return -1;
238238 }
239239 /* just output the line then */
240 fprintf(stdout, "\t{0x%xU/* %li */, %li},\n",
241 (uint32_t)val, val, cor);
240 fprintf(stdout, "\t{0x%lxU/* %li */, %li},\n",
241 val, val, cor);
242242 } else {
243243 /* column-oriented mode */
244 fprintf(stdout, "\t0x%xU/* %li */,\n", (uint32_t)val, val);
244 fprintf(stdout, "\t0x%lxU/* %li */,\n", val, val);
245245 }
246246 return 0;
247247 }
249249 static int
250250 pr_line_t(const char *line, size_t llen, va_list vap)
251251 {
252 static long int cor;
253 struct dt_t_s t = dt_t_initialiser();
252 static unsigned long int cor;
253 struct dt_t_s t = {DT_TUNK};
254254 dt_dtyp_t typ;
255255 int colp;
256256 char *ep;
257 long int val;
257 unsigned long int val;
258258
259259 /* extract type from inner list */
260260 typ = va_arg(vap, dt_dtyp_t);
291291 return 0;
292292 }
293293 /* otherwise process */
294 if ((ep = NULL, val = strtol(line, &ep, 10), ep == NULL)) {
294 if ((ep = NULL, val = strtoul(line, &ep, 10), ep == NULL || val == ULONG_MAX)) {
295295 return -1;
296296 }
297297 val--;
302302 t.hms.h = val % 24L;
303303
304304 /* read correction */
305 if ((val = strtol(ep, &ep, 10), ep == NULL)) {
305 if ((val = strtoul(ep, &ep, 10), ep == NULL || val == ULONG_MAX)) {
306306 return -1;
307307 }
308308
00 /*** nifty.h -- generally handy macroes
11 *
2 * Copyright (C) 2009-2018 Sebastian Freundt
2 * Copyright (C) 2009-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** strops.c -- useful string operations
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
108108 }
109109
110110 DEFUN int32_t
111 strtoi(const char *str, const char **ep)
111 strtoi32(const char *str, const char **ep)
112112 {
113113 const char *sp = str;
114114 bool negp = false;
115 int32_t res = 0;
115 int32_t res = INT32_MIN;
116116
117117 if (*str == '-') {
118118 negp = true;
121121 while (res < INT32_MAX / 10 && (unsigned char)(*sp ^ '0') < 10U) {
122122 res *= 10, res += (unsigned char)(*sp++ ^ '0');
123123 }
124 if (UNLIKELY(sp == str)) {
125 res = -1;
126 } else if (negp) {
124 if (negp) {
127125 res = -res;
128126 }
129 *ep = (char*)sp;
127 *ep = res > INT32_MIN ? (char*)sp : (char*)str;
128 return res;
129 }
130
131
132 DEFUN int64_t
133 strtoi64(const char *str, const char **ep)
134 {
135 const char *sp = str;
136 bool negp = false;
137 int64_t res = INT64_MIN;
138
139 if (*str == '-') {
140 negp = true;
141 sp++;
142 }
143 while (res < INT64_MAX / 10 && (unsigned char)(*sp ^ '0') < 10U) {
144 res *= 10, res += (unsigned char)(*sp++ ^ '0');
145 }
146 if (negp) {
147 res = -res;
148 }
149 *ep = res > INT64_MIN ? (char*)sp : (char*)str;
130150 return res;
131151 }
132152
00 /*** strops.h -- useful string operations
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5151 padstrtoi_lim(const char *str, const char **ep, int32_t llim, int32_t ulim);
5252
5353 /**
54 * Convert STR to i32 and point to the end of the string in EP. */
54 * Convert STR to i32 and point to the end of the string in EP.
55 * Return INT32_MIN on error. */
5556 extern __attribute__((nonnull(1, 2))) int32_t
56 strtoi(const char *str, const char **ep);
57 strtoi32(const char *str, const char **ep);
58
59 /**
60 * Convert STR to i64 and point to the end of the string in EP.
61 * Return INT64_MIN on error. */
62 extern __attribute__((nonnull(1, 2))) int64_t
63 strtoi64(const char *str, const char **ep);
5764
5865 /**
5966 * Convert roman numeral (string) to i32 and point to its end in EP. */
00 /*** time-core-private.h -- our universe of times, private bits
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** time-core-strpf.c -- parser and formatter funs for time-core
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** time-core-strpf.h -- parser and formatter funs for time-core
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
6565 extern struct dt_t_s __guess_ttyp(struct strpt_s t);
6666
6767
68 /* helpers */
69 static inline __attribute__((pure, const)) struct strpt_s
70 strpt_initialiser(void)
71 {
72 #if defined HAVE_SLOPPY_STRUCTS_INIT
73 static const struct strpt_s res = {};
74 #else
75 static const struct strpt_s res;
76 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
77 return res;
78 }
79
8068 /* self-explanatory funs */
8169 extern int
8270 __strpt_card(struct strpt_s *d, const char *str, struct dt_spec_s s, char **ep);
00 /*** time-core.c -- our universe of times
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
4545 #include <stdbool.h>
4646 #include <sys/time.h>
4747 #include <time.h>
48 #include <strings.h>
4849
4950 #include "time-core.h"
5051 #include "time-core-private.h"
7576 DEFUN struct dt_t_s
7677 __guess_ttyp(struct strpt_s t)
7778 {
78 struct dt_t_s res;
79 struct dt_t_s res = {DT_TUNK};
7980
8081 if (UNLIKELY(!(t.flags.h_set || t.flags.m_set ||
8182 t.flags.s_set || t.flags.ns_set))) {
106107 res.hms.h %= HOURS_PER_DAY / 2U;
107108 res.hms.h += t.flags.pm_p ? 12U : 0U;
108109 }
110 fucked:
109111 return res;
110 fucked:
111 return dt_t_initialiser();
112112 }
113113
114114 DEFUN dt_ttyp_t
132132 DEFUN struct dt_t_s
133133 dt_strpt(const char *str, const char *fmt, char **ep)
134134 {
135 struct dt_t_s res = dt_t_initialiser();
136 struct strpt_s d = strpt_initialiser();
135 struct dt_t_s res = {DT_TUNK};
136 struct strpt_s d = {0};
137137 const char *sp = str;
138138 const char *fp;
139139
169169 DEFUN size_t
170170 dt_strft(char *restrict buf, size_t bsz, const char *fmt, struct dt_t_s that)
171171 {
172 struct strpt_s d;
172 struct strpt_s d = {0};
173173 const char *fp;
174174 char *bp;
175175
177177 return 0;
178178 }
179179
180 d = strpt_initialiser();
181180 d.h = that.hms.h;
182181 d.m = that.hms.m;
183182 d.s = that.hms.s;
270269 /* compute t2 - t1 */
271270 int r = 0;
272271
273 r += (t2.hms.h - t1.hms.h) * SECS_PER_HOUR;
274 r += (t2.hms.m - t1.hms.m) * SECS_PER_MIN;
272 r += (t2.hms.h - t1.hms.h);
273 r *= MINS_PER_HOUR;
274 r += (t2.hms.m - t1.hms.m);
275 r *= SECS_PER_MIN;
275276 r += (t2.hms.s - t1.hms.s);
277 return r;
278 }
279
280 DEFUN int64_t
281 dt_tdiff_ns(struct dt_t_s t1, struct dt_t_s t2)
282 {
283 /* compute t2 - t1 */
284 int64_t r = 0;
285
286 r += (t2.hms.h - t1.hms.h);
287 r *= MINS_PER_HOUR;
288 r += (t2.hms.m - t1.hms.m);
289 r *= SECS_PER_MIN;
290 r += (t2.hms.s - t1.hms.s);
291 r *= NANOS_PER_SEC;
292 r += (int64_t)t2.hms.ns - (int64_t)t1.hms.ns;
276293 return r;
277294 }
278295
291308 DEFUN struct dt_t_s
292309 dt_time(void)
293310 {
294 struct dt_t_s res = {0};
311 struct dt_t_s res = {DT_TUNK};
295312 struct timeval tv;
296313 unsigned int tonly;
297314
00 /*** time-core.h -- our universe of times
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
100100 union {
101101 uint64_t u:56;
102102 struct {
103 signed int sdur;
104 unsigned int nsdur:10;
103 signed int sdur:26;
104 unsigned int nsdur:30;
105105 } __attribute__((packed));
106106 dt_hms_t hms;
107107 } __attribute__((packed));
110110
111111 /* helpers */
112112 #if !defined NANOS_PER_SEC
113 # define NANOS_PER_SEC (1000U * 1000U * 1000U)
113 # define NANOS_PER_SEC (1000 * 1000 * 1000)
114114 #endif /* !SECS_PER_MIN */
115115 #if !defined SECS_PER_MIN
116 # define SECS_PER_MIN (60U)
116 # define SECS_PER_MIN (60)
117117 #endif /* !SECS_PER_MIN */
118118 #if !defined MINS_PER_HOUR
119 # define MINS_PER_HOUR (60U)
119 # define MINS_PER_HOUR (60)
120120 #endif /* !MINS_PER_HOUR */
121121 #if !defined HOURS_PER_DAY
122 # define HOURS_PER_DAY (24U)
122 # define HOURS_PER_DAY (24)
123123 #endif /* !HOURS_PER_DAY */
124124 #if !defined SECS_PER_HOUR
125125 # define SECS_PER_HOUR (SECS_PER_MIN * MINS_PER_HOUR)
155155 extern int dt_tdiff_s(struct dt_t_s t1, struct dt_t_s t2);
156156
157157 /**
158 * Compute the duration between T1 and T2 (as in T2 - T1). */
159 extern int64_t dt_tdiff_ns(struct dt_t_s t1, struct dt_t_s t2);
160
161 /**
158162 * Compare two time values, yielding 0 if they are equal, -1 if T1 is older,
159163 * 1 if T1 is younger than the T2. */
160164 extern int dt_tcmp(struct dt_t_s t1, struct dt_t_s t2);
172176
173177
174178 /* some useful gimmicks, sort of */
175 static inline __attribute__((pure, const)) struct dt_t_s
176 dt_t_initialiser(void)
177 {
178 #if defined HAVE_SLOPPY_STRUCTS_INIT
179 static const struct dt_t_s res = {};
180 #else
181 static const struct dt_t_s res;
182 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
183 return res;
184 }
185
186179 static inline unsigned int
187180 __secs_since_midnight(struct dt_t_s t)
188181 {
00 /*** token.c -- tokeniser specs and stuff
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5555 struct dt_spec_s
5656 __tok_spec(const char *fp, const char **ep)
5757 {
58 struct dt_spec_s res = spec_initialiser();
58 struct dt_spec_s res = {0};
5959
6060 if (*fp != '%') {
6161 goto out;
145145 break;
146146 case 's':
147147 res.spfl = DT_SPFL_N_EPOCH;
148 if (fp[1U] == '%' && fp[2U] == 'N') {
149 res.spfl = DT_SPFL_N_EPOCHNS;
150 fp += 2U;
151 }
148152 break;
149153 case 'Z':
150154 res.spfl = DT_SPFL_N_ZDIFF;
00 /*** token.h -- tokeniser specs and stuff
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
8484 /* date/time specs */
8585 /* %s epoch spec, non-standard */
8686 DT_SPFL_N_EPOCH,
87 /* %s%N epoch spec, non-standard */
88 DT_SPFL_N_EPOCHNS,
8789 /* %Z zone difference */
8890 DT_SPFL_N_ZDIFF,
8991 DT_SPFL_N_DTLAST = DT_SPFL_N_ZDIFF,
154156 extern struct dt_spec_s __tok_spec(const char *fp, const char **ep);
155157
156158
157 static inline __attribute__((pure, const)) struct dt_spec_s
158 spec_initialiser(void)
159 {
160 #if defined HAVE_SLOPPY_STRUCTS_INIT
161 static const struct dt_spec_s res = {};
162 #else
163 static const struct dt_spec_s res;
164 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
165 return res;
166 }
167
168 static inline __attribute__((pure, const)) char
159 static inline __attribute__((const)) char
169160 padchar(struct dt_spec_s s)
170161 {
171162 return (char)(0x20U ^ ((s.pad < DT_SPPAD_SPC) << 4U));
00 /*** tzmap.c -- zonename maps
11 *
2 * Copyright (C) 2014-2018 Sebastian Freundt
2 * Copyright (C) 2014-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
140140 }
141141 #endif /* STANDALONE */
142142
143 static void*
144 deconst(const void *ptr)
145 {
146 return (char*)1 + ((const char*)ptr - (char*)1U);
147 }
148
149143 static const void*
150144 align_to(size_t tz, const void *p)
151145 {
243237 int fd = tzm_fd(m);
244238
245239 /* hopefully privately mapped */
246 munmap(deconst(m), fz);
240 munmap(m, fz);
247241 close(fd);
248242 return;
249243 }
00 /*** tzmap.h -- zonename maps
11 *
2 * Copyright (C) 2014-2018 Sebastian Freundt
2 * Copyright (C) 2014-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
4343 */
4444 #define TZM_MAGIC "TZm1"
4545
46 typedef const struct tzmap_s *tzmap_t;
46 typedef struct tzmap_s *tzmap_t;
4747
4848 typedef uint32_t znoff_t;
4949
00 /*** tzraw.c -- reader for olson database zoneinfo files
11 *
2 * Copyright (C) 2009-2018 Sebastian Freundt
2 * Copyright (C) 2009-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5757 #include <fcntl.h>
5858 #include <time.h>
5959 #include <limits.h>
60
60 #include <assert.h>
6161 #if defined HAVE_TZFILE_H
6262 # include <tzfile.h>
6363 #endif /* HAVE_TZFILE_H */
8181 # define MAP_ANON (0x1000U)
8282 #endif /* MAP_ANON->MAP_ANONYMOUS */
8383
84 typedef struct zih_s *zih_t;
85 typedef int32_t *ztr_t;
86 typedef uint8_t *zty_t;
87 typedef struct ztrdtl_s *ztrdtl_t;
88 typedef char *znam_t;
84 typedef uint8_t zty_t;
85 typedef int zof_t;
8986
9087 /* this is tzhead but better */
9188 struct zih_s {
9693 /* reserved--must be zero */
9794 char tzh_reserved[15];
9895 /* number of transition time flags in gmt */
99 uint32_t tzh_ttisgmtcnt;
96 unsigned char tzh_ttisgmtcnt[4];
10097 /* number of transition time flags in local time */
101 uint32_t tzh_ttisstdcnt;
98 unsigned char tzh_ttisstdcnt[4];
10299 /* number of recorded leap seconds */
103 uint32_t tzh_leapcnt;
100 unsigned char tzh_leapcnt[4];
104101 /* number of recorded transition times */
105 uint32_t tzh_timecnt;
102 unsigned char tzh_timecnt[4];
106103 /* number of local time type */
107 uint32_t tzh_typecnt;
104 unsigned char tzh_typecnt[4];
108105 /* number of abbreviation chars */
109 uint32_t tzh_charcnt;
106 unsigned char tzh_charcnt[4];
110107 };
111108
112109 /* this one must be packed to account for the packed file layout */
118115
119116 /* convenience struct where we copy all the good things into one */
120117 struct zspec_s {
121 int32_t since;
118 stamp_t since;
122119 unsigned int offs:31;
123120 unsigned int dstp:1;
124 znam_t name;
121 char *name;
125122 } __attribute__((packed, aligned(16)));
126123
127124 /* for leap second transitions */
128 struct zleap_tr_s {
125 struct zlp_s {
129126 /* cut-off stamp */
130 int32_t t;
127 stamp_t t;
131128 /* cumulative correction since T */
132129 int32_t corr;
133130 };
134131
135 /* leap second support missing */
132 /* leap second support missing as we do our own, see leaps.[ch] */
136133 struct zif_s {
137 size_t mpsz;
138 zih_t hdr;
139
140 /* transitions */
141 ztr_t trs;
142 /* types */
143 zty_t tys;
144 /* type array, deser'd, transition details array */
145 ztrdtl_t tda;
146 /* zonename array */
147 znam_t zn;
148
149 /* file descriptor, if >0 this also means all data is in BE */
150 int fd;
134 size_t ntr;
135 size_t nty;
136 size_t nlp;
137
138 /* NTR transitions */
139 stamp_t *trs;
140 /* NTR types */
141 zty_t *tys;
142 /* NTY type array, transition details */
143 zof_t *ofs;
144 /* leaps */
145 struct zlp_s *lps;
151146
152147 /* for special zones */
153148 coord_zone_t cz;
154149
155150 /* zone caching, between PREV and NEXT the offset is OFFS */
156151 struct zrng_s cache;
152
153 stamp_t data[0] __attribute__((aligned(16)));
157154 };
158155
159156
163160 static const char tzdir[] = "/usr/share/zoneinfo";
164161 #endif
165162
166 #if defined ZONEINFO_UTC_RIGHT
167 /* where can we deduce some info for our coordinated zones */
168 static const char coord_fn[] = ZONEINFO_UTC_RIGHT;
169 #elif defined ZONEINFO_UTC
170 static const char coord_fn[] = ZONEINFO_UTC;
171 #else /* !ZONEINFO_UTC_RIGHT && !ZONEINFO_UTC */
172 static const char coord_fn[] = "/usr/share/zoneinfo/UTC";
173 #endif /* ZONEINFO_UTC_RIGHT || ZONEINFO_UTC */
174
175163 #define PROT_MEMMAP PROT_READ | PROT_WRITE
176164 #define MAP_MEMMAP MAP_PRIVATE | MAP_ANON
177
178 #define AS_MUT_ZIF(x) ((struct zif_s*)deconst(x))
179165
180166 /* special zone names */
181167 static const char coord_zones[][4] = {
185171 "GPS",
186172 };
187173
188 static void*
189 deconst(const void *ptr)
190 {
191 return (char*)1 + ((const char*)ptr - (char*)1U);
192 }
193
194 /**
195 * Return the total number of transitions in zoneinfo file Z. */
196 DEFUN inline size_t
197 zif_ntrans(const struct zif_s z[static 1U])
198 {
199 return z->hdr->tzh_timecnt;
200 }
201
202 /**
203 * Return the total number of transition types in zoneinfo file Z. */
204 static inline size_t
205 zif_ntypes(const struct zif_s z[static 1U])
206 {
207 return z->hdr->tzh_typecnt;
208 }
209
210 /**
211 * Return the total number of transitions in zoneinfo file Z. */
212 static inline size_t
213 zif_nchars(const struct zif_s z[static 1U])
214 {
215 return z->hdr->tzh_charcnt;
216 }
217
218
219 /**
220 * Return the total number of leap second transitions. */
221 static __attribute__((unused)) inline size_t
222 zif_nleaps(const struct zif_s z[static 1U])
223 {
224 return z->hdr->tzh_leapcnt;
225 }
174 static inline uint32_t
175 RDU32(const unsigned char *x)
176 {
177 uint32_t r = 0U;
178 r ^= x[0U] << 24U;
179 r ^= x[1U] << 16U;
180 r ^= x[2U] << 8U;
181 r ^= x[3U] << 0;
182 return r;
183 }
184
185 static inline int32_t
186 RDI32(const unsigned char *x)
187 {
188 int32_t r = 0U;
189 r ^= x[0U] << 24U;
190 r ^= x[1U] << 16U;
191 r ^= x[2U] << 8U;
192 r ^= x[3U] << 0;
193 return r;
194 }
195
196 static inline int64_t
197 RDI64(const unsigned char *x)
198 {
199 int64_t r = 0U;
200 r ^= (uint64_t)x[0U] << 56U;
201 r ^= (uint64_t)x[1U] << 48U;
202 r ^= (uint64_t)x[2U] << 40U;
203 r ^= (uint64_t)x[3U] << 32U;
204 r ^= (uint64_t)x[4U] << 24U;
205 r ^= (uint64_t)x[5U] << 16U;
206 r ^= (uint64_t)x[6U] << 8U;
207 r ^= (uint64_t)x[7U] << 0;
208 return r;
209 }
210
226211
227212 /**
228213 * Return the transition time stamp of the N-th transition in Z. */
229 static inline int32_t
214 static inline stamp_t
230215 zif_trans(const struct zif_s z[static 1U], int n)
231216 {
232 size_t ntr = zif_ntrans(z);
217 size_t ntr = z->ntr;
233218
234219 if (UNLIKELY(!ntr || n < 0)) {
235220 /* return earliest possible stamp */
236 return INT_MIN;
221 return STAMP_MIN;
237222 } else if (UNLIKELY(n >= (ssize_t)ntr)) {
238223 /* return last known stamp */
239224 return z->trs[ntr - 1U];
245230 /**
246231 * Return the transition type index of the N-th transition in Z. */
247232 static inline uint8_t
248 zif_type(const struct zif_s z[static 1U], int n)
249 {
250 size_t ntr = zif_ntrans(z);
233 _zif_type(const struct zif_s z[static 1U], int n)
234 {
235 size_t ntr = z->ntr;
251236
252237 if (UNLIKELY(!ntr || n < 0)) {
253238 /* return unknown type */
261246 }
262247
263248 /**
264 * Return the transition details after the N-th transition in Z. */
265 inline struct ztrdtl_s
266 zif_trdtl(const struct zif_s z[static 1U], int n)
249 * Return the gmt offset after the N-th transition in Z. */
250 static inline int
251 _zif_troffs(const struct zif_s z[static 1U], int n)
267252 {
268253 /* no bound check! */
269 struct ztrdtl_s res;
270 uint8_t idx = zif_type(z, n);
271 res = z->tda[idx];
272 return res;
254 uint8_t idx = _zif_type(z, n);
255 return z->ofs[idx];
273256 }
274257
275258 /**
276 * Return the gmt offset the N-th transition in Z. */
277 static inline int32_t
278 zif_troffs(const struct zif_s z[static 1U], int n)
259 * Return the gmt offset after the N-th transition in Z. */
260 DEFUN int
261 zif_troffs(zif_t z, int n)
279262 {
280263 /* no bound check! */
281 uint8_t idx = zif_type(z, n);
282 return z->tda[idx].offs;
264 uint8_t idx = _zif_type(z, n);
265 return z->ofs[idx];
283266 }
284267
285268 /**
286 * Return the zonename after the N-th transition in Z. */
287 static __attribute__((unused)) inline znam_t
288 zif_trname(const struct zif_s z[static 1U], int n)
289 {
290 /* no bound check! */
291 uint8_t idx = zif_type(z, n);
292 uint8_t jdx = z->tda[idx].abbr;
293 return z->zn + jdx;
294 }
295
296 /**
297 * Return a succinct summary of the situation after transition N in Z. */
298 static __attribute__((unused)) inline struct zspec_s
299 zif_spec(const struct zif_s z[static 1U], int n)
300 {
301 struct zspec_s res;
302 uint8_t idx = zif_type(z, n);
303 uint8_t jdx = z->tda[idx].abbr;
304
305 res.since = zif_trans(z, n);
306 res.offs = z->tda[idx].offs;
307 res.dstp = z->tda[idx].dstp;
308 res.name = z->zn + jdx;
309 return res;
269 * Return the transition time stamp of the N-th transition in Z. */
270 DEFUN inline size_t
271 zif_ntrans(zif_t z)
272 {
273 return z->ntr;
310274 }
311275
312276
324288 static int
325289 __open_zif(const char *file)
326290 {
327 if (file == NULL || file[0] == '\0') {
291 size_t len;
292
293 if (UNLIKELY(file == NULL || file[0] == '\0')) {
294 return -1;
295 } else if (UNLIKELY((len = strlen(file)) >= 3071U)) {
328296 return -1;
329297 } else if (file[0] != '/') {
330298 /* not an absolute file name */
331 size_t len = strlen(file);
332299 size_t tzd_len = sizeof(tzdir) - 1;
333300 char new[tzd_len + 1U + len + 1U];
334301 char *tmp = new + tzd_len;
342309 return open(file, O_RDONLY, 0644);
343310 }
344311
345 static void
346 __init_zif(struct zif_s z[static 1U])
347 {
348 size_t ntr;
349 size_t nty;
350
351 if (z->fd > STDIN_FILENO) {
352 /* probably in BE then, eh? */
353 ntr = be32toh(zif_ntrans(z));
354 nty = be32toh(zif_ntypes(z));
355 } else {
356 ntr = zif_ntrans(z);
357 nty = zif_ntypes(z);
358 }
359
360 z->trs = (ztr_t)(z->hdr + 1);
361 z->tys = (zty_t)(z->trs + ntr);
362 z->tda = (ztrdtl_t)(z->tys + ntr);
363 z->zn = (char*)(z->tda + nty);
312
313 DEFUN void
314 zif_close(zif_t z)
315 {
316 if (!z->cz) {
317 free(z);
318 }
364319 return;
365320 }
366321
367 static int
368 __read_zif(struct zif_s tgt[static 1U], int fd)
322 DEFUN zif_t
323 zif_open(const char *file)
369324 {
370325 struct stat st;
371
372 if (fstat(fd, &st) < 0) {
373 return -1;
374 } else if (st.st_size <= 4) {
375 return -1;
376 }
377 tgt->mpsz = st.st_size;
378 tgt->fd = fd;
379 tgt->hdr = mmap(NULL, tgt->mpsz, PROT_READ, MAP_SHARED, fd, 0);
380 if (tgt->hdr == MAP_FAILED) {
381 return -1;
382 }
383 /* all clear so far, populate */
384 __init_zif(tgt);
385 return 0;
386 }
387
388 static void
389 __conv_hdr(struct zih_s tgt[static 1U], const struct zih_s src[static 1U])
390 {
391 /* copy SRC to TGT doing byte-order conversions on the way */
392 memcpy(tgt, src, offsetof(struct zih_s, tzh_ttisgmtcnt));
393 tgt->tzh_ttisgmtcnt = be32toh(src->tzh_ttisgmtcnt);
394 tgt->tzh_ttisstdcnt = be32toh(src->tzh_ttisstdcnt);
395 tgt->tzh_leapcnt = be32toh(src->tzh_leapcnt);
396 tgt->tzh_timecnt = be32toh(src->tzh_timecnt);
397 tgt->tzh_typecnt = be32toh(src->tzh_typecnt);
398 tgt->tzh_charcnt = be32toh(src->tzh_charcnt);
399 return;
400 }
401
402 static void
403 __conv_zif(struct zif_s tgt[static 1U], const struct zif_s src[static 1U])
404 {
405 size_t ntr;
406 size_t nty;
407 size_t nch;
408
409 /* convert header to hbo */
410 __conv_hdr(tgt->hdr, src->hdr);
411
412 /* everything in host byte-order already */
413 ntr = zif_ntrans(tgt);
414 nty = zif_ntypes(tgt);
415 nch = zif_nchars(tgt);
416 __init_zif(tgt);
417
418 /* transition vector */
419 for (size_t i = 0; i < ntr; i++) {
420 tgt->trs[i] = be32toh(src->trs[i]);
421 }
422
423 /* type vector, nothing to byte-swap here */
424 memcpy(tgt->tys, src->tys, ntr * sizeof(*tgt->tys));
425
426 /* transition details vector */
427 for (size_t i = 0; i < nty; i++) {
428 tgt->tda[i].offs = be32toh(src->tda[i].offs);
429 tgt->tda[i].dstp = src->tda[i].dstp;
430 tgt->tda[i].abbr = src->tda[i].abbr;
431 }
432
433 /* zone name array */
434 memcpy(tgt->zn, src->zn, nch * sizeof(*tgt->zn));
435 return;
436 }
437
438 static struct zif_s*
439 __copy_conv(const struct zif_s z[static 1U])
440 {
441 /* copy Z and do byte-order conversions */
442 size_t mpsz;
443 struct zif_s *res = NULL;
444
445 /* compute a size */
446 mpsz = z->mpsz + sizeof(*z);
447
448 /* we'll mmap ourselves a slightly larger struct so
449 * res + 1 points to the header, while res + 0 is the zif_t */
450 res = mmap(NULL, mpsz, PROT_MEMMAP, MAP_MEMMAP, -1, 0);
451 if (UNLIKELY(res == MAP_FAILED)) {
326 coord_zone_t cz;
327 int fd;
328 struct zif_s tmp;
329 struct zif_s *res;
330 unsigned char *map;
331 const unsigned char *hdr, *beef;
332 size_t real_ntr = 0U;
333
334 /* check for special time zones */
335 if ((cz = coord_zone(file)) > TZCZ_UNK) {
336 /* we used to go to the UTC file hoping they're coordinated well,
337 * however seeing as we're dealing with leap seconds ourself we
338 * can just skip the file reading and return a static instance */
339 static struct zif_s coord_zifs[] = {
340 [TZCZ_UTC] = {.cz = TZCZ_UTC, .ofs = (void*)&coord_zifs},
341 [TZCZ_TAI] = {.cz = TZCZ_TAI, .ofs = (void*)&coord_zifs},
342 [TZCZ_GPS] = {.cz = TZCZ_GPS, .ofs = (void*)&coord_zifs},
343 };
344 return coord_zifs + cz;
345 }
346
347 if (UNLIKELY((fd = __open_zif(file)) < STDIN_FILENO)) {
452348 return NULL;
453 }
454 /* great, now to some initial assignments */
455 res->mpsz = mpsz;
456 res->hdr = (void*)(res + 1);
457 /* make sure we denote that this isnt connected to a file */
458 res->fd = -1;
459 /* copy the flags though */
460 res->cz = z->cz;
461
462 /* convert the header and payload now */
463 __conv_zif(res, z);
464
465 /* that's all :) */
349 } else if (fstat(fd, &st) < 0) {
350 goto cout;
351 } else if (st.st_size <= 20) {
352 goto cout;
353 }
354
355 map = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
356 if (map == MAP_FAILED) {
357 goto cout;
358 }
359
360 if (UNLIKELY(memcmp(map, TZ_MAGIC, 4U))) {
361 goto unmp;
362 }
363 /* read hdr with undefined alignment */
364 hdr = map;
365 switch (hdr[offsetof(struct zih_s, tzh_version)]) {
366 const unsigned char *hds;
367 case '2':
368 /*@fallthrough@*/
369 case '3':
370 hds = hdr;
371 tmp.nlp = RDU32(hdr + offsetof(struct zih_s, tzh_leapcnt));
372 tmp.ntr = RDU32(hdr + offsetof(struct zih_s, tzh_timecnt));
373 tmp.nty = RDU32(hdr + offsetof(struct zih_s, tzh_typecnt));
374 hds += sizeof(struct zih_s);
375 hds += tmp.ntr * 4U;
376 hds += tmp.ntr;
377 hds += tmp.nty * (4U + 1U + 1U);
378 hds += RDU32(hdr + offsetof(struct zih_s, tzh_charcnt));
379 hds += tmp.nlp * (4U + 4U);
380 hds += RDU32(hdr + offsetof(struct zih_s, tzh_ttisstdcnt));
381 hds += RDU32(hdr + offsetof(struct zih_s, tzh_ttisgmtcnt));
382
383 if (UNLIKELY(memcmp(hds, TZ_MAGIC, 4U))) {
384 goto unmp;
385 }
386 hdr = hds;
387 case '\0':
388 tmp.nlp = RDU32(hdr + offsetof(struct zih_s, tzh_leapcnt));
389 tmp.ntr = RDU32(hdr + offsetof(struct zih_s, tzh_timecnt));
390 tmp.nty = RDU32(hdr + offsetof(struct zih_s, tzh_typecnt));
391 break;
392 default:
393 goto unmp;
394 }
395 /* alloc space, don't read leaps just transitions and types */
396 res = malloc(sizeof(*res) +
397 tmp.ntr * sizeof(*res->trs) +
398 tmp.nty * sizeof(*res->ofs) +
399 tmp.ntr * sizeof(*res->tys) +
400 0);
401 if (UNLIKELY(res == NULL)) {
402 goto unmp;
403 }
404 /* otherwise fill */
405 *res = tmp;
406 res->trs = (stamp_t*)(res->data + 0);
407 res->ofs = (zof_t*)(res->trs + tmp.ntr);
408 res->tys = (zty_t*)(res->ofs + tmp.nty);
409 res->lps = NULL;
410 res->cz = cz;
411 res->cache = (struct zrng_s){0};
412 /* copy data (and bring to host order) */
413 beef = hdr + sizeof(struct zih_s);
414 switch (hdr[offsetof(struct zih_s, tzh_version)]) {
415 case '2':
416 /*@fallthrough@*/
417 case '3':
418 for (size_t i = 0U; i < tmp.ntr; i++) {
419 res->trs[i] = RDI64(beef + 8U * i);
420 }
421 beef += 8U * tmp.ntr;
422 memcpy(res->tys, beef, tmp.ntr);
423 beef += tmp.ntr;
424 for (size_t i = 0U; i < tmp.nty; i++) {
425 res->ofs[i] = RDI32(beef + 6U * i);
426 }
427 break;
428 case '\0':
429 for (size_t i = 0U; i < tmp.ntr; i++) {
430 res->trs[i] = RDI32(beef + 4U * i);
431 }
432 beef += 4U * tmp.ntr;
433 memcpy(res->tys, beef, tmp.ntr);
434 beef += tmp.ntr;
435 for (size_t i = 0U; i < tmp.nty; i++) {
436 res->ofs[i] = RDI32(beef + 6U * i);
437 }
438 break;
439 }
440 /* clean up */
441 munmap(map, st.st_size);
442 close(fd);
443 /* compactify, we disallow transitions to the same type */
444 real_ntr += res->ntr > 0U;
445 for (size_t i = 1U; i < res->ntr; i++) {
446 if (res->tys[i - 1U] != res->tys[i - 0U]) {
447 res->trs[real_ntr] = res->trs[i];
448 res->tys[real_ntr] = res->tys[i];
449 real_ntr++;
450 }
451 }
452 res->ntr = real_ntr;
466453 return res;
467 }
468
469 static struct zif_s*
470 __copy(const struct zif_s z[static 1U])
454 unmp:
455 munmap(map, st.st_size);
456 cout:
457 close(fd);
458 return NULL;
459 }
460
461 DEFUN zif_t
462 zif_copy(zif_t z)
471463 {
472464 /* copy Z into a newly allocated zif_t object
473465 * if applicable also perform byte-order conversions */
474466 struct zif_s *res;
475467
476 if (z->fd > STDIN_FILENO) {
477 return __copy_conv(z);
478 }
479 /* otherwise it's a plain copy */
480 res = mmap(NULL, z->mpsz, PROT_MEMMAP, MAP_MEMMAP, -1, 0);
481 if (UNLIKELY(res == MAP_FAILED)) {
482 return NULL;
483 }
484 memcpy(res, z, z->mpsz);
485 __init_zif(res);
486 return res;
487 }
488
489 DEFUN zif_t
490 zif_copy(zif_t z)
491 {
492 /* copy Z into a newly allocated zif_t object
493 * if applicable also perform byte-order conversions */
494 if (UNLIKELY(z == NULL)) {
468 res = malloc(sizeof(*z) +
469 z->ntr * sizeof(*z->trs) +
470 z->nty * sizeof(*z->ofs) +
471 z->ntr * sizeof(*z->tys) +
472 0);
473
474 if (UNLIKELY(res == NULL)) {
495475 /* no need to bother */
496476 return NULL;
497477 }
498 return __copy(z);
499 }
500
501 static void
502 __close(const struct zif_s z[static 1U])
503 {
504 if (z->fd > STDIN_FILENO) {
505 close(z->fd);
506 }
507 /* check if z is in mmap()'d space */
508 if (z->hdr == MAP_FAILED) {
509 /* not sure what to do */
510 ;
511 } else if ((z + 1) != (void*)z->hdr) {
512 /* z->hdr is mmapped, z is not */
513 munmap((void*)z->hdr, z->mpsz);
514 } else {
515 munmap(deconst(z), z->mpsz);
516 }
517 return;
518 }
519
520 DEFUN void
521 zif_close(zif_t z)
522 {
523 if (UNLIKELY(z == NULL)) {
524 /* nothing to do */
525 return;
526 }
527 __close((const void*)z);
528 return;
529 }
530
531 DEFUN zif_t
532 zif_open(const char *file)
533 {
534 coord_zone_t cz;
535 int fd;
536 struct zif_s tmp[1];
537 struct zif_s *res;
538
539 /* check for special time zones */
540 if ((cz = coord_zone(file)) > TZCZ_UNK) {
541 /* use UTC file */
542 file = coord_fn;
543 }
544
545 if (UNLIKELY((fd = __open_zif(file)) < STDIN_FILENO)) {
546 return NULL;
547 } else if (UNLIKELY(__read_zif(tmp, fd) < 0)) {
548 return NULL;
549 }
550 /* otherwise all's fine, it's still BE
551 * assign the coord zone type if any and convert to host byte-order */
552 tmp->cz = cz;
553 res = __copy(tmp);
554 __close(tmp);
478 /* initialise */
479 res->ntr = z->ntr;
480 res->nty = z->nty;
481 res->nlp = z->nlp;
482 res->trs = (stamp_t*)(res->data + 0);
483 res->ofs = (zof_t*)(res->trs + z->ntr);
484 res->tys = (zty_t*)(res->ofs + z->nty);
485 res->lps = NULL;
486 res->cz = z->cz;
487 res->cache = (struct zrng_s){0};
488 /* ... and copy */
489 memcpy(res->trs, z->trs, z->ntr * sizeof(*z->trs));
490 memcpy(res->ofs, z->ofs, z->nty * sizeof(*z->ofs));
491 memcpy(res->tys, z->tys, z->ntr * sizeof(*z->tys));
555492 return res;
556493 }
557494
560497 #include "leap-seconds.def"
561498
562499 static inline int
563 __find_trno(const struct zif_s z[static 1U], int32_t t, int min, int max)
500 __find_trno(const struct zif_s z[static 1U], stamp_t t, int min, int max)
564501 {
565502 /* find the last transition before T, T is expected to be UTC
566503 * if T is before any known transition return -1 */
574511 }
575512
576513 do {
577 int32_t tl, tu;
514 stamp_t tl, tu;
578515 int this = (min + max) / 2;
579516
580517 tl = zif_trans(z, this);
593530 }
594531
595532 DEFUN inline int
596 zif_find_trans(zif_t z, int32_t t)
533 zif_find_trans(zif_t z, stamp_t t)
597534 {
598535 /* find the last transition before T, T is expected to be UTC
599536 * if T is before any known transition return -1 */
600 int max = zif_ntrans(z);
537 int max = z->ntr;
601538 int min = 0;
602539
603540 return __find_trno(z, t, min, max);
604541 }
605542
606543 static struct zrng_s
607 __find_zrng(const struct zif_s z[static 1U], int32_t t, int min, int max)
544 __find_zrng(const struct zif_s z[static 1U], stamp_t t, int min, int max)
608545 {
609546 struct zrng_s res;
610547 int trno;
613550 res.prev = zif_trans(z, trno);
614551 if (UNLIKELY(trno <= 0 && t < res.prev)) {
615552 res.trno = 0U;
616 res.prev = INT_MIN;
553 res.prev = STAMP_MIN;
617554 /* assume the first offset has always been there */
618555 res.next = res.prev;
619556 } else if (UNLIKELY(trno < 0)) {
620557 /* special case where no transitions are recorded */
621558 res.trno = 0U;
622 res.prev = INT_MIN;
623 res.next = INT_MAX;
559 res.prev = STAMP_MIN;
560 res.next = STAMP_MAX;
624561 } else {
625562 res.trno = (uint8_t)trno;
626 if (LIKELY(trno + 1U < zif_ntrans(z))) {
563 if (LIKELY(trno + 1U < z->ntr)) {
627564 res.next = zif_trans(z, trno + 1U);
628565 } else {
629 res.next = INT_MAX;
630 }
631 }
632 res.offs = zif_troffs(z, res.trno);
566 res.next = STAMP_MAX;
567 }
568 }
569 res.offs = _zif_troffs(z, res.trno);
633570 return res;
634571 }
635572
636 DEFUN inline struct zrng_s
637 zif_find_zrng(zif_t z, int32_t t)
573 DEFUN struct zrng_s
574 zif_find_zrng(zif_t z, stamp_t t)
638575 {
639576 /* find the last transition before time, time is expected to be UTC */
640 int max = zif_ntrans(z);
577 int max = z->ntr;
641578 int min = 0;
642579
643580 return __find_zrng(z, t, min, max);
644581 }
645582
646 static int32_t
647 __tai_offs(int32_t t)
583 static stamp_t
584 __tai_offs(stamp_t t)
648585 {
649586 /* difference of TAI and UTC at epoch instant */
650587 zidx_t zi = leaps_before_si32(leaps_s, nleaps_corr, t);
652589 return leaps_corr[zi];
653590 }
654591
655 static int32_t
656 __gps_offs(int32_t t)
592 static stamp_t
593 __gps_offs(stamp_t t)
657594 {
658595 /* TAI - GPS = 19 on 1980-01-06, so use that identity here */
659 const int32_t gps_offs_epoch = 19;
596 const stamp_t gps_offs_epoch = 19;
660597 if (UNLIKELY(t < 315964800)) {
661598 return 0;
662599 }
663600 return __tai_offs(t) - gps_offs_epoch;
664601 }
665602
666 static int32_t
667 __offs(struct zif_s z[static 1U], int32_t t)
603 static stamp_t
604 __offs(struct zif_s z[static 1U], stamp_t t)
668605 {
669606 /* return the offset of T in Z and cache the result. */
670607 int min;
688625 return z->cache.offs;
689626 } else if (t >= z->cache.next) {
690627 min = z->cache.trno + 1;
691 max = zif_ntrans(z);
628 max = z->ntr;
692629 } else if (t < z->cache.prev) {
693630 max = z->cache.trno;
694631 min = 0;
700637 return (z->cache = __find_zrng(z, t, min, max)).offs;
701638 }
702639
703 DEFUN int32_t
704 zif_utc_time(zif_t z, int32_t t)
640 DEFUN stamp_t
641 zif_utc_time(zif_t z, stamp_t t)
705642 {
706643 /* here's the setup, given t in local time, we denote the corresponding
707644 * UTC time by t' = t - x' where x' is the true offset
714651 * time stamp to an offset. */
715652 /* make me use the cache please! */
716653 /* let's go */
717 int32_t xi = 0;
718 int32_t xj;
719 int32_t old = -1;
654 stamp_t xi = 0;
655 stamp_t xj;
656 stamp_t old = -1;
720657
721658 /* jump off the cliff if Z is nought */
722659 if (UNLIKELY(z == NULL)) {
723660 return t;
724661 }
725662
726 while ((xj = __offs(AS_MUT_ZIF(z), t - xi)) != xi && xi != old) {
663 while ((xj = __offs(z, t - xi)) != xi && xi != old) {
727664 old = xi = xj;
728665 }
729666 return t - xj;
730667 }
731668
732669 /* convert utc to local */
733 DEFUN int32_t
734 zif_local_time(zif_t z, int32_t t)
670 DEFUN stamp_t
671 zif_local_time(zif_t z, stamp_t t)
735672 {
736673 /* jump off the cliff if Z is nought */
737674 if (UNLIKELY(z == NULL)) {
738675 return t;
739676 }
740 return t + __offs(AS_MUT_ZIF(z), t);
677 return t + __offs(z, t);
741678 }
742679
743680 #endif /* INCLUDED_tzraw_c_ */
681
682 #if defined STANDALONE
683 #include <stdio.h>
684
685 int
686 main(int argc, char *argv[])
687 {
688 int rc = 0;
689
690 for (int i = 1; i < argc; i++) {
691 zif_t z = zif_open(argv[i]);
692
693 if (z == NULL) {
694 rc++;
695 continue;
696 }
697
698 puts(argv[i]);
699 printf(" ntr\t%zu\n", z->ntr);
700 printf(" nty\t%zu\n", z->nty);
701 printf(" nlp\t%zu\n", z->nlp);
702
703 for (size_t j = 0U; j < z->ntr; j++) {
704 printf(" tr[%zu]\t%ld\t%hhu\n", j, z->trs[j], z->tys[j]);
705 }
706 for (size_t j = 0U; j < z->nty; j++) {
707 printf(" of[%zu]\t%d\n", j, z->ofs[j]);
708 }
709 zif_close(z);
710 }
711 return rc;
712 }
713 #endif /* STANDALONE */
744714 /* tzraw.c ends here */
00 /*** tzraw.h -- reader for olson database zoneinfo files
11 *
2 * Copyright (C) 2009-2018 Sebastian Freundt
2 * Copyright (C) 2009-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
3838 #define INCLUDED_tzraw_h_
3939
4040 #include <stdint.h>
41 #include <limits.h>
4241 #include "leaps.h"
4342
4443 #if defined __cplusplus
101100
102101
103102 /* now our view on things */
104 typedef const struct zif_s *zif_t;
103 typedef struct zif_s *zif_t;
104 typedef int64_t stamp_t;
105
106 #define STAMP_MIN (-140737488355328LL)
107 #define STAMP_MAX (140737488355327LL)
105108
106109 typedef enum {
107110 TZCZ_UNK,
113116
114117 /* for the one tool that needs raw transitions */
115118 struct zrng_s {
116 int32_t prev, next;
119 stamp_t prev, next;
117120 signed int offs:24;
118121 unsigned int trno:8;
119122 } __attribute__((packed));
135138
136139 /**
137140 * Find the most recent transition in Z before T. */
138 extern int zif_find_trans(zif_t z, int32_t t);
141 extern int zif_find_trans(zif_t z, stamp_t t);
139142
140143 /**
141144 * Find a range of transitions in Z that T belongs to. */
142 extern struct zrng_s zif_find_zrng(zif_t z, int32_t t);
145 extern struct zrng_s zif_find_zrng(zif_t z, stamp_t t);
143146
144147 /**
145148 * Given T in local time specified by Z, return a T in UTC. */
146 extern int32_t zif_utc_time(zif_t z, int32_t t);
149 extern stamp_t zif_utc_time(zif_t z, stamp_t t);
147150
148151 /**
149152 * Given T in UTC, return a T in local time specified by Z. */
150 extern int32_t zif_local_time(zif_t z, int32_t t);
153 extern stamp_t zif_local_time(zif_t z, stamp_t t);
151154
152155
153156 /* exposure for specific zif-inspecting tools (dzone(1) for one) */
157 /**
158 * Return the gmt offset (in seconds) after the N-th transition in Z. */
159 extern int zif_troffs(zif_t z, int n);
160
161 /**
162 * Return the number of transitions in Z. */
154163 extern size_t zif_ntrans(zif_t z);
155
156 extern struct ztrdtl_s zif_trdtl(zif_t z, int n);
157164
158165 #if defined __cplusplus
159166 }
00 /*** yd.c -- guts for yd dates that consist of a year and a year-day
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
140140 # undef A
141141 # undef S
142142
143 static inline __attribute__((const, pure)) __jan01_wday_block_t
143 static inline __attribute__((pure)) __jan01_wday_block_t
144144 __get_jan01_block(unsigned int year)
145145 {
146146 return __jan01_wday[(year - __JAN01_WDAY_BEG) / __JAN01_Y_PER_B];
147147 }
148148
149 static inline __attribute__((const, pure)) dt_dow_t
149 static inline __attribute__((const)) dt_dow_t
150150 __get_jan01_wday(unsigned int year)
151151 {
152152 /* get the weekday of jan01 in YEAR */
228228 # undef A
229229 # undef S
230230
231 static __attribute__((const, pure)) unsigned int
231 static __attribute__((const)) unsigned int
232232 __get_28y_year_equiv(unsigned year)
233233 {
234234 /* the 28y cycle works for 1901 to 2100, for other years find an equivalent */
244244 return year + 2000;
245245 }
246246
247 static inline __attribute__((const, pure)) dt_dow_t
247 static inline __attribute__((pure)) dt_dow_t
248248 __get_jan01_wday(unsigned int year)
249249 {
250250 /* get the weekday of jan01 in YEAR
268268
269269 #elif defined GET_JAN01_WDAY_28Y_SWITCH
270270
271 static inline __attribute__((const, pure)) dt_dow_t
271 static inline __attribute__((const)) dt_dow_t
272272 __get_jan01_wday(unsigned int year)
273273 {
274274 /* get the weekday of jan01 in YEAR
353353
354354 #elif defined GET_JAN01_WDAY_SAKAMOTO
355355
356 static inline __attribute__((const, pure)) dt_dow_t
356 static inline __attribute__((const)) dt_dow_t
357357 __get_jan01_wday(unsigned int year)
358358 {
359359 unsigned int res;
367367 #endif /* GET_JAN01_WDAY_* */
368368
369369 #if defined YMD_GET_YD_LOOKUP
370 static inline __attribute__((const, pure)) unsigned int
370 static inline __attribute__((pure)) unsigned int
371371 __md_get_yday(unsigned int year, unsigned int mon, unsigned int dom)
372372 {
373373 static uint16_t __mon_yday[] = {
381381 }
382382
383383 #elif defined YMD_GET_YD_DIVREM
384 static inline __attribute__((const, pure)) unsigned int
384 static inline __attribute__((const)) unsigned int
385385 __md_get_yday(unsigned int year, unsigned int mon, unsigned int dom)
386386 {
387387 #define SL(x) ((x) * 5)
409409
410410 #if defined GET_MD_FREUNDT
411411 /* Freundt's 32-adic algo */
412 static __attribute__((const, pure)) struct __md_s
412 static __attribute__((pure)) struct __md_s
413413 __yday_get_md(unsigned int year, unsigned int doy)
414414 {
415415 /* Given a year and the day of the year, return gregorian month + dom
436436 #define GET_REM(x) (rem[x])
437437 static const uint8_t rem[] = {
438438 19, 19, 18, 14, 13, 11, 10, 8, 7, 6, 4, 3, 1, 0
439
440439 };
441440 unsigned int m;
442441 unsigned int d;
467466
468467 #elif defined GET_MD_TRIMESTER
469468 /* Trimester algo, we can't figure out which one's faster */
470 static __attribute__((const, pure)) struct __md_s
469 static __attribute__((const)) struct __md_s
471470 __yday_get_md(unsigned int year, unsigned int yday)
472471 {
473472 /* The idea here is that the year can be divided into trimesters:
517516 }
518517 #endif /* GET_MD_* */
519518
520 static inline __attribute__((const, pure)) dt_dow_t
519 static inline __attribute__((const)) dt_dow_t
521520 __get_jan01_yday_dow(unsigned int yd, dt_dow_t w)
522521 {
523522 unsigned int res = (yd + 6U - (unsigned int)w) % GREG_DAYS_P_WEEK;
524523 return (dt_dow_t)(DT_SUNDAY - res);
525524 }
526525
527 static inline __attribute__((const, pure)) unsigned int
526 static inline __attribute__((const)) unsigned int
528527 __get_ydays(unsigned int y)
529528 {
530529 return LIKELY(!__leapp(y)) ? 365U : 366U;
548547
549548 #if defined ASPECT_GETTERS && !defined YD_ASPECT_GETTERS_
550549 #define YD_ASPECT_GETTERS_
551 static inline __attribute__((const, pure)) int
550 static inline __attribute__((pure)) int
552551 __get_isowk_wd(unsigned int yd, dt_dow_t f01)
553552 {
554553 /* given the weekday the year starts with, F01, and the year-day YD
557556 return (GREG_DAYS_P_WEEK + yd - iso[f01]) / GREG_DAYS_P_WEEK;
558557 }
559558
560 DEFUN __attribute__((const, pure)) int
559 DEFUN __attribute__((const)) int
561560 __yd_get_wcnt_abs(dt_yd_t d)
562561 {
563562 /* absolutely count the n-th occurrence of WD regardless what WD
567566 return (GREG_DAYS_P_WEEK + yd - 1) / GREG_DAYS_P_WEEK;
568567 }
569568
570 DEFUN __attribute__((const, pure)) int
569 DEFUN __attribute__((const)) int
571570 __yd_get_wcnt_iso(dt_yd_t d)
572571 {
573572 /* like __yd_get_wcnt() but for iso week conventions
617616 return wk;
618617 }
619618
620 DEFUN __attribute__((const, pure)) int
619 DEFUN __attribute__((const)) int
621620 __yd_get_wcnt(dt_yd_t d, dt_dow_t _1st_wd)
622621 {
623622 /* absolutely count the n-th occurrence of WD regardless what WD
755754 __yd_add_d(dt_yd_t d, int n)
756755 {
757756 /* add N days to D */
758 signed int tgtd = d.d + n;
757 signed int tgtd = d.d + n + (n < 0 && !d.d);
759758
760759 /* fixup the day */
761760 return __yd_fixup_d(d.y, tgtd);
765764 __yd_add_b(dt_yd_t d, int n)
766765 {
767766 /* add N business days to D */
768 dt_dow_t wd = __yd_get_wday(d);
769 int tgtd = d.d + __get_d_equiv(wd, n);
767 dt_dow_t wd;
768 signed int tgtd;
769
770 d.d ^= n < 0 && !d.d;
771 wd = __yd_get_wday(d);
772 tgtd = d.d + __get_d_equiv(wd, n);
770773
771774 /* fixup the day, i.e. 2012-0367 -> 2013-001 */
772775 return __yd_fixup_d(d.y, tgtd);
791794
792795 #if defined ASPECT_DIFF && !defined YD_ASPECT_DIFF_
793796 #define YD_ASPECT_DIFF_
794 static __attribute__((const, pure)) struct dt_ddur_s
797 static __attribute__((const)) struct dt_ddur_s
795798 __yd_diff(dt_yd_t d1, dt_yd_t d2)
796799 {
797800 /* compute d2 - d1 entirely in terms of ymd but express the result as yd */
00 /*** ymcw.c -- guts for ymcw dates
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
9191 static dt_dow_t
9292 __ymcw_get_wday(dt_ymcw_t that)
9393 {
94 return (dt_dow_t)(that.w ?: DT_SUNDAY);
94 return (dt_dow_t)that.w;
9595 }
9696
9797 DEFUN unsigned int
199199 },
200200 };
201201 dt_dow_t j01w = __get_jan01_wday(that.y);
202 unsigned int diff = j01w <= that.w ? that.w - j01w : that.w + 7 - j01w;
202 dt_dow_t w = (dt_dow_t)(that.w ?: DT_THURSDAY);
203 unsigned int diff = j01w <= w ? w - j01w : w + 7 - j01w;
203204
204205 if (UNLIKELY(__leapp(that.y))) {
205206 switch (diff) {
399400 signed int aw = n / (signed int)GREG_DAYS_P_WEEK;
400401 signed int ad = n % (signed int)GREG_DAYS_P_WEEK;
401402
402 if ((ad += d.w) >= (signed int)GREG_DAYS_P_WEEK) {
403 if ((ad += d.w) > (signed int)GREG_DAYS_P_WEEK) {
403404 ad -= GREG_DAYS_P_WEEK;
404405 aw++;
405 } else if (ad < 0) {
406 } else if (ad <= 0) {
406407 ad += GREG_DAYS_P_WEEK;
407408 aw--;
408409 }
00 /*** ymd.c -- guts for ymd dates
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
551551 {
552552 dt_ymd_t res = {0};
553553
554 m += !m;
554555 if (LIKELY(d >= 1 && d <= 28)) {
555556 /* all months in our design range have at least 28 days */
556557 ;
588589 __ymd_add_d(dt_ymd_t d, int n)
589590 {
590591 /* add N days to D */
591 signed int tgtd = d.d + n;
592 signed int tgtd;
593 d = __ymd_fixup(d);
594 tgtd = d.d + n + (n < 0 && !d.d);
592595
593596 /* fixup the day */
594597 return __ymd_fixup_d(d.y, d.m, tgtd);
598601 __ymd_add_b(dt_ymd_t d, int n)
599602 {
600603 /* add N business days to D */
601 dt_dow_t wd = __ymd_get_wday(d);
602 int tgtd = d.d + __get_d_equiv(wd, n);
604 dt_dow_t wd;
605 signed int tgtd;
606
607 d = __ymd_fixup(d);
608 d.d ^= n < 0 && !d.d;
609 wd = __ymd_get_wday(d);
610 tgtd = d.d + __get_d_equiv(wd, n);
603611
604612 /* fixup the day, i.e. 2012-01-34 -> 2012-02-03 */
605613 return __ymd_fixup_d(d.y, d.m, tgtd);
627635 --d.y;
628636 }
629637 /* final assignment */
630 d.m = tgtm;
638 d.m = tgtm + (n < 0 && !d.m);
631639 return d;
632640 }
633641
00 /*** ywd.c -- guts for ywd dates
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
107107 }
108108
109109 #if defined GET_ISOWK_FULL_SWITCH
110 DEFUN __attribute__((const, pure)) inline unsigned int
110 DEFUN __attribute__((const)) inline unsigned int
111111 __get_isowk(unsigned int y)
112112 {
113113 /* return the number of iso weeks in Y */
364364 }
365365
366366 #elif defined GET_ISOWK_28Y_SWITCH
367 DEFUN __attribute__((const, pure)) inline unsigned int
367 DEFUN __attribute__((const)) inline unsigned int
368368 __get_isowk(unsigned int y)
369369 {
370370 switch (y % 28U) {
392392 * the new year are treated as 53
393393 * In the 400 year cycle, there's 243 years with 53 weeks and
394394 * 157 years with 52 weeks. */
395 #if 0
395396 switch (y % 28U) {
396397 default:
397398 break;
411412 }
412413 /* more weeks with 53, so default to that */
413414 return 53;
415 #endif
416 #define BIT(x) (1U << (x))
417 /* redo with bitmasks */
418 static const unsigned int w =
419 BIT(1U) ^ BIT(2U) ^ BIT(3U) ^ BIT(4U) ^
420 BIT(7U) ^ BIT(8U) ^ BIT(9U) ^ BIT(12U) ^
421 BIT(13U) ^ BIT(14U) ^ BIT(15U) ^ BIT(18U) ^
422 BIT(19U) ^ BIT(20U) ^ BIT(24U) ^ BIT(25U) ^ BIT(26U);
423 return 52 + (w >> (y % 28U)) & 0b1U;
414424 }
415425
416426 #endif /* GET_ISOWK_* */
471481 j01 = __get_jan01_wday(y);
472482 hang = __ywd_get_jan01_hang(j01);
473483
474 assert(w != DT_MIRACLEDAY);
475
476484 switch (cc) {
477485 default:
478486 case YWD_ISOWK_CNT:
479487 break;
480 case YWD_ABSWK_CNT:
481 if (hang == 1 && w < DT_SUNDAY) {
488 case YWD_ABSWK_CNT: {
489 dt_dow_t u = w ?: DT_THURSDAY;
490
491 if (hang == 1 && u < DT_SUNDAY) {
482492 /* n-th W in the year is n-th week,
483493 * year starts on sunday */
484494 ;
485 } else if (hang > 0 && w < DT_SUNDAY && w < j01) {
495 } else if (hang > 0 && u < DT_SUNDAY && u < j01) {
486496 /* n-th W in the year is n-th week,
487497 * in this case the year doesnt start on sunday */
488498 ;
489 } else if (hang <= 0 && (w >= j01 || w == DT_SUNDAY)) {
499 } else if (hang <= 0 && (u >= j01 || u == DT_SUNDAY)) {
490500 /* n-th W in the year is n-th week */
491501 ;
492502 } else if (hang > 0) {
496506 /* weekdays missing in the first week of Y */
497507 c++;
498508 }
499
509 }
500510 canon_yc(y, c, hang);
501511 break;
502512 case YWD_SUNWK_CNT:
588598 return res;
589599 }
590600
591 static __attribute__((pure, const)) int
601 static __attribute__((const)) int
592602 __ywd_get_yday(dt_ywd_t d)
593603 {
594604 /* since everything is in ISO 8601 format, getting the doy is a matter of
595605 * counting how many days there are in a week.
596606 * This may return negative values and values larger than the number of
597607 * days in that year. */
598 return GREG_DAYS_P_WEEK * (d.c - 1) + d.w + d.hang;
608 return GREG_DAYS_P_WEEK * (d.c - 1) + (dt_dow_t)(d.w ?: DT_THURSDAY) + d.hang;
599609 }
600610
601611 static dt_dow_t
678688
679689 if (d.c == 1) {
680690 dt_dow_t f01 = __ywd_get_jan01_wday(d);
681
682 if (d.hang <= 0 && d.w < f01) {
683 y--;
684 }
685
691 y -= d.hang <= 0 && (dt_dow_t)(d.w ?: DT_THURSDAY) < f01;
686692 } else if (d.c >= __get_z31wk(y)) {
687693 dt_dow_t z31 = __ywd_get_dec31_wday(d);
688
689 if (z31 < DT_SUNDAY && d.w > z31) {
690 y++;
691 }
694 y += z31 < DT_SUNDAY && (dt_dow_t)(d.w ?: DT_THURSDAY) > z31;
692695 }
693696 return y;
694697 }
4545 AC_CHECK_HEADER([tzfile.h])
4646 ])dnl AX_ZONEINFO_TZFILE_H
4747
48 AC_DEFUN([AX_ZONEINFO_CHECK_TZFILE], [dnl
49 dnl AX_ZONEINFO_CHECK_TZFILE([FILE], [ACTION-IF-VALID], [ACTION-IF-NOT])
50 dnl secret switch is the 4th argument, which determines the ret code
51 dnl of the leapcnt check
48 AC_DEFUN([AY_ZONEINFO_CHECK_TZFILE], [dnl
49 dnl AY_ZONEINFO_CHECK_TZFILE([FILE], [ACTION-IF-VALID], [ACTION-IF-NOT])
50 dnl check for FILE's presence
5251 pushdef([probe], [$1])
5352 pushdef([if_found], [$2])
5453 pushdef([if_not_found], [$3])
5554
56 AC_REQUIRE([AX_ZONEINFO_TZFILE_H])
57
5855 if test -z "${ax_tmp_zoneinfo_nested}"; then
5956 AC_MSG_CHECKING([zoneinfo file ]probe[])
6057 fi
6158
62 AC_LANG_PUSH([C])
63 AC_RUN_IFELSE([AC_LANG_SOURCE([[
64 #include <unistd.h>
65 #include <string.h>
66 #include <stdio.h>
67 #include <fcntl.h>
68
69 ]]ifelse([$4], [], [], [[
70 #define CHECK_LEAPCNT ]]$4[[
71 ]])[[
72
73 /* simplified struct */
74 struct tzhead {
75 char tzh_magic[4]; /* TZ_MAGIC */
76 char tzh_version[1]; /* '\0' or '2' as of 2005 */
77 char tzh_reserved[15]; /* reserved--must be zero */
78 char tzh_ttisgmtcnt[4]; /* coded number of trans. time flags */
79 char tzh_ttisstdcnt[4]; /* coded number of trans. time flags */
80 char tzh_leapcnt[4]; /* coded number of leap seconds */
81 char tzh_timecnt[4]; /* coded number of transition times */
82 char tzh_typecnt[4]; /* coded number of local time types */
83 char tzh_charcnt[4]; /* coded number of abbr. chars */
84 };
85
86 int
87 main(int argc, char *argv[])
88 {
89 struct tzhead foo;
90 int f;
91
92 if (argc <= 1) {
93 return 0;
94 } else if ((f = open(argv[1], O_RDONLY, 0644)) < 0) {
95 return 1;
96 } else if (read(f, &foo, sizeof(foo)) != sizeof(foo)) {
97 return 1;
98 } else if (close(f) < 0) {
99 return 1;
100 }
101
102 /* inspect the header */
103 if (memcmp(foo.tzh_magic, "TZif", sizeof(foo.tzh_magic))) {
104 return 1;
105 } else if (*foo.tzh_version && *foo.tzh_version != '2') {
106 return 1;
107 #if defined CHECK_LEAPCNT
108 } else if (!foo.tzh_leapcnt[0] && !foo.tzh_leapcnt[1] &&
109 !foo.tzh_leapcnt[2] && !foo.tzh_leapcnt[3]) {
110 return CHECK_LEAPCNT;
111 #endif /* CHECK_LEAPCNT */
112 }
113
114 /* otherwise everything's in order */
115 return 0;
116 }
117 ]])], [## call the whole shebang again with the tzfile
118 if ./conftest$EXEEXT probe; then
119 if test -z "${ax_tmp_zoneinfo_nested}"; then
120 AC_MSG_RESULT([looking good])
121 fi
122 []if_found[]
123 else
124 if test -z "${ax_tmp_zoneinfo_nested}"; then
125 AC_MSG_RESULT([looking bad ${ax_tmp_rc}])
126 fi
127 []if_not_found[]
59 if test -r "[]probe[]"; then
60 if test -z "${ax_tmp_zoneinfo_nested}"; then
61 AC_MSG_RESULT([looking good])
12862 fi
129 ], [
63 []if_found[]
64 else
13065 if test -z "${ax_tmp_zoneinfo_nested}"; then
131 AC_MSG_RESULT([impossible])
66 AC_MSG_RESULT([looking bad ${ax_tmp_rc}])
13267 fi
133 []if_not_found[]])
134 AC_LANG_POP([C])
68 []if_not_found[]
69 fi
13570
13671 popdef([probe])
13772 popdef([if_found])
13873 popdef([if_not_found])
139 ])dnl AX_ZONEINFO_CHECK_TZFILE
74 ])dnl AY_ZONEINFO_CHECK_TZFILE
14075
14176 AC_DEFUN([AX_ZONEINFO_TZDIR], [dnl
14277 dnl we consider a zoneinfo directory properly populated when it
171106 rm -f -- "${valtmp}"
172107 fi
173108
109 AC_REQUIRE([AX_ZONEINFO_TZFILE_H])
110
174111 dnl lastly, append the usual suspects
175112 TZDIR_cand="${TZDIR_cand} \
176113 /usr/share/zoneinfo \
185122 for c in ${TZDIR_cand}; do
186123 ax_cv_zoneinfo_utc=""
187124 for f in "UTC" "UCT" "Universal" "Zulu"; do
188 AX_ZONEINFO_CHECK_TZFILE(["${c}/${f}"], [
125 AY_ZONEINFO_CHECK_TZFILE(["${c}/${f}"], [
189126 dnl ACTION-IF-FOUND
190127 ax_cv_zoneinfo_utc="${c}/${f}"
191128 break
238175 if test -d "${c}"; then
239176 c="${c}/${__utc_file}"
240177 fi
241 AX_ZONEINFO_CHECK_TZFILE(["${c}"], [
178 AY_ZONEINFO_CHECK_TZFILE(["${c}"], [
242179 dnl ACTION-IF-FOUND
243180 ax_cv_zoneinfo_utc_right="${c}"
244181 break
245 ], [:], [2])
182 ])
246183 done
247184 fi
248185 ax_tmp_zoneinfo_nested=""
677677 save_CFLAGS="${CFLAGS}"
678678 CFLAGS="-Werror"
679679
680 SXE_CHECK_COMPILER_FLAG([-Wmissing-field-initializers], [
681 CFLAGS="${CFLAGS} -Wmissing-field-initializers"])
682
683680 AC_MSG_CHECKING([dnl
684681 whether C compiler can initialise structs and unions in a sloppy way])
685682
7373 AC_ARG_WITH([included-yuck], [dnl
7474 AS_HELP_STRING([--with-included-yuck], [
7575 Use included copy of the yuck command line parser generator
76 instead of the system-wide one.])], [with_included_yuck="${withval}"], [$1])
76 instead of the system-wide one.])], [with_included_yuck="${withval}"], [with_included_yuck="$1"])
7777
7878 AC_REQUIRE([AX_CHECK_M4_BUFFERS])
79 if test "${with_included_yuck}" != "yes"; then
79 if test "${with_included_yuck}" = "no"; then
8080 AC_PATH_PROG([YUCK], [yuck])
8181 AC_ARG_VAR([YUCK], [full path to the yuck tool])
8282
8484 ## see what m4 they used back then
8585 YUCK_M4=`${YUCK} config --m4 2>/dev/null`
8686 M4="${YUCK_M4-$M4}"
87 else
88 YUCK="yuck"
8789 fi
90 else
91 AC_MSG_CHECKING([for yuck])
92 AC_MSG_RESULT([using included])
93 YUCK="${YUCK-yuck}"
8894 fi
89 AM_CONDITIONAL([HAVE_YUCK], [dnl
90 test "${with_included_yuck}" != "yes" -a -n "${YUCK}"])
95 AM_CONDITIONAL([HAVE_YUCK], [test "${with_included_yuck}" = "no"])
9196
9297 ## further requirement is either getline() or fgetln()
9398 AC_CHECK_FUNCS([getline])
163163 SUFFIXES += .yucc
164164 .yuck.yucc:
165165 $(AM_V_GEN) PATH=$(top_builddir)/build-aux:"$${PATH}" \
166 yuck$(EXEEXT) gen -o $@ $<
166 $(YUCK) gen -o $@ $<
167167
168168 ## gperf rule
169169 SUFFIXES += .gperf
00 /*** alist.c -- bog standard associative lists
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
4646 /* our alist is a simple flat char array with pointers behind every key
4747 * aligned to void* boundaries. */
4848
49 static const void**
49 static void**
5050 __assoc(alist_t al, const char *key)
5151 {
5252 for (const char *ap = al->data, *const ep = ap + al->dend; ap < ep;) {
5353 const char *kp;
54 const void **res = (const void**)al->data;
54 void **res = (void**)al->data;
5555
5656 /* unrolled strcmp */
5757 for (kp = key; *ap && *ap == *kp; ap++, kp++);
108108 return;
109109 }
110110
111 const void*
111 void*
112112 alist_assoc(alist_t al, const char *key)
113113 {
114 const void **res;
114 void **res;
115115
116116 if (UNLIKELY(al->data == NULL)) {
117117 goto nada;
124124 }
125125
126126 void
127 alist_put(alist_t al, const char *key, const void *val)
127 alist_put(alist_t al, const char *key, void *val)
128128 {
129129 size_t klen = strlen(key);
130130
140140 }
141141
142142 void
143 alist_set(alist_t al, const char *key, const void *val)
143 alist_set(alist_t al, const char *key, void *val)
144144 {
145 const void **ass;
145 void **ass;
146146
147147 if ((ass = __assoc(al, key)) != NULL) {
148148 *ass = val;
164164 const char *p = al->iter ?: al->data;
165165 size_t klen = strlen(p);
166166
167 with (const void *const *d = (const void*)p) {
167 with (void *const *d = (const void*)p) {
168168 d += klen / sizeof(d) + 1U;
169169 res.key = p;
170170 res.val = *d++;
00 /*** alist.h -- bog standard associative lists
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5050
5151 struct acons_s {
5252 const char *key;
53 const void *val;
53 void *val;
5454 };
5555
5656
5858
5959 /**
6060 * Return value associated with KEY in alist, or NULL if none found. */
61 extern const void *alist_assoc(alist_t, const char *key);
61 extern void *alist_assoc(alist_t, const char *key);
6262
6363 /**
6464 * Put VAL as value associated with KEY in alist, but don't do a check
6565 * for duplicates first, i.e. it is assumed that KEY is not present. */
66 extern void alist_put(alist_t, const char *key, const void *val);
66 extern void alist_put(alist_t, const char *key, void *val);
6767
6868 /**
6969 * Set value associated with KEY in alist to VAL. */
70 extern void alist_set(alist_t, const char *key, const void *val);
70 extern void alist_set(alist_t, const char *key, void *val);
7171
7272 /**
7373 * Return next alist cons cell. */
00 /*** dadd.c -- perform simple date arithmetic, date plus duration
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
8282 zif_t z;
8383 const char *ofmt;
8484 int sed_mode_p;
85 int empty_mode_p;
8586 int quietp;
8687 };
8788
9192 struct dt_dt_s d;
9293 char *sp = NULL;
9394 char *ep = NULL;
95 size_t nmatch = 0U;
9496 int rc = 0;
9597
9698 do {
115117 dt_io_write(d, clo->ofmt, clo->z, '\0');
116118 llen -= (ep - line);
117119 line = ep;
120 nmatch++;
118121 } else {
119122 dt_io_write(d, clo->ofmt, clo->z, '\n');
120123 break;
121124 }
122125 } else if (clo->sed_mode_p) {
126 llen = !(clo->empty_mode_p && !nmatch) ? llen : 0U;
123127 line[llen] = '\n';
124128 __io_write(line, llen + 1, stdout);
129 break;
130 } else if (clo->empty_mode_p) {
131 __io_write("\n", 1U, stdout);
125132 break;
126133 } else {
127134 /* obviously unmatched, warn about it in non -q mode */
162169 * output */
163170 size_t lno = 0;
164171 struct dt_dt_s d;
165 struct __strpdtdur_st_s st = __strpdtdur_st_initialiser();
172 struct __strpdtdur_st_s st = {0};
166173 int rc = 0;
167174
168175 for (char *line; prchunk_haslinep(clo->pctx); lno++) {
218225 {
219226 yuck_t argi[1U];
220227 struct dt_dt_s d;
221 struct __strpdtdur_st_s st = __strpdtdur_st_initialiser();
228 struct __strpdtdur_st_s st = {0};
222229 const char *ofmt;
223230 char **fmt;
224231 size_t nfmt;
287294 serror("Error: \
288295 cannot parse duration string `%s'", st.istr);
289296 rc = 1;
290 goto dur_out;
297 goto clear;
291298 }
292299 } while (__strpdtdur_more_p(&st));
293300 }
302309 error("\
303310 Error: cannot interpret date/time string `%s'", inp);
304311 rc = 1;
305 goto dur_out;
312 goto clear;
306313 }
307314 }
308315
321328 rc = 1;
322329 }
323330
331 } else if (st.ndurs && !argi->sed_mode_flag && argi->empty_mode_flag) {
332 size_t lno = 0U;
333 void *pctx;
334
335 /* no threads reading this stream */
336 __io_setlocking_bycaller(stdout);
337
338 /* using the prchunk reader now */
339 if ((pctx = init_prchunk(STDIN_FILENO)) == NULL) {
340 serror("could not open stdin");
341 goto clear;
342 }
343
344 while (prchunk_fill(pctx) >= 0) {
345 for (char *line; prchunk_haslinep(pctx); lno++) {
346 size_t llen = prchunk_getline(pctx, &line);
347 char *ep = NULL;
348
349 if (UNLIKELY(!llen)) {
350 goto empty;
351 }
352 /* try and parse the line */
353 d = dt_io_strpdt_ep(line, fmt, nfmt, &ep, fromz);
354 if (UNLIKELY(dt_unk_p(d))) {
355 goto empty;
356 } else if (ep && (unsigned)*ep >= ' ') {
357 goto empty;
358 }
359 /* do the adding */
360 d = dadd_add(d, st.durs, st.ndurs);
361 if (UNLIKELY(dt_unk_p(d))) {
362 goto empty;
363 }
364
365 if (hackz == NULL && fromz != NULL) {
366 /* fixup zone */
367 d = dtz_forgetz(d, fromz);
368 }
369 dt_io_write(d, ofmt, z, '\n');
370 continue;
371 empty:
372 __io_write("\n", 1U, stdout);
373 }
374 }
324375 } else if (st.ndurs) {
325376 /* read dates from stdin */
326377 struct grep_atom_s __nstk[16], *needle = __nstk;
356407 clo->z = z;
357408 clo->ofmt = ofmt;
358409 clo->sed_mode_p = argi->sed_mode_flag;
410 clo->empty_mode_p = argi->empty_mode_flag;
359411 clo->quietp = argi->quiet_flag;
360412 while (prchunk_fill(pctx) >= 0) {
361413 rc |= mass_add_dur(clo);
378430 /* using the prchunk reader now */
379431 if ((pctx = init_prchunk(STDIN_FILENO)) == NULL) {
380432 serror("could not open stdin");
381 goto dur_out;
433 goto clear;
382434 }
383435
384436 /* build the clo and then loop */
389441 clo->z = z;
390442 clo->ofmt = ofmt;
391443 clo->sed_mode_p = argi->sed_mode_flag;
444 clo->empty_mode_p = argi->empty_mode_flag;
392445 clo->quietp = argi->quiet_flag;
393446 while (prchunk_fill(pctx) >= 0) {
394447 rc |= mass_add_d(clo);
396449 /* get rid of resources */
397450 free_prchunk(pctx);
398451 }
399 dur_out:
452 clear:
400453 /* free the strpdur status */
401454 __strpdtdur_free(&st);
402455
4242 matching date/time.
4343 Note that all occurrences of date/times within a
4444 line will be processed.
45 -E, --empty-mode Empty lines that cannot be parsed.
4546 --locale=LOCALE Format results according to LOCALE, this would only
4647 affect month and weekday names.
4748 --from-locale=LOCALE Interpret dates on stdin or the command line as
00 /*** dconv.c -- convert calendrical and time stamp systems
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5656 zif_t fromz;
5757 zif_t outz;
5858 int sed_mode_p;
59 int empty_mode_p;
5960 int quietp;
6061 };
6162
6566 struct dt_dt_s d;
6667 char *sp = NULL;
6768 char *ep = NULL;
69 size_t nmatch = 0U;
6870 int rc = 0;
6971
7072 do {
7779 dt_io_write(d, ctx.ofmt, ctx.outz, '\0');
7880 llen -= (ep - line);
7981 line = ep;
82 nmatch++;
8083 } else if (!dt_unk_p(d)) {
8184 if (UNLIKELY(d.fix) && !ctx.quietp) {
8285 rc = 2;
8487 dt_io_write(d, ctx.ofmt, ctx.outz, '\n');
8588 break;
8689 } else if (ctx.sed_mode_p) {
90 llen = !(ctx.empty_mode_p && !nmatch) ? llen : 0U;
8791 line[llen] = '\n';
8892 __io_write(line, llen + 1, stdout);
93 break;
94 } else if (ctx.empty_mode_p) {
95 __io_write("\n", 1U, stdout);
8996 break;
9097 } else {
9198 /* obviously unmatched, warn about it in non -q mode */
162169 dt_io_warn_strpdt(inp);
163170 }
164171 }
172 } else if (!argi->sed_mode_flag && argi->empty_mode_flag) {
173 /* read from stdin */
174 size_t lno = 0;
175 void *pctx;
176
177 /* no threads reading this stream */
178 __io_setlocking_bycaller(stdout);
179
180 /* using the prchunk reader now */
181 if ((pctx = init_prchunk(STDIN_FILENO)) == NULL) {
182 serror("Error: could not open stdin");
183 goto clear;
184 }
185 while (prchunk_fill(pctx) >= 0) {
186 for (char *line; prchunk_haslinep(pctx); lno++) {
187 size_t llen = prchunk_getline(pctx, &line);
188 struct dt_dt_s d;
189 char *ep = NULL;
190
191 if (UNLIKELY(!llen)) {
192 goto empty;
193 }
194 /* try and parse the line */
195 d = dt_io_strpdt_ep(line, fmt, nfmt, &ep, fromz);
196 if (UNLIKELY(dt_unk_p(d))) {
197 goto empty;
198 } else if (ep && (unsigned)*ep >= ' ') {
199 goto empty;
200 }
201 dt_io_write(d, ofmt, z, '\n');
202 continue;
203 empty:
204 __io_write("\n", 1U, stdout);
205 }
206 }
207 /* get rid of resources */
208 free_prchunk(pctx);
165209 } else {
166210 /* read from stdin */
167211 size_t lno = 0;
175219 .fromz = fromz,
176220 .outz = z,
177221 .sed_mode_p = argi->sed_mode_flag,
222 .empty_mode_p = argi->empty_mode_flag,
178223 .quietp = argi->quiet_flag,
179224 };
180225
210255 }
211256 }
212257
258 clear:
213259 dt_io_clear_zones();
214260 if (argi->from_locale_arg) {
215261 setilocale(NULL);
3737 matching date/time.
3838 Note that all occurrences of date/times within a
3939 line will be processed.
40 -E, --empty-mode Empty lines that cannot be parsed.
4041 --locale=LOCALE Format results according to LOCALE, this would only
4142 affect month and weekday names.
4243 --from-locale=LOCALE Interpret dates on stdin or the command line as
00 /*** ddiff.c -- perform simple date arithmetic, date minus date
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5656 unsigned int flags;
5757 struct {
5858 unsigned int has_year:1;
59 unsigned int has_qtr:1;
5960 unsigned int has_mon:1;
6061 unsigned int has_week:1;
6162 unsigned int has_day:1;
140141 case DT_SPFL_N_YEAR:
141142 res.has_year = 1;
142143 break;
144 case DT_SPFL_N_QTR:
145 res.has_qtr = 1;
146 break;
143147 case DT_SPFL_N_MON:
144148 case DT_SPFL_S_MON:
145149 res.has_mon = 1;
199203 } else if (dt_sandwich_only_t_p(d1) || dt_sandwich_only_t_p(d2)) {
200204 /* isn't defined */
201205 return (dt_dtdurtyp_t)DT_DURUNK;
202 } else if (f.has_week && f.has_mon) {
206 } else if (f.has_week && (f.has_mon || f.has_qtr)) {
203207 return (dt_dtdurtyp_t)DT_DURYMD;
204208 } else if (f.has_week && f.has_year) {
205209 return (dt_dtdurtyp_t)DT_DURYWD;
206 } else if (f.has_mon) {
210 } else if (f.has_mon || f.has_qtr) {
207211 return (dt_dtdurtyp_t)DT_DURYMD;
208212 } else if (f.has_year && f.has_day) {
209213 return (dt_dtdurtyp_t)DT_DURYD;
219223 return (dt_dtdurtyp_t)0xffU;
220224 }
221225 /* otherwise */
222 return DT_DURS;
226 return (dt_dtdurtyp_t)(DT_DURS + (f.has_nano));
223227 }
224228
225229
281285 __strf_tot_secs(struct dt_dtdur_s dur)
282286 {
283287 /* return time portion of duration in UTC seconds */
284 long int s = dur.dv;
288 int64_t s = dur.dv;
285289
286290 if (UNLIKELY(dur.tai) && dur.durtyp == DT_DURS) {
287291 return dur.soft - dur.corr;
391395 }
392396
393397 static struct precalc_s {
398 int neg;
394399 int Y;
400 int q;
395401 int m;
396402 int w;
397403 int d;
417423 /* just years */
418424 res.Y = __strf_tot_years(dur);
419425 }
420 if (f.has_year && f.has_mon) {
426 if (f.has_year && (f.has_mon || f.has_qtr)) {
421427 /* years and months */
422428 res.m = __strf_ym_mon(dur);
423 } else if (f.has_mon) {
429 } else if (f.has_mon || f.has_qtr) {
424430 /* just months */
425431 res.m = __strf_tot_mon(dur);
432 }
433
434 if (f.has_qtr) {
435 /* split m slot */
436 res.q = res.m / 3;
437 res.m = res.m % 3;
426438 }
427439
428440 /* the other units are easily converted as their factors are fixed.
429441 * we operate on clean seconds and attribute leap seconds only
430442 * to the S slot, so 59 seconds plus a leap second != 1 minute */
431 with (long long int S = __strf_tot_secs(dur), d = __strf_tot_days(dur)) {
443 with (int64_t S = __strf_tot_secs(dur), d = __strf_tot_days(dur)) {
432444 us = d * (int)SECS_PER_DAY + S;
445 res.neg = dur.neg || us < 0;
446 us = us >= 0 ? us : -us;
433447 }
434448
435449 if (f.has_week) {
436450 /* week shadows days in the hierarchy */
437 res.w = us / (int)SECS_PER_WEEK;
438 us %= (int)SECS_PER_WEEK;
451 res.w = us / SECS_PER_WEEK;
452 us %= SECS_PER_WEEK;
439453 }
440454 if (f.has_day) {
441 res.d += us / (int)SECS_PER_DAY;
442 us %= (int)SECS_PER_DAY;
455 res.d += us / SECS_PER_DAY;
456 us %= SECS_PER_DAY;
443457 }
444458 if (f.has_hour) {
445 res.H = us / (long int)SECS_PER_HOUR;
446 us %= (long int)SECS_PER_HOUR;
459 res.H = us / SECS_PER_HOUR;
460 us %= SECS_PER_HOUR;
447461 }
448462 if (f.has_min) {
449463 /* minutes and seconds */
450 res.M = us / (long int)SECS_PER_MIN;
451 us %= (long int)SECS_PER_MIN;
464 res.M = us / SECS_PER_MIN;
465 us %= SECS_PER_MIN;
452466 }
453467 if (f.has_sec) {
454468 res.S = us + __strf_tot_corr(dur);
455469 }
456
457 /* just in case the duration iss negative jump through all
458 * the hoops again, backwards */
459 if (res.w < 0 || res.d < 0 ||
460 res.H < 0 || res.M < 0 || res.S < 0) {
461 if (0) {
462 fixup_d:
463 res.d = -res.d;
464 fixup_H:
465 res.H = -res.H;
466 fixup_M:
467 res.M = -res.M;
468 fixup_S:
469 res.S = -res.S;
470 } else if (f.has_week) {
471 goto fixup_d;
472 } else if (f.has_day) {
473 goto fixup_H;
474 } else if (f.has_hour) {
475 goto fixup_M;
476 } else if (f.has_min) {
477 goto fixup_S;
470 if (f.has_nano) {
471 if (dur.durtyp == DT_DURNANO) {
472 res.N = dur.dv % NANOS_PER_SEC;
478473 }
479474 }
480475 return res;
516511 /* assign and go */
517512 bp = buf;
518513 fp = fmt;
519 if (dur.neg) {
514 if (pre.neg) {
520515 *bp++ = '-';
521516 }
522517 for (char *const eo = buf + bsz; *fp && bp < eo;) {
583578 bp += ltostr(bp, eo - bp, pre.m, 2, spec.pad);
584579 break;
585580
581 case DT_SPFL_N_QTR:
582 bp += ltostr(bp, eo - bp, pre.q, 2, spec.pad);
583 break;
584
586585 case DT_SPFL_N_YEAR:
587586 bp += ltostr(bp, eo - bp, pre.Y, -1, DT_SPPAD_NONE);
588587 break;
610609
611610 case DT_SPFL_N_HOUR:
612611 bp += ltostr(bp, eo - bp, pre.H, 2, spec.pad);
612 break;
613
614 case DT_SPFL_N_NANO:
615 bp += ltostr(bp, eo - bp, pre.N, 9, DT_SPPAD_ZERO);
613616 break;
614617
615618 default:
734737 size_t lno = 0;
735738 void *pctx;
736739
740 /* convert deprecated -S|--skip-illegal */
741 argi->empty_mode_flag += argi->skip_illegal_flag;
742
737743 /* no threads reading this stream */
738744 __io_setlocking_bycaller(stdout);
739745
756762 dt_io_warn_strpdt(line);
757763 rc = 2;
758764 }
759 if (argi->skip_illegal_flag) {
765 if (argi->empty_mode_flag) {
760766 /* empty line */
761767 __io_write("\n", 1U, stdout);
762768 }
2525 fixed up value and return error code 2.
2626 Also see -S|--skip-illegal to output an empty
2727 line instead of leaving out the line altogether.
28 -S, --skip-illegal Output empty lines as placeholder for illegal
28 -S, --skip-illegal Deprecated, use -E|--empty-mode.
29 -E, --empty-mode Output empty lines as placeholder for illegal
2930 input, i.e. parser errors or date/times that
3031 cannot be subtracted.
3132 -f, --format=STRING Output format. This can either be a specifier
00 /*** dexpr-parser.y -- parsing date expressions -*- c -*-
11 *
2 * Copyright (C) 2002-2016 Sebastian Freundt
2 * Copyright (C) 2002-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@fresse.org>
55 *
00 /*** dexpr.l -- date/time expressions for dateutils -*- C -*-
11 *
2 * Copyright (C) 2002-2018 Sebastian Freundt
2 * Copyright (C) 2002-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@fresse.org>
55 *
00 /*** dgrep.c -- grep for lines with dates
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** dround.c -- perform simple date arithmetic, round to duration
11 *
2 * Copyright (C) 2012-2018 Sebastian Freundt
2 * Copyright (C) 2012-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
6161 static struct dt_t_s
6262 tround_tdur_cocl(struct dt_t_s t, struct dt_dtdur_s dur, bool nextp)
6363 {
64 /* this will return the rounded to DUR time of T and, to encode carry
65 * (which can only take values 0 or 1), we will use t's neg bit */
66 unsigned int tunp;
64 /* this will return the rounded to DUR time of T with carry */
65 signed int tunp;
6766 signed int sdur;
6867 bool downp = false;
6968
70 /* we won't have carries, ever */
7169 t.carry = 0;
7270
7371 /* get directions, no dur is a no-op */
116114 } else {
117115 tunp -= diff;
118116 }
117 if (tunp < 0) {
118 tunp += SECS_PER_DAY;
119 t.carry = -1;
120 }
119121 }
120122
121123 /* assign */
125127 t.hms.m = tunp % MINS_PER_HOUR;
126128 tunp /= MINS_PER_HOUR;
127129 t.hms.h = tunp % HOURS_PER_DAY;
130 tunp /= HOURS_PER_DAY;
131 t.carry += tunp;
128132 out:
129133 return t;
130134 }
216220 break;
217221 }
218222 return t;
223 }
224
225 static struct dt_d_s
226 dround_ddur_cocl(struct dt_d_s d, struct dt_ddur_s dur, bool UNUSED(nextp))
227 {
228 /* we won't be using next here because next/prev adjustments should have
229 * been made in dround already */
230 signed int sdur = dur.dv;
231
232 switch (dur.durtyp) {
233 case DT_DURD:
234 break;
235 case DT_DURBD: {
236 struct dt_d_s tmp;
237 unsigned int wday;
238 signed int diff = 0;
239
240 tmp = dt_dconv(DT_DAISY, d);
241 wday = dt_get_wday(tmp);
242
243 if (wday >= DT_SATURDAY) {
244 if (sdur < 0 || dur.neg) {
245 /* set to previous friday */
246 diff = -(signed int)(wday - DT_FRIDAY);
247 } else {
248 /* set to next monday */
249 diff = GREG_DAYS_P_WEEK + DT_MONDAY - wday;
250 }
251 }
252
253 /* final assignment */
254 tmp.daisy += diff;
255 d = dt_dconv(d.typ, tmp);
256 break;
257 }
258
259 case DT_DURYR:
260 sdur *= 4;
261 case DT_DURQU:
262 sdur *= 3;
263 case DT_DURMO: {
264 int ym, of, on;
265
266 /* we need the concept of months and years
267 * and we use the fact that ymd's and ymcw's
268 * y and m slots coincide*/
269 ym = d.ymcw.y * 12 + d.ymcw.m - 1;
270
271 switch (d.typ) {
272 case DT_YMD:
273 on = d.ymd.d == 1;
274 break;
275 case DT_YMCW:
276 on = d.ymcw.c == 1 && d.ymcw.w == DT_MONDAY;
277 break;
278 default:
279 /* warning? */
280 on = 1;
281 break;
282 }
283 of = ym % sdur;
284 ym -= of;
285 if (sdur > 0 && !dur.neg && (of || !on)) {
286 ym += sdur;
287 }
288 /* reassemble */
289 d.ymd.y = ym / 12;
290 d.ymd.m = (ym % 12) + 1;
291 switch (d.typ) {
292 case DT_YMD:
293 d.ymd.d = 1;
294 break;
295 case DT_YMCW:
296 d.ymcw.c = 1;
297 break;
298 }
299 break;
300 }
301 default:
302 /* warning? */
303 break;
304 }
305 return d;
219306 }
220307
221308 static struct dt_d_s
319406 d.bizda.bd = tgt;
320407 break;
321408 default:
322 break;
323 }
324 break;
325
409 serror("\
410 Warning: rounding to n-th business day not supported for input value");
411 break;
412 }
413 break;
414
415 case DT_DURQU:
416 dur.dv *= 3;
417 dur.dv -= (dur.dv > 0) * 2;
418 dur.dv += (dur.dv < 0) * 2;
419 case DT_DURMO:
326420 case DT_DURYMD:
327421 switch (d.typ) {
328422 unsigned int mdays;
329423 case DT_YMD:
330 tgt = dur.ymd.m;
424 tgt = dur.durtyp == DT_DURYMD ? dur.ymd.m : dur.dv;
331425 forw = !dt_dur_neg_p(dur);
332426
333427 if ((forw && d.ymd.m < tgt) ||
504598 default:
505599 switch (dur.durtyp) {
506600 default:
507 /* all the date durs */
601 /* all the other date durs */
508602 break;
509603
510604 case DT_DURH:
521615 d.t = tround_tdur_cocl(d.t, dur, nextp);
522616 }
523617 break;
618
619 case DT_DURD:
620 case DT_DURBD:
621 case DT_DURMO:
622 case DT_DURQU:
623 case DT_DURYR:
624 /* special case for cocl days/bizdays */
625 if (dur.cocl) {
626 #define midnightp(x) (!(x).hms.h && !(x).hms.m && !(x).hms.s)
627 d.t.carry =
628 (dur.d.dv > 0 &&
629 (nextp || !midnightp(d.t))) |
630 /* or if midnight and nextp */
631 -(dur.d.dv < 0 &&
632 (nextp && midnightp(d.t)));
633 /* set to midnight */
634 d.t.hms = (dt_hms_t){0};
635 }
524636 }
525637 /* check carry */
526638 if (UNLIKELY(d.t.carry)) {
531643 d.d = dt_dadd(d.d, one_day);
532644 }
533645 with (unsigned int sw = d.sandwich) {
534 d.d = dround_ddur(d.d, dur.d, nextp);
646 if (!dur.cocl) {
647 d.d = dround_ddur(d.d, dur.d, nextp);
648 } else {
649 d.d = dround_ddur_cocl(d.d, dur.d, nextp);;
650 }
535651 d.sandwich = (uint8_t)sw;
536652 }
537653 break;
564680 dt_io_strpdtrnd(struct __strpdtdur_st_s *st, const char *str)
565681 {
566682 char *sp = NULL;
567 struct strpd_s d = strpd_initialiser();
568 struct dt_spec_s s = spec_initialiser();
683 struct strpd_s d = {0};
684 struct dt_spec_s s = {0};
569685 struct dt_dtdur_s payload = {(dt_dtdurtyp_t)DT_DURUNK};
570 bool negp = false;
571 bool coclp = true;
686 int negp = 0;
687 int coclp = 0;
572688
573689 if (dt_io_strpdtdur(st, str) >= 0) {
574690 return 0;
575691 }
576692
577693 /* check for co-classes */
578 if (*str == '/') {
579 coclp = true;
580 str++;
581 }
694 coclp = (*str == '/');
695 str += coclp;
582696 /* check if there's a sign + or - */
583 if (*str == '-') {
584 negp = true;
585 str++;
586 } else if (*str == '+') {
587 str++;
588 }
697 negp = (*str == '-');
698 str += negp || *str == '+';
589699
590700 /* try weekdays, set up s */
591701 s.spfl = DT_SPFL_S_WDAY;
615725 payload.d = (struct dt_ddur_s){
616726 DT_DURYMD,
617727 .neg = negp,
728 .cocl = coclp,
618729 .ymd.m = d.m,
619730 };
620731 #else
621732 payload.d.durtyp = DT_DURYMD;
622733 payload.d.neg = negp;
734 payload.d.cocl = coclp;
623735 payload.d.ymd.m = d.m;
624736 #endif
625737 goto out;
640752 zif_t fromz;
641753 zif_t outz;
642754 int sed_mode_p;
755 int empty_mode_p;
643756 int quietp;
644757
645758 const struct __strpdtdur_st_s *st;
652765 struct dt_dt_s d;
653766 char *sp = NULL;
654767 char *ep = NULL;
768 size_t nmatch = 0U;
655769 int rc = 0;
656770
657771 do {
676790 dt_io_write(d, ctx.ofmt, ctx.outz, '\0');
677791 llen -= (ep - line);
678792 line = ep;
793 nmatch++;
679794 } else {
680795 dt_io_write(d, ctx.ofmt, ctx.outz, '\n');
681796 break;
682797 }
683798 } else if (ctx.sed_mode_p) {
799 llen = !(ctx.empty_mode_p && !nmatch) ? llen : 0U;
684800 line[llen] = '\n';
685801 __io_write(line, llen + 1, stdout);
802 break;
803 } else if (ctx.empty_mode_p) {
804 __io_write("\n", 1U, stdout);
686805 break;
687806 } else {
688807 /* obviously unmatched, warn about it in non -q mode */
704823 {
705824 yuck_t argi[1U];
706825 struct dt_dt_s d;
707 struct __strpdtdur_st_s st = __strpdtdur_st_initialiser();
826 struct __strpdtdur_st_s st = {0};
708827 char *inp;
709828 const char *ofmt;
710829 char **fmt;
763882 for (size_t i = dt_given_p; i < argi->nargs; i++) {
764883 inp = argi->args[i];
765884 do {
885 #define LAST_DUR (st.durs[st.ndurs - 1])
766886 if (dt_io_strpdtrnd(&st, inp) < 0) {
767887 if (UNLIKELY(i == 0)) {
768888 /* that's ok, must be a date then */
769889 dt_given_p = true;
770890 } else {
771891 serror("Error: \
772 cannot parse duration/rounding string `%s'", st.istr);
892 cannot parse duration/rounding string `%s'", st.istr);\
893 rc = 1;
894 goto out;
773895 }
774 }
896 } else if (LAST_DUR.cocl) {
897 switch (LAST_DUR.durtyp) {
898 case DT_DURH:
899 if (!LAST_DUR.dv ||
900 HOURS_PER_DAY % LAST_DUR.dv) {
901 goto nococl;
902 }
903 break;
904 case DT_DURM:
905 if (!LAST_DUR.dv ||
906 MINS_PER_HOUR % LAST_DUR.dv) {
907 goto nococl;
908 }
909 break;
910 case DT_DURS:
911 if (!LAST_DUR.dv ||
912 SECS_PER_MIN % LAST_DUR.dv) {
913 goto nococl;
914 }
915 break;
916
917 case DT_DURD:
918 case DT_DURBD:
919 if (LAST_DUR.d.dv != 1 &&
920 LAST_DUR.d.dv != -1) {
921 goto nococl;
922 }
923 break;
924 case DT_DURMO:
925 /* make a millenium the next milestone */
926 if (!LAST_DUR.d.dv ||
927 12000 % LAST_DUR.d.dv) {
928 goto nococl;
929 }
930 break;
931 case DT_DURQU:
932 /* make a millenium the next milestone */
933 if (!LAST_DUR.d.dv ||
934 4000 % LAST_DUR.d.dv) {
935 goto nococl;
936 }
937 break;
938 case DT_DURYR:
939 /* make a millenium the next milestone */
940 if (!LAST_DUR.d.dv ||
941 1000 % LAST_DUR.d.dv) {
942 goto nococl;
943 }
944 break;
945
946 nococl:
947 error("\
948 Error: subdivisions must add up to whole divisions");
949 rc = 1;
950 goto out;
951 }
952 } else {
953 switch (LAST_DUR.durtyp) {
954 case DT_DURH:
955 if (LAST_DUR.dv >= 24 ||
956 LAST_DUR.dv <= -24) {
957 goto range;
958 }
959 break;
960 case DT_DURM:
961 if (LAST_DUR.dv >= 60 ||
962 LAST_DUR.dv <= -60) {
963 goto range;
964 }
965 break;
966 case DT_DURS:
967 if (LAST_DUR.dv >= 60 ||
968 LAST_DUR.dv <= -60) {
969 goto range;
970 }
971 break;
972 case DT_DURMO:
973 if (!LAST_DUR.d.dv ||
974 LAST_DUR.d.dv > 12 ||
975 LAST_DUR.d.dv < -12) {
976 goto range;
977 }
978 break;
979 case DT_DURQU:
980 if (!LAST_DUR.d.dv ||
981 LAST_DUR.d.dv > 4 ||
982 LAST_DUR.d.dv < -4) {
983 goto range;
984 }
985 break;
986 case DT_DURYR:
987 serror("\
988 Error: Gregorian years are non-recurrent.\n\
989 Did you mean year class rounding? Try `/%s'", inp);
990 rc = 1;
991 goto out;
992 default:
993 break;
994
995 range:
996 serror("\
997 Error: rounding parameter out of range `%s'", inp);
998 rc = 1;
999 goto out;
1000 }
1001 }
1002 #undef LAST_DUR
7751003 } while (__strpdtdur_more_p(&st));
7761004 }
7771005
8081036 dt_io_write(d, ofmt, z, '\n');
8091037 } else {
8101038 rc = 1;
1039 }
1040 } else if (!argi->sed_mode_flag && argi->empty_mode_flag) {
1041 /* read from stdin in exact/empty mode */
1042 size_t lno = 0;
1043 void *pctx;
1044
1045 /* no threads reading this stream */
1046 __io_setlocking_bycaller(stdout);
1047
1048 /* using the prchunk reader now */
1049 if ((pctx = init_prchunk(STDIN_FILENO)) == NULL) {
1050 serror("could not open stdin");
1051 goto clear;
1052 }
1053
1054 while (prchunk_fill(pctx) >= 0) {
1055 for (char *line; prchunk_haslinep(pctx); lno++) {
1056 size_t llen = prchunk_getline(pctx, &line);
1057 char *ep = NULL;
1058
1059
1060 if (UNLIKELY(!llen)) {
1061 goto empty;
1062 }
1063 /* try and parse the line */
1064 d = dt_io_strpdt_ep(line, fmt, nfmt, &ep, fromz);
1065 if (UNLIKELY(dt_unk_p(d))) {
1066 goto empty;
1067 } else if (ep && (unsigned)*ep >= ' ') {
1068 goto empty;
1069 }
1070 /* do the rounding */
1071 d = dround(d, st.durs, st.ndurs, nextp);
1072 if (UNLIKELY(dt_unk_p(d))) {
1073 goto empty;
1074 }
1075 if (fromz != NULL) {
1076 /* fixup zone */
1077 d = dtz_forgetz(d, fromz);
1078 }
1079 dt_io_write(d, ofmt, z, '\n');
1080 continue;
1081 empty:
1082 __io_write("\n", 1U, stdout);
1083 }
8111084 }
8121085 } else {
8131086 /* read from stdin */
8221095 .fromz = fromz,
8231096 .outz = z,
8241097 .sed_mode_p = argi->sed_mode_flag,
1098 .empty_mode_p = argi->empty_mode_flag,
8251099 .quietp = argi->quiet_flag,
8261100 .st = &st,
8271101 .nextp = nextp,
8601134 }
8611135 goto out;
8621136 }
1137 clear:
8631138 /* free the strpdur status */
8641139 __strpdtdur_free(&st);
8651140
1010 - `tomo[rrow]' tomorrow's date (according to UTC)
1111 - `y[ester]day' yesterday's date (according to UTC)
1212
13 1. RNDSPECs can be month names (Jan, Feb, ...), weekday names (Sun, Mon, ...),
14 numerals suffixed with y, q, mo, d, bd, h, m, or s, possibly prefixed with
15 a dash (`-`) to indicate the rounding direction is downwards.
1316
14 RNDSPECs can be month names (Jan, Feb, ...), weekday names (Sun, Mon, ...), or
15 days.
16 If a month name the next date/time relative to DATE/TIME is returned whose
17 month part matches the value given, so e.`g. dround 2012-01-01 Feb' will return
18 2012-02-01.
19 If a weekday name is given, the next date/time after DATE/TIME whose weekday
20 part matches the values given is returned.
21 If a day, the next date/time after DATE/TIME whose day part matches is
22 returned, so `dround 2012-01-15 1' will return 2012-02-01.
17 2. Suffixed RNDSPECs may additionally be prefixed with a slash (`/`) to
18 indicate that rounding to a multiple of RNDSPEC is desired.
19 Co-class rounding.
2320
24 RNDSPECs can also be multiples of the day dividing units, e.g 1h rounds to the
25 nearest full hour, 30m to the nearest half hour, and 10s to the next 10s mark.
21 In the first case, rounding affects the named element in the specified date
22 or date/time and more significant elements by setting this element to the
23 specified value and adjusting the more significant elements such that the
24 result is greater (younger) or equal to the input (or strictly greater when
25 -n|--next is given) for positive values, and less (older) or equal (unless
26 -n|--next is given) for named elements that are prefixed with dash (`-`).
27 In either case, less significant elements, e.g. subdivisions of the named
28 element and their subdivisions are left unchanged.
2629
27 To round to the previous occurrence of a RNDSPEC any argument can be prefixed
28 with a `-' to denote that. E.g. `dround 2012-02-14 -1' will return 2012-02-01.
29 And `dround 2012-02-11 -- -Sep' will return 2011-09-11.
30 That is dateround 2019-01-28T12:04:00 +6
31 will yield 2019-02-06T12:04:00
32
33 Similarly dateround -n 2019-01-28T12:04:00 -- -Oct
34 will yield 2018-10-28T12:04:00
35
36 In the second case, rounding is more like rounding decimal fractions to
37 negative infinity. The time axis is partitioned by multiples of the named
38 element, and the oldest date or datetime is returned that is greater (younger)
39 (or equal if -n|--next is omitted) than the specified date or date/time,
40 when rounding down (`-` prefix) the oldest date or datetime is returned
41 that is less (older) than the specified date or datetime.
42
43 That is dateround 2019-01-28T12:04:00 /1y
44 will yield 2020-01-01T00:00:00
45
46 Similarly dateround 2019-01-28T12:04:00 /-30m
47 will yield 2019-01-28T12:00:00
48
49 The superdivision of years are millennia, i.e. there's 1000 years,
50 500 biennia, 100 decades, etc. in a millenium.
51
3052
3153 Multiple RNDSPECs are evaluated left to right.
3254
3355 Note that rounding isn't commutative, e.g.
34 2012-03-01 Sat Sep -> 2012-09-03
56 dateround 2012-03-01 Sat Sep -> 2012-09-03
3557 vs.
36 2012-03-01 Sep Sat -> 2012-09-01
58 dateround 2012-03-01 Sep Sat -> 2012-09-01
3759
3860 Note that non-numeric strings prefixed with a `-' conflict with the command
3961 line options and a separating `--' has to be used.
6587 matching date/time.
6688 Note that all occurrences of date/times within a
6789 line will be processed.
90 -E, --empty-mode Empty lines that cannot be parsed.
6891 --locale=LOCALE Format results according to LOCALE, this would only
6992 affect month and weekday names.
7093 --from-locale=LOCALE Interpret dates on stdin or the command line as
00 /*** dseq.c -- like seq(1) but for dates
11 *
2 * Copyright (C) 2009 - 2011 Sebastian Freundt
2 * Copyright (C) 2009 - 2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
497497 }
498498
499499 if (argi->alt_inc_arg) {
500 struct __strpdtdur_st_s st = __strpdtdur_st_initialiser();
500 struct __strpdtdur_st_s st = {0};
501501
502502 do {
503503 if (dt_io_strpdtdur(&st, argi->alt_inc_arg) < 0) {
577577 goto make_compat;
578578
579579 case 3: {
580 struct __strpdtdur_st_s st = __strpdtdur_st_initialiser();
580 struct __strpdtdur_st_s st = {0};
581581
582582 /* get lower bound */
583583 fst = dt_io_strpdt(argi->args[0U], ifmt, nifmt, NULL);
670670 } else if (dt_sandwich_only_d_p(clo.fst) &&
671671 __daisy_feasible_p(clo.ite, clo.nite) &&
672672 clo.fst.d.typ == DT_YMD &&
673 /* issue 131, don't convert noughted out aus to daisy */
674 clo.fst.d.ymd.m && clo.fst.d.ymd.d &&
675 clo.lst.d.ymd.m && clo.lst.d.ymd.d &&
673676 /* convert to daisies */
674677 ((clo.fst = dt_dtconv(_DAISY, clo.fst)).d.typ != DT_DAISY ||
675678 (clo.lst = dt_dtconv(_DAISY, clo.lst)).d.typ != DT_DAISY)) {
00 /*** dsort.c -- sort FILEs or stdin chronologically
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** dt-io-zone.c -- abstract from raw zone interface
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
5252 static size_t
5353 xstrlncpy(char *restrict dst, size_t dsz, const char *src, size_t ssz)
5454 {
55 if (ssz > dsz) {
55 if (UNLIKELY(!dsz)) {
56 return 0U;
57 } else if (ssz > dsz) {
5658 ssz = dsz - 1U;
5759 }
5860 memcpy(dst, src, ssz);
6466 xstrlcpy(char *restrict dst, const char *src, size_t dsz)
6567 {
6668 size_t ssz = strlen(src);
67 if (ssz > dsz) {
69
70 if (UNLIKELY(!dsz)) {
71 return 0U;
72 } else if (ssz > dsz) {
6873 ssz = dsz - 1U;
6974 }
7075 memcpy(dst, src, ssz);
99104 }
100105 tp += z, tz -= z;
101106 *tp++ = '/', tz--;
107 if (UNLIKELY(tz < mnz + sizeof(tzmap_suffix))) {
108 /* GHSL-2020-090 */
109 return NULL;
110 }
102111
103112 /* try and find it the hard way */
104113 xstrlncpy(tp, tz, mnm, mnz);
00 /*** dt-io-zone.h -- abstract from raw zone interface
11 *
2 * Copyright (C) 2009-2018 Sebastian Freundt
2 * Copyright (C) 2009-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
7070
7171 #include "strpdt-special.c"
7272
73 /* coverity[-tainted_data_sink: arg-0] */
7374 dt_strpdt_special_t
7475 dt_io_strpdt_special(const char *str)
7576 {
76 size_t len = strlen(str);
7777 const struct dt_strpdt_special_s *res;
78
78 size_t len = strlen(str) & 0xfU;
79
80 for (size_t i = 0U; i < len; i++) {
81 if (UNLIKELY((signed char)str[i] < ' ')) {
82 return STRPDT_UNK;
83 }
84 }
7985 if (UNLIKELY((res = __strpdt_special(str, len)) != NULL)) {
8086 return res->e;
8187 }
8389 }
8490
8591 struct dt_dt_s
86 dt_io_strpdt_ep(
92 dt_io_strpdt(
8793 const char *str,
88 const char *const *fmt, size_t nfmt, char **ep,
94 char *const *fmt, size_t nfmt,
8995 zif_t zone)
9096 {
91 struct dt_dt_s res = dt_dt_initialiser();
97 struct dt_dt_s res = {DT_UNK};
9298 dt_strpdt_special_t now;
9399
94 /* init */
95 if (ep != NULL) {
96 *ep = NULL;
97 }
98100 /* basic sanity checks, catch phrases first */
99101 now = dt_io_strpdt_special(str);
100102
109111 case STRPDT_TOMO:
110112 case STRPDT_YDAY:
111113 case STRPDT_DATE:
112 res.t = dt_t_initialiser();
114 res.t = (struct dt_t_s){DT_TUNK};
113115 dt_make_d_only(&res, res.d.typ);
114116 if (LIKELY(now == STRPDT_DATE)) {
115117 break;
117119 res.d = dt_dadd(res.d, dt_make_ddur(DT_DURD, add[now]));
118120 break;
119121 case STRPDT_TIME:
120 res.d = dt_d_initialiser();
122 res.d = (struct dt_d_s){DT_DUNK};
121123 dt_make_t_only(&res, res.t.typ);
122124 break;
123125 case STRPDT_NOW:
127129 }
128130 return res;
129131 } else if (nfmt == 0) {
132 res = dt_strpdt(str, NULL, NULL);
133 } else {
134 for (size_t i = 0; i < nfmt; i++) {
135 if (!dt_unk_p(res = dt_strpdt(str, fmt[i], NULL))) {
136 break;
137 }
138 }
139 }
140 return dtz_forgetz(res, zone);
141 }
142
143 struct dt_dt_s
144 dt_io_strpdt_ep(
145 const char *str,
146 char *const *fmt, size_t nfmt, char **ep,
147 zif_t zone)
148 {
149 struct dt_dt_s res = {DT_UNK};
150
151 if (nfmt == 0) {
130152 res = dt_strpdt(str, NULL, ep);
131153 } else {
132154 for (size_t i = 0; i < nfmt; i++) {
146168 {
147169 const char *__sp = str;
148170 struct dt_dt_s d;
149 const char *const *cfmt = (const char*const*)fmt;
150
151 d = dt_io_strpdt_ep(__sp, cfmt, nfmt, ep, zone);
171
172 d = dt_io_strpdt_ep(__sp, fmt, nfmt, ep, zone);
152173 if (dt_unk_p(d)) {
153174 while ((__sp = strstr(__sp, needle)) &&
154175 (d = dt_io_strpdt_ep(
155 __sp += needlen, cfmt, nfmt, ep, zone),
176 __sp += needlen, fmt, nfmt, ep, zone),
156177 dt_unk_p(d)));
157178 }
158179 *sp = (char*)__sp;
166187 char **sp, char **ep,
167188 zif_t zone)
168189 {
169 struct dt_dt_s d = dt_dt_initialiser();
190 struct dt_dt_s d = {DT_UNK};
170191 const char *needle = needles->needle;
171192 const char *p = str;
172193 const char *const zp = str + len;
173194
174 for (; *(p = xmempbrk(p, zp - p, needle)); p++) {
195 for (; (p = xmempbrk(p, zp - p, needle)) < zp && *p; p++) {
175196 /* find the offset */
176197 const struct grpatm_payload_s *fp;
177198 const char *np;
278299 continue;
279300 }
280301 /* not reached unless ndl is set */
281 for (p = str; *(p = xmempbrk(p, zp - p, ndl)); p++) {
302 for (p = str; (p = xmempbrk(p, zp - p, ndl)) < zp && *p; p++) {
282303 if (p + f.off_min < str || p + f.off_max > zp) {
283304 continue;
284305 }
320341 struct grep_atom_s
321342 calc_grep_atom(const char *fmt)
322343 {
323 struct grep_atom_s res = __grep_atom_initialiser();
344 struct grep_atom_s res = {0};
324345 int8_t andl_idx = 0;
325346 int8_t bndl_idx = 0;
326347 int8_t pndl_idx = 0;
677698 /* check if we should continue */
678699 if (st->cont != NULL) {
679700 str = st->istr = st->cont;
680 } else if ((st->istr = str) != NULL) {
701 } else if (LIKELY((st->istr = str) != NULL)) {
681702 ;
682703 } else {
704 res = -1;
683705 goto out;
684706 }
685707
7575 /* public API */
7676 extern dt_strpdt_special_t dt_io_strpdt_special(const char *str);
7777 extern struct dt_dt_s
78 dt_io_strpdt(
79 const char *str,
80 char *const *fmt, size_t nfmt,
81 zif_t zone);
82
83 extern struct dt_dt_s
7884 dt_io_strpdt_ep(
7985 const char *str,
80 const char *const *fmt, size_t nfmt, char **ep,
86 char *const *fmt, size_t nfmt, char **ep,
8187 zif_t zone);
8288
8389 extern struct dt_dt_s
121127 extern zif_t dt_io_zone(const char *spec);
122128
123129
124 /* inlines */
125 static inline struct dt_dt_s
126 dt_io_strpdt(const char *input, char *const *fmt, size_t nfmt, zif_t zone)
127 {
128 return dt_io_strpdt_ep(input, (const char*const*)fmt, nfmt, NULL, zone);
129 }
130
131130 /* grep atoms */
132 static inline __attribute__((pure, const)) struct grep_atom_s
133 __grep_atom_initialiser(void)
134 {
135 #if defined HAVE_SLOPPY_STRUCTS_INIT
136 static const struct grep_atom_s res = {0};
137 #else
138 static const struct grep_atom_s res;
139 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
140 return res;
141 }
142
143 static inline __attribute__((pure, const)) struct grep_atom_soa_s
144 __grep_atom_soa_initialiser(void)
145 {
146 #if defined HAVE_SLOPPY_STRUCTS_INIT
147 static const struct grep_atom_soa_s res = {0};
148 #else
149 static const struct grep_atom_soa_s res;
150 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
151 return res;
152 }
153
154131 static inline struct grep_atom_soa_s
155132 make_grep_atom_soa(grep_atom_t atoms, size_t natoms)
156133 {
157 struct grep_atom_soa_s res = __grep_atom_soa_initialiser();
134 struct grep_atom_soa_s res = {};
158135
159136 res.needle = (char*)atoms;
160137 res.flesh = (void*)(res.needle + natoms);
232209
233210
234211 /* duration parser */
235 static inline __attribute__((pure, const)) struct __strpdtdur_st_s
236 __strpdtdur_st_initialiser(void)
237 {
238 #if defined HAVE_SLOPPY_STRUCTS_INIT
239 static const struct __strpdtdur_st_s res = {};
240 #else
241 static const struct __strpdtdur_st_s res;
242 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
243 return res;
244 }
245
246212 static inline int
247213 __strpdtdur_more_p(struct __strpdtdur_st_s *st)
248214 {
00 /*** dtest.c -- like test(1) but for dates
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
110110
111111 /* just do the comparison */
112112 if ((res = dt_dtcmp(d1, d2)) == -2) {
113 /* uncomparable */
113 /* non-comparable */
114114 res = 3;
115115 } else if (argi->cmp_flag) {
116116 switch (res) {
00 /*** dzone.c -- convert date/times between timezones
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
4949 #include "tzraw.h"
5050
5151 struct ztr_s {
52 int32_t trns;
53 int32_t offs;
52 stamp_t trns;
53 int offs;
5454 };
55
56 /* fwd decld in tzraw.h */
57 struct ztrdtl_s {
58 int32_t offs;
59 uint8_t dstp;
60 uint8_t abbr;
61 } __attribute__((packed));
6255
6356 const char *prog = "dzone";
6457 static char gbuf[256U];
136129 dz_strftr(char *restrict buf, size_t bsz, struct ztr_s t)
137130 {
138131 static const char fmt[] = "%FT%T%Z";
139 struct dt_dt_s d = dt_dt_initialiser();
132 struct dt_dt_s d = {DT_UNK};
140133
141134 d.typ = DT_SEXY;
142135 d.sexy = t.trns + t.offs;
156149 const char *const ep = gbuf + sizeof(gbuf);
157150 size_t ntr = zif_ntrans(z);
158151
159 if (r.next == INT_MAX) {
152 if (r.next >= STAMP_MAX) {
160153 bp += xstrlcpy(bp, never, bp - ep);
161154 } else {
162155 bp += dz_strftr(bp, ep - bp, (struct ztr_s){r.next, r.offs});
165158 bp += xstrlcpy(bp, nindi, bp - ep);
166159 if (r.trno + 1U < ntr) {
167160 /* thank god there's another one */
168 struct ztrdtl_s zd = zif_trdtl(z, r.trno + 1);
169
170 if (r.next == INT_MAX) {
161 stamp_t zdo = zif_troffs(z, r.trno + 1);
162
163 if (r.next >= STAMP_MAX) {
171164 goto never;
172165 }
173 bp += dz_strftr(bp, ep - bp, (struct ztr_s){r.next, zd.offs});
166 bp += dz_strftr(bp, ep - bp, (struct ztr_s){r.next, zdo});
174167 } else {
175168 never:
176169 bp += xstrlcpy(bp, never, bp - ep);
187180 }
188181
189182 static int
190 dz_write_prtr(struct zrng_s r, zif_t UNUSED(z), const char *zn)
183 dz_write_prtr(struct zrng_s r, zif_t z, const char *zn)
191184 {
192185 char *restrict bp = gbuf;
193186 const char *const ep = gbuf + sizeof(gbuf);
194187
195188 if (r.trno >= 1) {
196189 /* there's one before that */
197 struct ztrdtl_s zd = zif_trdtl(z, r.trno - 1);
198
199 bp += dz_strftr(bp, ep - bp, (struct ztr_s){r.prev, zd.offs});
190 stamp_t zdo = zif_troffs(z, r.trno - 1);
191
192 bp += dz_strftr(bp, ep - bp, (struct ztr_s){r.prev, zdo});
200193 } else {
201194 bp += xstrlcpy(bp, never, bp - ep);
202195 }
203196 /* append prev indicator */
204197 bp += xstrlcpy(bp, pindi, bp - ep);
205 if (r.prev == INT_MIN) {
198 if (r.prev <= STAMP_MIN) {
206199 bp += xstrlcpy(bp, never, bp - ep);
207200 } else {
208201 bp += dz_strftr(bp, ep - bp, (struct ztr_s){r.prev, r.offs});
238231 /* all them datetimes to consider */
239232 struct dt_dt_s *d = NULL;
240233 size_t nd = 0U;
241 bool trnsp = false;
234 bool trnsp;
242235
243236 if (yuck_parse(argi, argc, argv)) {
244237 rc = 1;
257250 if (argi->from_zone_arg) {
258251 fromz = dt_io_zone(argi->from_zone_arg);
259252 }
260 if (argi->next_flag || argi->prev_flag) {
261 trnsp = true;
262 }
253 trnsp = argi->next_flag || argi->prev_flag;
254
263255 if (argi->base_arg) {
264256 struct dt_dt_s base = dt_strpdt(argi->base_arg, NULL, NULL);
265257 dt_set_base(base);
00 /*** prchunk.c -- guessing line oriented data formats
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
4545 #endif /* MAP_ANON_NEEDS_ALL_SOURCE */
4646 #include <stddef.h>
4747 #include <stdlib.h>
48 #include <stdio.h>
4948 #include <unistd.h>
5049 #include <fcntl.h>
5150 #include <string.h>
9493 };
9594
9695
97 /* error() impl */
98 static void
99 __attribute__((format(printf, 2, 3)))
100 error(int eno, const char *fmt, ...)
101 {
102 va_list vap;
103 va_start(vap, fmt);
104 fputs("prchunk: ", stderr);
105 vfprintf(stderr, fmt, vap);
106 va_end(vap);
107 if (eno) {
108 fputc(':', stderr);
109 fputc(' ', stderr);
110 fputs(strerror(eno), stderr);
111 }
112 fputc('\n', stderr);
113 return;
114 }
115
11696 static inline void
11797 set_loff(prch_ctx_t ctx, uint32_t lno, off32_t off)
11898 {
205185 * we'd proceed processing them (off < __ctx->bno + nrd */
206186 if (UNLIKELY(!nrd && off < bno && ctx->cur_lno <= ctx->tot_lno)) {
207187 /* last line then, unyielded :| */
208 set_loff(ctx, 0, bno - ctx->buf);
188 set_loff(ctx, ctx->tot_lno, bno - ctx->buf);
189 off = bno;
190 /* count it as line and check if we need more */
191 if (++ctx->tot_lno >= MAX_NLINES) {
192 YIELD(3);
193 }
209194 YIELD(4);
210195 } else if (UNLIKELY(nrd <= 0 && off == ctx->buf)) {
211196 /* special case, we worked our arses off and nothing's
212197 * in the pipe line so just fuck off here */
213 return -1;
198 if (!ctx->bno) {
199 return -1;
200 }
201 /* go to drain mode */
202 YIELD(2);
214203 } else if (LIKELY(off < bno || off == ctx->buf)) {
215204 YIELD(2);
216205 }
224213 if (LIKELY(nrd > 0)) {
225214 break;
226215 }
227 /* fucking idiots didnt conclude with a \n */
228 error(0, "ID:10T error");
229 p = bno;
216 /* not concluded with \n, let's hope we're in drain mode */
217 return -1;
230218 }
231219 /* massage our status structures */
232220 set_loff(ctx, ctx->tot_lno, p - ctx->buf);
436424
437425
438426 #if defined STANDALONE
427 #include <stdio.h>
428
439429 int
440430 main(int argc, char *argv[])
441431 {
00 /*** prchunk.h -- guessing line oriented data formats
11 *
2 * Copyright (C) 2010-2018 Sebastian Freundt
2 * Copyright (C) 2010-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
00 /*** strptime.c -- a shell interface to strptime(3)
11 *
2 * Copyright (C) 2011-2018 Sebastian Freundt
2 * Copyright (C) 2011-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
6868 {
6969 char res[256];
7070 strftime(res, sizeof(res), ofmt, tm);
71 fputs(res, stdout);
71 puts(res);
7272 return;
7373 }
7474
75 static inline __attribute__((pure, const)) struct tm
76 __tm_initialiser(void)
77 {
78 #if defined HAVE_SLOPPY_STRUCTS_INIT
79 static const struct tm res = {};
80 #else
81 static const struct tm res;
82 #endif /* HAVE_SLOPPY_STRUCTS_INIT */
83 return res;
84 }
85
86 static void
75 static int
8776 proc_line(
8877 const char *ln, const char *const *fmt, size_t nfmt,
8978 const char *ofmt,
9079 int quietp)
9180 {
92 struct tm tm = __tm_initialiser();
81 struct tm tm = {0};
82 int rc = 0;
9383
9484 if (pars_line(&tm, fmt, nfmt, ln) < 0) {
9585 if (!quietp) {
9686 dt_io_warn_strpdt(ln);
87 rc = 2;
9788 }
9889 } else {
9990 prnt_line(ofmt, &tm);
10091 }
101 return;
92 return rc;
10293 }
10394
104 static void
95 static int
10596 proc_lines(const char *const *fmt, size_t nfmt, const char *ofmt, int quietp)
10697 {
10798 size_t lno = 0;
99 int rc = 0;
108100 void *pctx;
109101
110102 /* using the prchunk reader now */
111103 if ((pctx = init_prchunk(STDIN_FILENO)) == NULL) {
112104 serror("Error: could not open stdin");
113 return;
105 return 1;
114106 }
115107 while (prchunk_fill(pctx) >= 0) {
116108 for (char *line; prchunk_haslinep(pctx); lno++) {
117109 (void)prchunk_getline(pctx, &line);
118110 /* check if line matches */
119 proc_line(line, fmt, nfmt, ofmt, quietp);
111 rc |= proc_line(line, fmt, nfmt, ofmt, quietp);
120112 }
121113 }
122114 /* get rid of resources */
123115 free_prchunk(pctx);
124 return;
116 return rc;
125117 }
126118
127119
130122 int
131123 main(int argc, char *argv[])
132124 {
133 static char dflt_fmt[] = "%Y-%m-%d\n\0H:%M:%S %Z\n";
125 static char dflt_fmt[] = "%Y-%m-%d\0%H:%M:%S %Z";
134126 yuck_t argi[1U];
135127 char *outfmt = dflt_fmt;
136 char **infmt;
137 size_t ninfmt;
138 char **input;
139 size_t ninput;
140128 int quietp;
141 int res = 0;
129 int rc = 0;
142130
143131 if (yuck_parse(argi, argc, argv)) {
144 res = 1;
132 rc = 1;
145133 goto out;
146134 }
147135
153141 }
154142 } else if (argi->time_flag) {
155143 outfmt[8] = ' ';
156 outfmt[9] = '%';
157144 }
158145
159 if (!argi->input_format_nargs) {
160 infmt = argi->args;
161 ninfmt = argi->nargs;
162 input = NULL;
163 ninput = 0;
164 } else {
165 infmt = argi->input_format_args;
166 ninfmt = argi->input_format_nargs;
167 input = argi->args;
168 ninput = argi->nargs;
169 }
170146 /* get quiet predicate */
171147 quietp = argi->quiet_flag;
172148
185161 }
186162
187163 /* get lines one by one, apply format string and print date/time */
188 if (ninput == 0) {
164 if (argi->nargs == 0U) {
189165 /* read from stdin */
190 proc_lines((const char*const*)infmt, ninfmt, outfmt, quietp);
166 rc |= proc_lines(argi->input_format_args, argi->input_format_nargs, outfmt, quietp);
191167 } else {
192 const char *const *cinfmt = (const char*const*)infmt;
193 for (size_t i = 0; i < ninput; i++) {
194 proc_line(input[i], cinfmt, ninfmt, outfmt, quietp);
168 for (size_t i = 0; i < argi->nargs; i++) {
169 rc |= proc_line(argi->args[i], argi->input_format_args, argi->input_format_nargs, outfmt, quietp);
195170 }
196171 }
197172
198173 out:
199174 yuck_free(argi);
200 return res;
175 return rc;
201176 }
202177
203178 /* strptime.c ends here */
1919 be used.
2020 -e, --backslash-escapes Enable interpretation of backslash escapes in the
2121 output and input format specifier strings.
22 -S, --sed-mode Copy parts from the input before and after a
23 matching date/time.
24 Note that all occurrences of date/times within a
25 line will be processed.
2622 -l, --locale Make internal strptime(3) and strftime(3) behave
2723 in a locale dependent way, default is to pretend
2824 LC_ALL=C is in place.
3232
3333 ## our friendly helper
3434 include clitosis.am
35 AM_CLIT_LOG_FLAGS = -v --builddir "$(top_builddir)/src" --timeout 300 --keep-going
35 AM_CTST_LOG_FLAGS = -v --builddir "$(top_builddir)/src" --timeout 300 --keep-going
3636
3737 TESTS_ENVIRONMENT += GPERF=$(GPERF)
3838 TESTS_ENVIRONMENT += GDATE=$(GDATE)
3939 TESTS_ENVIRONMENT += have_gdate="$(have_gdate)"
4040
41 dt_tests += dseq.01.clit
42 dt_tests += dseq.02.clit
43 dt_tests += dseq.03.clit
44 dt_tests += dseq.04.clit
45 dt_tests += dseq.05.clit
46 dt_tests += dseq.06.clit
47 dt_tests += dseq.07.clit
48 dt_tests += dseq.08.clit
49 dt_tests += dseq.09.clit
50 dt_tests += dseq.10.clit
51 dt_tests += dseq.11.clit
52 dt_tests += dseq.12.clit
53 dt_tests += dseq.13.clit
54 dt_tests += dseq.14.clit
55 dt_tests += dseq.15.clit
56 dt_tests += dseq.16.clit
57 dt_tests += dseq.17.clit
58 dt_tests += dseq.18.clit
59 dt_tests += dseq.19.clit
60 dt_tests += dseq.20.clit
61 dt_tests += dseq.21.clit
62 dt_tests += dseq.22.clit
63 dt_tests += dseq.23.clit
64 dt_tests += dseq.24.clit
65 dt_tests += dseq.25.clit
66 dt_tests += dseq.26.clit
67 dt_tests += dseq.27.clit
68 dt_tests += dseq.28.clit
69 dt_tests += dseq.29.clit
70 dt_tests += dseq.30.clit
71 dt_tests += dseq.31.clit
72 dt_tests += dseq.32.clit
73 dt_tests += dseq.33.clit
74 dt_tests += dseq.34.clit
75 dt_tests += dseq.35.clit
76 dt_tests += dseq.36.clit
77 dt_tests += dseq.37.clit
78 dt_tests += dseq.38.clit
79 dt_tests += dseq.39.clit
80 dt_tests += dseq.40.clit
81 dt_tests += dseq.41.clit
82 dt_tests += dseq.42.clit
83 dt_tests += dseq.43.clit
84 dt_tests += dseq.44.clit
85 dt_tests += dseq.45.clit
86 dt_tests += dseq.46.clit
87 dt_tests += dseq.47.clit
88 dt_tests += dseq.48.clit
89 dt_tests += dseq.49.clit
90 dt_tests += dseq.50.clit
91 dt_tests += dseq.51.clit
92 dt_tests += dseq.52.clit
93 dt_tests += dseq.53.clit
94 dt_tests += dseq.54.clit
95 dt_tests += dseq.55.clit
96 dt_tests += dseq.56.clit
97 dt_tests += dseq.57.clit
98 dt_tests += dseq.58.clit
99 dt_tests += dseq.59.clit
100 dt_tests += dseq.60.clit
101 dt_tests += dseq.61.clit
102
103 dt_tests += dconv.001.clit
104 dt_tests += dconv.002.clit
105 dt_tests += dconv.003.clit
106 dt_tests += dconv.004.clit
107 dt_tests += dconv.005.clit
108 dt_tests += dconv.006.clit
109 dt_tests += dconv.007.clit
110 dt_tests += dconv.008.clit
111 dt_tests += dconv.009.clit
112 dt_tests += dconv.010.clit
113 dt_tests += dconv.011.clit
114 dt_tests += dconv.012.clit
115 dt_tests += dconv.013.clit
116 dt_tests += dconv.014.clit
117 dt_tests += dconv.015.clit
118 dt_tests += dconv.016.clit
119 dt_tests += dconv.017.clit
120 dt_tests += dconv.018.clit
121 dt_tests += dconv.019.clit
122 dt_tests += dconv.020.clit
123 dt_tests += dconv.021.clit
124 dt_tests += dconv.022.clit
125 dt_tests += dconv.023.clit
126 dt_tests += dconv.024.clit
127 dt_tests += dconv.025.clit
128 dt_tests += dconv.026.clit
129 dt_tests += dconv.027.clit
130 dt_tests += dconv.028.clit
131 dt_tests += dconv.029.clit
132 dt_tests += dconv.030.clit
133 dt_tests += dconv.031.clit
134 dt_tests += dconv.032.clit
135 dt_tests += dconv.033.clit
136 dt_tests += dconv.034.clit
137 dt_tests += dconv.035.clit
138 dt_tests += dconv.036.clit
139 dt_tests += dconv.037.clit
140 dt_tests += dconv.038.clit
141 dt_tests += dconv.039.clit
142 dt_tests += dconv.040.clit
143 dt_tests += dconv.041.clit
144 dt_tests += dconv.042.clit
145 dt_tests += dconv.043.clit
146 dt_tests += dconv.044.clit
147 dt_tests += dconv.045.clit
148 dt_tests += dconv.046.clit
149 dt_tests += dconv.047.clit
150 dt_tests += dconv.048.clit
151 dt_tests += dconv.049.clit
152 dt_tests += dconv.050.clit
153 dt_tests += dconv.051.clit
154 dt_tests += dconv.052.clit
155 dt_tests += dconv.053.clit
156 dt_tests += dconv.054.clit
157 dt_tests += dconv.055.clit
158 dt_tests += dconv.056.clit
159 dt_tests += dconv.057.clit
160 dt_tests += dconv.058.clit
161 dt_tests += dconv.059.clit
162 dt_tests += dconv.060.clit
163 dt_tests += dconv.061.clit
164 dt_tests += dconv.062.clit
165 dt_tests += dconv.063.clit
166 dt_tests += dconv.064.clit
167 dt_tests += dconv.065.clit
168 dt_tests += dconv.066.clit
169 dt_tests += dconv.067.clit
170 dt_tests += dconv.068.clit
171 dt_tests += dconv.069.clit
172 dt_tests += dconv.070.clit
173 dt_tests += dconv.071.clit
174 dt_tests += dconv.072.clit
175 dt_tests += dconv.073.clit
176 dt_tests += dconv.074.clit
177 dt_tests += dconv.075.clit
178 dt_tests += dconv.076.clit
179 dt_tests += dconv.077.clit
180 dt_tests += dconv.078.clit
181 dt_tests += dconv.079.clit
182 dt_tests += dconv.080.clit
183 dt_tests += dconv.081.clit
184 dt_tests += dconv.082.clit
185 dt_tests += dconv.083.clit
186 dt_tests += dconv.084.clit
187 dt_tests += dconv.085.clit
188 dt_tests += dconv.086.clit
189 dt_tests += dconv.087.clit
190 dt_tests += dconv.088.clit
191 dt_tests += dconv.089.clit
192 dt_tests += dconv.090.clit
193 dt_tests += dconv.091.clit
194 dt_tests += dconv.092.clit
195 dt_tests += dconv.093.clit
196 dt_tests += dconv.094.clit
197 dt_tests += dconv.095.clit
198 dt_tests += dconv.096.clit
199 dt_tests += dconv.097.clit
200 dt_tests += dconv.098.clit
201 dt_tests += dconv.099.clit
202 dt_tests += dconv.100.clit
203 dt_tests += dconv.101.clit
204 dt_tests += dconv.102.clit
205 dt_tests += dconv.103.clit
206 dt_tests += dconv.104.clit
207 dt_tests += dconv.105.clit
208 dt_tests += dconv.106.clit
209 dt_tests += dconv.107.clit
210 dt_tests += dconv.108.clit
211 dt_tests += dconv.109.clit
212 dt_tests += dconv.110.clit
213 dt_tests += dconv.111.clit
214 dt_tests += dconv.112.clit
215 dt_tests += dconv.113.clit
216 dt_tests += dconv.114.clit
217 dt_tests += dconv.115.clit
218 dt_tests += dconv.116.clit
219 dt_tests += dconv.117.clit
220 dt_tests += dconv.118.clit
221 dt_tests += dconv.119.clit
222 dt_tests += dconv.120.clit
223 dt_tests += dconv.121.clit
224 dt_tests += dconv.122.clit
225 dt_tests += dconv.123.clit
226 dt_tests += dconv.124.clit
227 dt_tests += dconv.125.clit
228 dt_tests += dconv.126.clit
229 dt_tests += dconv.127.clit
230 dt_tests += dconv.128.clit
231 dt_tests += dconv.129.clit
232 dt_tests += dconv.130.clit
233 dt_tests += dconv.131.clit
234 dt_tests += dconv.132.clit
235 dt_tests += dconv.133.clit
236 dt_tests += dconv.134.clit
237 dt_tests += dconv.135.clit
238 dt_tests += dconv.136.clit
239 dt_tests += dconv.137.clit
240 dt_tests += dconv.138.clit
241
242 dt_tests += dadd.001.clit
243 dt_tests += dadd.002.clit
244 dt_tests += dadd.003.clit
245 dt_tests += dadd.004.clit
246 dt_tests += dadd.005.clit
247 dt_tests += dadd.006.clit
248 dt_tests += dadd.007.clit
249 dt_tests += dadd.008.clit
250 dt_tests += dadd.009.clit
251 dt_tests += dadd.010.clit
252 dt_tests += dadd.011.clit
253 dt_tests += dadd.012.clit
254 dt_tests += dadd.013.clit
255 dt_tests += dadd.014.clit
256 dt_tests += dadd.015.clit
257 dt_tests += dadd.016.clit
258 dt_tests += dadd.017.clit
259 dt_tests += dadd.018.clit
260 dt_tests += dadd.019.clit
261 dt_tests += dadd.020.clit
262 dt_tests += dadd.021.clit
263 dt_tests += dadd.022.clit
264 dt_tests += dadd.023.clit
265 dt_tests += dadd.024.clit
266 dt_tests += dadd.025.clit
267 dt_tests += dadd.026.clit
268 dt_tests += dadd.027.clit
269 dt_tests += dadd.028.clit
270 dt_tests += dadd.029.clit
271 dt_tests += dadd.030.clit
272 dt_tests += dadd.031.clit
273 dt_tests += dadd.032.clit
274 dt_tests += dadd.033.clit
275 dt_tests += dadd.034.clit
276 dt_tests += dadd.035.clit
277 dt_tests += dadd.036.clit
278 dt_tests += dadd.037.clit
279 dt_tests += dadd.038.clit
280 dt_tests += dadd.039.clit
281 dt_tests += dadd.040.clit
282 dt_tests += dadd.041.clit
283 dt_tests += dadd.042.clit
284 dt_tests += dadd.043.clit
285 dt_tests += dadd.044.clit
286 dt_tests += dadd.045.clit
287 dt_tests += dadd.046.clit
288 dt_tests += dadd.047.clit
289 dt_tests += dadd.048.clit
290 dt_tests += dadd.049.clit
291 dt_tests += dadd.050.clit
292 dt_tests += dadd.051.clit
293 dt_tests += dadd.052.clit
294 dt_tests += dadd.053.clit
295 dt_tests += dadd.054.clit
296 dt_tests += dadd.055.clit
297 dt_tests += dadd.056.clit
298 dt_tests += dadd.057.clit
299 dt_tests += dadd.058.clit
300 dt_tests += dadd.059.clit
301 dt_tests += dadd.060.clit
302 dt_tests += dadd.061.clit
303 dt_tests += dadd.062.clit
304 dt_tests += dadd.063.clit
305 dt_tests += dadd.064.clit
306 dt_tests += dadd.065.clit
307 dt_tests += dadd.066.clit
308 dt_tests += dadd.067.clit
309 dt_tests += dadd.068.clit
310 dt_tests += dadd.069.clit
311 dt_tests += dadd.070.clit
312 dt_tests += dadd.071.clit
313 dt_tests += dadd.072.clit
314 dt_tests += dadd.073.clit
315 dt_tests += dadd.074.clit
316 dt_tests += dadd.075.clit
317 dt_tests += dadd.076.clit
318 dt_tests += dadd.077.clit
319 dt_tests += dadd.078.clit
320 dt_tests += dadd.079.clit
321 dt_tests += dadd.080.clit
322 dt_tests += dadd.081.clit
323 dt_tests += dadd.082.clit
324 dt_tests += dadd.083.clit
325 dt_tests += dadd.084.clit
326 dt_tests += dadd.085.clit
327 dt_tests += dadd.086.clit
328 dt_tests += dadd.087.clit
329 dt_tests += dadd.088.clit
330 dt_tests += dadd.089.clit
331 dt_tests += dadd.090.clit
41 dt_tests += dseq.01.ctst
42 dt_tests += dseq.02.ctst
43 dt_tests += dseq.03.ctst
44 dt_tests += dseq.04.ctst
45 dt_tests += dseq.05.ctst
46 dt_tests += dseq.06.ctst
47 dt_tests += dseq.07.ctst
48 dt_tests += dseq.08.ctst
49 dt_tests += dseq.09.ctst
50 dt_tests += dseq.10.ctst
51 dt_tests += dseq.11.ctst
52 dt_tests += dseq.12.ctst
53 dt_tests += dseq.13.ctst
54 dt_tests += dseq.14.ctst
55 dt_tests += dseq.15.ctst
56 dt_tests += dseq.16.ctst
57 dt_tests += dseq.17.ctst
58 dt_tests += dseq.18.ctst
59 dt_tests += dseq.19.ctst
60 dt_tests += dseq.20.ctst
61 dt_tests += dseq.21.ctst
62 dt_tests += dseq.22.ctst
63 dt_tests += dseq.23.ctst
64 dt_tests += dseq.24.ctst
65 dt_tests += dseq.25.ctst
66 dt_tests += dseq.26.ctst
67 dt_tests += dseq.27.ctst
68 dt_tests += dseq.28.ctst
69 dt_tests += dseq.29.ctst
70 dt_tests += dseq.30.ctst
71 dt_tests += dseq.31.ctst
72 dt_tests += dseq.32.ctst
73 dt_tests += dseq.33.ctst
74 dt_tests += dseq.34.ctst
75 dt_tests += dseq.35.ctst
76 dt_tests += dseq.36.ctst
77 dt_tests += dseq.37.ctst
78 dt_tests += dseq.38.ctst
79 dt_tests += dseq.39.ctst
80 dt_tests += dseq.40.ctst
81 dt_tests += dseq.41.ctst
82 dt_tests += dseq.42.ctst
83 dt_tests += dseq.43.ctst
84 dt_tests += dseq.44.ctst
85 dt_tests += dseq.45.ctst
86 dt_tests += dseq.46.ctst
87 dt_tests += dseq.47.ctst
88 dt_tests += dseq.48.ctst
89 dt_tests += dseq.49.ctst
90 dt_tests += dseq.50.ctst
91 dt_tests += dseq.51.ctst
92 dt_tests += dseq.52.ctst
93 dt_tests += dseq.53.ctst
94 dt_tests += dseq.54.ctst
95 dt_tests += dseq.55.ctst
96 dt_tests += dseq.56.ctst
97 dt_tests += dseq.57.ctst
98 dt_tests += dseq.58.ctst
99 dt_tests += dseq.59.ctst
100 dt_tests += dseq.60.ctst
101 dt_tests += dseq.61.ctst
102 dt_tests += dseq.62.ctst
103 dt_tests += dseq.63.ctst
104 dt_tests += dseq.64.ctst
105 dt_tests += dseq.65.ctst
106 dt_tests += dseq.66.ctst
107 dt_tests += dseq.67.ctst
108
109 dt_tests += dconv.001.ctst
110 dt_tests += dconv.002.ctst
111 dt_tests += dconv.003.ctst
112 dt_tests += dconv.004.ctst
113 dt_tests += dconv.005.ctst
114 dt_tests += dconv.006.ctst
115 dt_tests += dconv.007.ctst
116 dt_tests += dconv.008.ctst
117 dt_tests += dconv.009.ctst
118 dt_tests += dconv.010.ctst
119 dt_tests += dconv.011.ctst
120 dt_tests += dconv.012.ctst
121 dt_tests += dconv.013.ctst
122 dt_tests += dconv.014.ctst
123 dt_tests += dconv.015.ctst
124 dt_tests += dconv.016.ctst
125 dt_tests += dconv.017.ctst
126 dt_tests += dconv.018.ctst
127 dt_tests += dconv.019.ctst
128 dt_tests += dconv.020.ctst
129 dt_tests += dconv.021.ctst
130 dt_tests += dconv.022.ctst
131 dt_tests += dconv.023.ctst
132 dt_tests += dconv.024.ctst
133 dt_tests += dconv.025.ctst
134 dt_tests += dconv.026.ctst
135 dt_tests += dconv.027.ctst
136 dt_tests += dconv.028.ctst
137 dt_tests += dconv.029.ctst
138 dt_tests += dconv.030.ctst
139 dt_tests += dconv.031.ctst
140 dt_tests += dconv.032.ctst
141 dt_tests += dconv.033.ctst
142 dt_tests += dconv.034.ctst
143 dt_tests += dconv.035.ctst
144 dt_tests += dconv.036.ctst
145 dt_tests += dconv.037.ctst
146 dt_tests += dconv.038.ctst
147 dt_tests += dconv.039.ctst
148 dt_tests += dconv.040.ctst
149 dt_tests += dconv.041.ctst
150 dt_tests += dconv.042.ctst
151 dt_tests += dconv.043.ctst
152 dt_tests += dconv.044.ctst
153 dt_tests += dconv.045.ctst
154 dt_tests += dconv.046.ctst
155 dt_tests += dconv.047.ctst
156 dt_tests += dconv.048.ctst
157 dt_tests += dconv.049.ctst
158 dt_tests += dconv.050.ctst
159 dt_tests += dconv.051.ctst
160 dt_tests += dconv.052.ctst
161 dt_tests += dconv.053.ctst
162 dt_tests += dconv.054.ctst
163 dt_tests += dconv.055.ctst
164 dt_tests += dconv.056.ctst
165 dt_tests += dconv.057.ctst
166 dt_tests += dconv.058.ctst
167 dt_tests += dconv.059.ctst
168 dt_tests += dconv.060.ctst
169 dt_tests += dconv.061.ctst
170 dt_tests += dconv.062.ctst
171 dt_tests += dconv.063.ctst
172 dt_tests += dconv.064.ctst
173 dt_tests += dconv.065.ctst
174 dt_tests += dconv.066.ctst
175 dt_tests += dconv.067.ctst
176 dt_tests += dconv.068.ctst
177 dt_tests += dconv.069.ctst
178 dt_tests += dconv.070.ctst
179 dt_tests += dconv.071.ctst
180 dt_tests += dconv.072.ctst
181 dt_tests += dconv.073.ctst
182 dt_tests += dconv.074.ctst
183 dt_tests += dconv.075.ctst
184 dt_tests += dconv.076.ctst
185 dt_tests += dconv.077.ctst
186 dt_tests += dconv.078.ctst
187 dt_tests += dconv.079.ctst
188 dt_tests += dconv.080.ctst
189 dt_tests += dconv.081.ctst
190 dt_tests += dconv.082.ctst
191 dt_tests += dconv.083.ctst
192 dt_tests += dconv.084.ctst
193 dt_tests += dconv.085.ctst
194 dt_tests += dconv.086.ctst
195 dt_tests += dconv.087.ctst
196 dt_tests += dconv.088.ctst
197 dt_tests += dconv.089.ctst
198 dt_tests += dconv.090.ctst
199 dt_tests += dconv.091.ctst
200 dt_tests += dconv.092.ctst
201 dt_tests += dconv.093.ctst
202 dt_tests += dconv.094.ctst
203 dt_tests += dconv.095.ctst
204 dt_tests += dconv.096.ctst
205 dt_tests += dconv.097.ctst
206 dt_tests += dconv.098.ctst
207 dt_tests += dconv.099.ctst
208 dt_tests += dconv.100.ctst
209 dt_tests += dconv.101.ctst
210 dt_tests += dconv.102.ctst
211 dt_tests += dconv.103.ctst
212 dt_tests += dconv.104.ctst
213 dt_tests += dconv.105.ctst
214 dt_tests += dconv.106.ctst
215 dt_tests += dconv.107.ctst
216 dt_tests += dconv.108.ctst
217 dt_tests += dconv.109.ctst
218 dt_tests += dconv.110.ctst
219 dt_tests += dconv.111.ctst
220 dt_tests += dconv.112.ctst
221 dt_tests += dconv.113.ctst
222 dt_tests += dconv.114.ctst
223 dt_tests += dconv.115.ctst
224 dt_tests += dconv.116.ctst
225 dt_tests += dconv.117.ctst
226 dt_tests += dconv.118.ctst
227 dt_tests += dconv.119.ctst
228 dt_tests += dconv.120.ctst
229 dt_tests += dconv.121.ctst
230 dt_tests += dconv.122.ctst
231 dt_tests += dconv.123.ctst
232 dt_tests += dconv.124.ctst
233 dt_tests += dconv.125.ctst
234 dt_tests += dconv.126.ctst
235 dt_tests += dconv.127.ctst
236 dt_tests += dconv.128.ctst
237 dt_tests += dconv.129.ctst
238 dt_tests += dconv.130.ctst
239 dt_tests += dconv.131.ctst
240 dt_tests += dconv.132.ctst
241 dt_tests += dconv.133.ctst
242 dt_tests += dconv.134.ctst
243 dt_tests += dconv.135.ctst
244 dt_tests += dconv.136.ctst
245 dt_tests += dconv.137.ctst
246 dt_tests += dconv.138.ctst
247 dt_tests += dconv.139.ctst
248 dt_tests += dconv.140.ctst
249 dt_tests += dconv.141.ctst
250 dt_tests += dconv.142.ctst
251 dt_tests += dconv.143.ctst
252
253 dt_tests += dadd.001.ctst
254 dt_tests += dadd.002.ctst
255 dt_tests += dadd.003.ctst
256 dt_tests += dadd.004.ctst
257 dt_tests += dadd.005.ctst
258 dt_tests += dadd.006.ctst
259 dt_tests += dadd.007.ctst
260 dt_tests += dadd.008.ctst
261 dt_tests += dadd.009.ctst
262 dt_tests += dadd.010.ctst
263 dt_tests += dadd.011.ctst
264 dt_tests += dadd.012.ctst
265 dt_tests += dadd.013.ctst
266 dt_tests += dadd.014.ctst
267 dt_tests += dadd.015.ctst
268 dt_tests += dadd.016.ctst
269 dt_tests += dadd.017.ctst
270 dt_tests += dadd.018.ctst
271 dt_tests += dadd.019.ctst
272 dt_tests += dadd.020.ctst
273 dt_tests += dadd.021.ctst
274 dt_tests += dadd.022.ctst
275 dt_tests += dadd.023.ctst
276 dt_tests += dadd.024.ctst
277 dt_tests += dadd.025.ctst
278 dt_tests += dadd.026.ctst
279 dt_tests += dadd.027.ctst
280 dt_tests += dadd.028.ctst
281 dt_tests += dadd.029.ctst
282 dt_tests += dadd.030.ctst
283 dt_tests += dadd.031.ctst
284 dt_tests += dadd.032.ctst
285 dt_tests += dadd.033.ctst
286 dt_tests += dadd.034.ctst
287 dt_tests += dadd.035.ctst
288 dt_tests += dadd.036.ctst
289 dt_tests += dadd.037.ctst
290 dt_tests += dadd.038.ctst
291 dt_tests += dadd.039.ctst
292 dt_tests += dadd.040.ctst
293 dt_tests += dadd.041.ctst
294 dt_tests += dadd.042.ctst
295 dt_tests += dadd.043.ctst
296 dt_tests += dadd.044.ctst
297 dt_tests += dadd.045.ctst
298 dt_tests += dadd.046.ctst
299 dt_tests += dadd.047.ctst
300 dt_tests += dadd.048.ctst
301 dt_tests += dadd.049.ctst
302 dt_tests += dadd.050.ctst
303 dt_tests += dadd.051.ctst
304 dt_tests += dadd.052.ctst
305 dt_tests += dadd.053.ctst
306 dt_tests += dadd.054.ctst
307 dt_tests += dadd.055.ctst
308 dt_tests += dadd.056.ctst
309 dt_tests += dadd.057.ctst
310 dt_tests += dadd.058.ctst
311 dt_tests += dadd.059.ctst
312 dt_tests += dadd.060.ctst
313 dt_tests += dadd.061.ctst
314 dt_tests += dadd.062.ctst
315 dt_tests += dadd.063.ctst
316 dt_tests += dadd.064.ctst
317 dt_tests += dadd.065.ctst
318 dt_tests += dadd.066.ctst
319 dt_tests += dadd.067.ctst
320 dt_tests += dadd.068.ctst
321 dt_tests += dadd.069.ctst
322 dt_tests += dadd.070.ctst
323 dt_tests += dadd.071.ctst
324 dt_tests += dadd.072.ctst
325 dt_tests += dadd.073.ctst
326 dt_tests += dadd.074.ctst
327 dt_tests += dadd.075.ctst
328 dt_tests += dadd.076.ctst
329 dt_tests += dadd.077.ctst
330 dt_tests += dadd.078.ctst
331 dt_tests += dadd.079.ctst
332 dt_tests += dadd.080.ctst
333 dt_tests += dadd.081.ctst
334 dt_tests += dadd.082.ctst
335 dt_tests += dadd.083.ctst
336 dt_tests += dadd.084.ctst
337 dt_tests += dadd.085.ctst
338 dt_tests += dadd.086.ctst
339 dt_tests += dadd.087.ctst
340 dt_tests += dadd.088.ctst
341 dt_tests += dadd.089.ctst
342 dt_tests += dadd.090.ctst
332343 EXTRA_DIST += dadd.090.dat
333 dt_tests += dadd.091.clit
334 dt_tests += dadd.092.clit
335 dt_tests += dadd.093.clit
336 dt_tests += dadd.094.clit
337 dt_tests += dadd.095.clit
338
339 dt_tests += dtest.001.clit
340 dt_tests += dtest.002.clit
341 dt_tests += dtest.003.clit
342 dt_tests += dtest.004.clit
343 dt_tests += dtest.005.clit
344 dt_tests += dtest.006.clit
345 dt_tests += dtest.007.clit
346 dt_tests += dtest.008.clit
347 dt_tests += dtest.009.clit
348 dt_tests += dtest.010.clit
349 dt_tests += dtest.011.clit
350
351 dt_tests += ddiff.001.clit
352 dt_tests += ddiff.002.clit
353 dt_tests += ddiff.003.clit
354 dt_tests += ddiff.004.clit
355 dt_tests += ddiff.005.clit
356 dt_tests += ddiff.006.clit
357 dt_tests += ddiff.007.clit
358 dt_tests += ddiff.008.clit
359 dt_tests += ddiff.009.clit
360 dt_tests += ddiff.010.clit
361 dt_tests += ddiff.011.clit
362 dt_tests += ddiff.012.clit
363 dt_tests += ddiff.013.clit
364 dt_tests += ddiff.014.clit
365 dt_tests += ddiff.015.clit
366 dt_tests += ddiff.016.clit
367 dt_tests += ddiff.017.clit
368 dt_tests += ddiff.018.clit
369 dt_tests += ddiff.019.clit
370 dt_tests += ddiff.020.clit
371 dt_tests += ddiff.021.clit
372 dt_tests += ddiff.022.clit
373 dt_tests += ddiff.023.clit
374 dt_tests += ddiff.024.clit
375 dt_tests += ddiff.025.clit
376 dt_tests += ddiff.026.clit
377 dt_tests += ddiff.027.clit
378 dt_tests += ddiff.028.clit
379 dt_tests += ddiff.029.clit
380 dt_tests += ddiff.030.clit
381 dt_tests += ddiff.031.clit
382 dt_tests += ddiff.032.clit
383 dt_tests += ddiff.033.clit
384 dt_tests += ddiff.034.clit
385 dt_tests += ddiff.035.clit
386 dt_tests += ddiff.036.clit
387 dt_tests += ddiff.037.clit
388 dt_tests += ddiff.038.clit
389 dt_tests += ddiff.039.clit
390 dt_tests += ddiff.040.clit
391 dt_tests += ddiff.041.clit
392 dt_tests += ddiff.042.clit
393 dt_tests += ddiff.043.clit
394 dt_tests += ddiff.044.clit
395 dt_tests += ddiff.045.clit
396 dt_tests += ddiff.046.clit
397 dt_tests += ddiff.047.clit
398 dt_tests += ddiff.048.clit
399 dt_tests += ddiff.049.clit
400 dt_tests += ddiff.050.clit
401 dt_tests += ddiff.051.clit
402 dt_tests += ddiff.052.clit
403 dt_tests += ddiff.053.clit
404 dt_tests += ddiff.054.clit
405 dt_tests += ddiff.055.clit
406 dt_tests += ddiff.056.clit
407 dt_tests += ddiff.057.clit
408 dt_tests += ddiff.058.clit
409 dt_tests += ddiff.059.clit
410 dt_tests += ddiff.060.clit
411 dt_tests += ddiff.061.clit
412 dt_tests += ddiff.062.clit
413 dt_tests += ddiff.063.clit
414 dt_tests += ddiff.064.clit
415 dt_tests += ddiff.065.clit
416 dt_tests += ddiff.066.clit
417 dt_tests += ddiff.067.clit
418 dt_tests += ddiff.068.clit
419 dt_tests += ddiff.069.clit
420 dt_tests += ddiff.070.clit
421 dt_tests += ddiff.071.clit
422 dt_tests += ddiff.072.clit
344 dt_tests += dadd.091.ctst
345 dt_tests += dadd.092.ctst
346 dt_tests += dadd.093.ctst
347 dt_tests += dadd.094.ctst
348 dt_tests += dadd.095.ctst
349 dt_tests += dadd.096.ctst
350 dt_tests += dadd.097.ctst
351 dt_tests += dadd.098.ctst
352 dt_tests += dadd.099.ctst
353 dt_tests += dadd.100.ctst
354 dt_tests += dadd.101.ctst
355 dt_tests += dadd.102.ctst
356 dt_tests += dadd.103.ctst
357
358 dt_tests += dtest.001.ctst
359 dt_tests += dtest.002.ctst
360 dt_tests += dtest.003.ctst
361 dt_tests += dtest.004.ctst
362 dt_tests += dtest.005.ctst
363 dt_tests += dtest.006.ctst
364 dt_tests += dtest.007.ctst
365 dt_tests += dtest.008.ctst
366 dt_tests += dtest.009.ctst
367 dt_tests += dtest.010.ctst
368 dt_tests += dtest.011.ctst
369
370 dt_tests += ddiff.001.ctst
371 dt_tests += ddiff.002.ctst
372 dt_tests += ddiff.003.ctst
373 dt_tests += ddiff.004.ctst
374 dt_tests += ddiff.005.ctst
375 dt_tests += ddiff.006.ctst
376 dt_tests += ddiff.007.ctst
377 dt_tests += ddiff.008.ctst
378 dt_tests += ddiff.009.ctst
379 dt_tests += ddiff.010.ctst
380 dt_tests += ddiff.011.ctst
381 dt_tests += ddiff.012.ctst
382 dt_tests += ddiff.013.ctst
383 dt_tests += ddiff.014.ctst
384 dt_tests += ddiff.015.ctst
385 dt_tests += ddiff.016.ctst
386 dt_tests += ddiff.017.ctst
387 dt_tests += ddiff.018.ctst
388 dt_tests += ddiff.019.ctst
389 dt_tests += ddiff.020.ctst
390 dt_tests += ddiff.021.ctst
391 dt_tests += ddiff.022.ctst
392 dt_tests += ddiff.023.ctst
393 dt_tests += ddiff.024.ctst
394 dt_tests += ddiff.025.ctst
395 dt_tests += ddiff.026.ctst
396 dt_tests += ddiff.027.ctst
397 dt_tests += ddiff.028.ctst
398 dt_tests += ddiff.029.ctst
399 dt_tests += ddiff.030.ctst
400 dt_tests += ddiff.031.ctst
401 dt_tests += ddiff.032.ctst
402 dt_tests += ddiff.033.ctst
403 dt_tests += ddiff.034.ctst
404 dt_tests += ddiff.035.ctst
405 dt_tests += ddiff.036.ctst
406 dt_tests += ddiff.037.ctst
407 dt_tests += ddiff.038.ctst
408 dt_tests += ddiff.039.ctst
409 dt_tests += ddiff.040.ctst
410 dt_tests += ddiff.041.ctst
411 dt_tests += ddiff.042.ctst
412 dt_tests += ddiff.043.ctst
413 dt_tests += ddiff.044.ctst
414 dt_tests += ddiff.045.ctst
415 dt_tests += ddiff.046.ctst
416 dt_tests += ddiff.047.ctst
417 dt_tests += ddiff.048.ctst
418 dt_tests += ddiff.049.ctst
419 dt_tests += ddiff.050.ctst
420 dt_tests += ddiff.051.ctst
421 dt_tests += ddiff.052.ctst
422 dt_tests += ddiff.053.ctst
423 dt_tests += ddiff.054.ctst
424 dt_tests += ddiff.055.ctst
425 dt_tests += ddiff.056.ctst
426 dt_tests += ddiff.057.ctst
427 dt_tests += ddiff.058.ctst
428 dt_tests += ddiff.059.ctst
429 dt_tests += ddiff.060.ctst
430 dt_tests += ddiff.061.ctst
431 dt_tests += ddiff.062.ctst
432 dt_tests += ddiff.063.ctst
433 dt_tests += ddiff.064.ctst
434 dt_tests += ddiff.065.ctst
435 dt_tests += ddiff.066.ctst
436 dt_tests += ddiff.067.ctst
437 dt_tests += ddiff.068.ctst
438 dt_tests += ddiff.069.ctst
439 dt_tests += ddiff.070.ctst
440 dt_tests += ddiff.071.ctst
441 dt_tests += ddiff.072.ctst
423442 EXTRA_DIST += some-dates-and-other-stuff.csv
424443
425 dt_tests += dgrep.001.clit
426 dt_tests += dgrep.002.clit
427 dt_tests += dgrep.003.clit
428 dt_tests += dgrep.004.clit
429 dt_tests += dgrep.005.clit
430 dt_tests += dgrep.006.clit
431 dt_tests += dgrep.007.clit
432 dt_tests += dgrep.008.clit
433 dt_tests += dgrep.009.clit
434 dt_tests += dgrep.010.clit
435 dt_tests += dgrep.011.clit
436 dt_tests += dgrep.012.clit
437 dt_tests += dgrep.013.clit
438 dt_tests += dgrep.014.clit
439 dt_tests += dgrep.015.clit
440 dt_tests += dgrep.016.clit
441 dt_tests += dgrep.017.clit
442 dt_tests += dgrep.018.clit
443 dt_tests += dgrep.019.clit
444 dt_tests += dgrep.020.clit
445 dt_tests += dgrep.021.clit
446 dt_tests += dgrep.022.clit
447 dt_tests += dgrep.023.clit
448 dt_tests += dgrep.024.clit
449 dt_tests += dgrep.025.clit
450 dt_tests += dgrep.026.clit
451 dt_tests += dgrep.027.clit
452 dt_tests += dgrep.028.clit
453 dt_tests += dgrep.029.clit
454 dt_tests += dgrep.030.clit
455 dt_tests += dgrep.031.clit
456 dt_tests += dgrep.032.clit
457 dt_tests += dgrep.033.clit
458 dt_tests += dgrep.034.clit
459 dt_tests += dgrep.035.clit
460 dt_tests += dgrep.036.clit
461 dt_tests += dgrep.037.clit
462 dt_tests += dgrep.038.clit
463 dt_tests += dgrep.039.clit
464 dt_tests += dgrep.040.clit
465 dt_tests += dgrep.041.clit
466 dt_tests += dgrep.042.clit
467 dt_tests += dgrep.043.clit
468
469 dt_tests += dround.001.clit
470 dt_tests += dround.002.clit
471 dt_tests += dround.003.clit
472 dt_tests += dround.004.clit
473 dt_tests += dround.005.clit
474 dt_tests += dround.006.clit
475 dt_tests += dround.007.clit
476 dt_tests += dround.008.clit
477 dt_tests += dround.009.clit
478 dt_tests += dround.010.clit
479 dt_tests += dround.011.clit
480 dt_tests += dround.012.clit
481 dt_tests += dround.013.clit
482 dt_tests += dround.014.clit
483 dt_tests += dround.015.clit
484 dt_tests += dround.016.clit
485 dt_tests += dround.017.clit
486 dt_tests += dround.018.clit
487 dt_tests += dround.019.clit
488 dt_tests += dround.020.clit
489 dt_tests += dround.021.clit
490 dt_tests += dround.022.clit
491 dt_tests += dround.023.clit
492 dt_tests += dround.024.clit
493 dt_tests += dround.025.clit
494 dt_tests += dround.026.clit
495 dt_tests += dround.027.clit
496 dt_tests += dround.028.clit
497 dt_tests += dround.029.clit
498 dt_tests += dround.030.clit
499 dt_tests += dround.031.clit
500 dt_tests += dround.032.clit
501 dt_tests += dround.033.clit
502 dt_tests += dround.034.clit
503 dt_tests += dround.035.clit
504 dt_tests += dround.036.clit
505
506 dt_tests += tseq.01.clit
507 dt_tests += tseq.02.clit
508 dt_tests += tseq.03.clit
509 dt_tests += tseq.04.clit
510 dt_tests += tseq.05.clit
511 dt_tests += tseq.06.clit
512 dt_tests += tseq.07.clit
513 dt_tests += tseq.08.clit
514 dt_tests += tseq.09.clit
515 dt_tests += tseq.10.clit
516 dt_tests += tseq.11.clit
517 dt_tests += tseq.12.clit
518 dt_tests += tseq.13.clit
519 dt_tests += tseq.14.clit
520 dt_tests += tseq.15.clit
521 dt_tests += tseq.16.clit
522 dt_tests += tseq.17.clit
523 dt_tests += tseq.18.clit
524 dt_tests += tseq.19.clit
525
526 dt_tests += tdiff.001.clit
527 dt_tests += tdiff.002.clit
528 dt_tests += tdiff.003.clit
529 dt_tests += tdiff.004.clit
530 dt_tests += tdiff.005.clit
531 dt_tests += tdiff.006.clit
532 dt_tests += tdiff.007.clit
533 dt_tests += tdiff.008.clit
534 dt_tests += tdiff.009.clit
535 dt_tests += tdiff.010.clit
536 dt_tests += tdiff.011.clit
537 dt_tests += tdiff.012.clit
538 dt_tests += tdiff.013.clit
539
540 dt_tests += tadd.001.clit
541 dt_tests += tadd.002.clit
542 dt_tests += tadd.003.clit
543 dt_tests += tadd.004.clit
544 dt_tests += tadd.005.clit
545 dt_tests += tadd.006.clit
546 dt_tests += tadd.007.clit
547 dt_tests += tadd.008.clit
548 dt_tests += tadd.009.clit
549 dt_tests += tadd.010.clit
550 dt_tests += tadd.011.clit
551
552 dt_tests += tgrep.001.clit
553 dt_tests += tgrep.002.clit
554 dt_tests += tgrep.003.clit
555
556 dt_tests += ttest.001.clit
557 dt_tests += ttest.002.clit
558 dt_tests += ttest.003.clit
559 dt_tests += ttest.004.clit
560 dt_tests += ttest.005.clit
561 dt_tests += ttest.006.clit
562 dt_tests += ttest.007.clit
563
564 dt_tests += tconv.001.clit
565 dt_tests += tconv.002.clit
566 dt_tests += tconv.003.clit
567 dt_tests += tconv.004.clit
568 dt_tests += tconv.005.clit
569 dt_tests += tconv.006.clit
570 dt_tests += tconv.007.clit
571 dt_tests += tconv.008.clit
572 dt_tests += tconv.009.clit
573 dt_tests += tconv.010.clit
574 dt_tests += tconv.011.clit
575 dt_tests += tconv.012.clit
576 dt_tests += tconv.013.clit
577 dt_tests += tconv.014.clit
578
579 dt_tests += tround.001.clit
580 dt_tests += tround.002.clit
581 dt_tests += tround.003.clit
582 dt_tests += tround.004.clit
583 dt_tests += tround.005.clit
584 dt_tests += tround.006.clit
585
586
587 dt_tests += dtconv.001.clit
588 dt_tests += dtconv.002.clit
589 dt_tests += dtconv.003.clit
590 dt_tests += dtconv.004.clit
591 dt_tests += dtconv.005.clit
592 dt_tests += dtconv.006.clit
593 dt_tests += dtconv.007.clit
594 dt_tests += dtconv.008.clit
595 dt_tests += dtconv.009.clit
596 dt_tests += dtconv.010.clit
597 dt_tests += dtconv.011.clit
598 dt_tests += dtconv.012.clit
599 dt_tests += dtconv.013.clit
600 dt_tests += dtconv.014.clit
601 dt_tests += dtconv.015.clit
602 dt_tests += dtconv.016.clit
603 dt_tests += dtconv.017.clit
604 dt_tests += dtconv.018.clit
605 dt_tests += dtconv.019.clit
606 dt_tests += dtconv.020.clit
607 dt_tests += dtconv.021.clit
608 dt_tests += dtconv.022.clit
609 dt_tests += dtconv.023.clit
444 dt_tests += dgrep.001.ctst
445 dt_tests += dgrep.002.ctst
446 dt_tests += dgrep.003.ctst
447 dt_tests += dgrep.004.ctst
448 dt_tests += dgrep.005.ctst
449 dt_tests += dgrep.006.ctst
450 dt_tests += dgrep.007.ctst
451 dt_tests += dgrep.008.ctst
452 dt_tests += dgrep.009.ctst
453 dt_tests += dgrep.010.ctst
454 dt_tests += dgrep.011.ctst
455 dt_tests += dgrep.012.ctst
456 dt_tests += dgrep.013.ctst
457 dt_tests += dgrep.014.ctst
458 dt_tests += dgrep.015.ctst
459 dt_tests += dgrep.016.ctst
460 dt_tests += dgrep.017.ctst
461 dt_tests += dgrep.018.ctst
462 dt_tests += dgrep.019.ctst
463 dt_tests += dgrep.020.ctst
464 dt_tests += dgrep.021.ctst
465 dt_tests += dgrep.022.ctst
466 dt_tests += dgrep.023.ctst
467 dt_tests += dgrep.024.ctst
468 dt_tests += dgrep.025.ctst
469 dt_tests += dgrep.026.ctst
470 dt_tests += dgrep.027.ctst
471 dt_tests += dgrep.028.ctst
472 dt_tests += dgrep.029.ctst
473 dt_tests += dgrep.030.ctst
474 dt_tests += dgrep.031.ctst
475 dt_tests += dgrep.032.ctst
476 dt_tests += dgrep.033.ctst
477 dt_tests += dgrep.034.ctst
478 dt_tests += dgrep.035.ctst
479 dt_tests += dgrep.036.ctst
480 dt_tests += dgrep.037.ctst
481 dt_tests += dgrep.038.ctst
482 dt_tests += dgrep.039.ctst
483 dt_tests += dgrep.040.ctst
484 dt_tests += dgrep.041.ctst
485 dt_tests += dgrep.042.ctst
486 dt_tests += dgrep.043.ctst
487
488 dt_tests += dround.001.ctst
489 dt_tests += dround.002.ctst
490 dt_tests += dround.003.ctst
491 dt_tests += dround.004.ctst
492 dt_tests += dround.005.ctst
493 dt_tests += dround.006.ctst
494 dt_tests += dround.007.ctst
495 dt_tests += dround.008.ctst
496 dt_tests += dround.009.ctst
497 dt_tests += dround.010.ctst
498 dt_tests += dround.011.ctst
499 dt_tests += dround.012.ctst
500 dt_tests += dround.013.ctst
501 dt_tests += dround.014.ctst
502 dt_tests += dround.015.ctst
503 dt_tests += dround.016.ctst
504 dt_tests += dround.017.ctst
505 dt_tests += dround.018.ctst
506 dt_tests += dround.019.ctst
507 dt_tests += dround.020.ctst
508 dt_tests += dround.021.ctst
509 dt_tests += dround.022.ctst
510 dt_tests += dround.023.ctst
511 dt_tests += dround.024.ctst
512 dt_tests += dround.025.ctst
513 dt_tests += dround.026.ctst
514 dt_tests += dround.027.ctst
515 dt_tests += dround.028.ctst
516 dt_tests += dround.029.ctst
517 dt_tests += dround.030.ctst
518 dt_tests += dround.031.ctst
519 dt_tests += dround.032.ctst
520 dt_tests += dround.033.ctst
521 dt_tests += dround.034.ctst
522 dt_tests += dround.035.ctst
523 dt_tests += dround.036.ctst
524 dt_tests += dround.037.ctst
525
526 dt_tests += tseq.01.ctst
527 dt_tests += tseq.02.ctst
528 dt_tests += tseq.03.ctst
529 dt_tests += tseq.04.ctst
530 dt_tests += tseq.05.ctst
531 dt_tests += tseq.06.ctst
532 dt_tests += tseq.07.ctst
533 dt_tests += tseq.08.ctst
534 dt_tests += tseq.09.ctst
535 dt_tests += tseq.10.ctst
536 dt_tests += tseq.11.ctst
537 dt_tests += tseq.12.ctst
538 dt_tests += tseq.13.ctst
539 dt_tests += tseq.14.ctst
540 dt_tests += tseq.15.ctst
541 dt_tests += tseq.16.ctst
542 dt_tests += tseq.17.ctst
543 dt_tests += tseq.18.ctst
544 dt_tests += tseq.19.ctst
545
546 dt_tests += tdiff.001.ctst
547 dt_tests += tdiff.002.ctst
548 dt_tests += tdiff.003.ctst
549 dt_tests += tdiff.004.ctst
550 dt_tests += tdiff.005.ctst
551 dt_tests += tdiff.006.ctst
552 dt_tests += tdiff.007.ctst
553 dt_tests += tdiff.008.ctst
554 dt_tests += tdiff.009.ctst
555 dt_tests += tdiff.010.ctst
556 dt_tests += tdiff.011.ctst
557 dt_tests += tdiff.012.ctst
558 dt_tests += tdiff.013.ctst
559 dt_tests += tdiff.014.ctst
560
561 dt_tests += tadd.001.ctst
562 dt_tests += tadd.002.ctst
563 dt_tests += tadd.003.ctst
564 dt_tests += tadd.004.ctst
565 dt_tests += tadd.005.ctst
566 dt_tests += tadd.006.ctst
567 dt_tests += tadd.007.ctst
568 dt_tests += tadd.008.ctst
569 dt_tests += tadd.009.ctst
570 dt_tests += tadd.010.ctst
571 dt_tests += tadd.011.ctst
572
573 dt_tests += tgrep.001.ctst
574 dt_tests += tgrep.002.ctst
575 dt_tests += tgrep.003.ctst
576
577 dt_tests += ttest.001.ctst
578 dt_tests += ttest.002.ctst
579 dt_tests += ttest.003.ctst
580 dt_tests += ttest.004.ctst
581 dt_tests += ttest.005.ctst
582 dt_tests += ttest.006.ctst
583 dt_tests += ttest.007.ctst
584
585 dt_tests += tconv.001.ctst
586 dt_tests += tconv.002.ctst
587 dt_tests += tconv.003.ctst
588 dt_tests += tconv.004.ctst
589 dt_tests += tconv.005.ctst
590 dt_tests += tconv.006.ctst
591 dt_tests += tconv.007.ctst
592 dt_tests += tconv.008.ctst
593 dt_tests += tconv.009.ctst
594 dt_tests += tconv.010.ctst
595 dt_tests += tconv.011.ctst
596 dt_tests += tconv.012.ctst
597 dt_tests += tconv.013.ctst
598 dt_tests += tconv.014.ctst
599
600 dt_tests += tround.001.ctst
601 dt_tests += tround.002.ctst
602 dt_tests += tround.003.ctst
603 dt_tests += tround.004.ctst
604 dt_tests += tround.005.ctst
605 dt_tests += tround.006.ctst
606
607
608 dt_tests += dtconv.001.ctst
609 dt_tests += dtconv.002.ctst
610 dt_tests += dtconv.003.ctst
611 dt_tests += dtconv.004.ctst
612 dt_tests += dtconv.005.ctst
613 dt_tests += dtconv.006.ctst
614 dt_tests += dtconv.007.ctst
615 dt_tests += dtconv.008.ctst
616 dt_tests += dtconv.009.ctst
617 dt_tests += dtconv.010.ctst
618 dt_tests += dtconv.011.ctst
619 dt_tests += dtconv.012.ctst
620 dt_tests += dtconv.013.ctst
621 dt_tests += dtconv.014.ctst
622 dt_tests += dtconv.015.ctst
623 dt_tests += dtconv.016.ctst
624 dt_tests += dtconv.017.ctst
625 dt_tests += dtconv.018.ctst
626 dt_tests += dtconv.019.ctst
627 dt_tests += dtconv.020.ctst
628 dt_tests += dtconv.021.ctst
629 dt_tests += dtconv.022.ctst
630 dt_tests += dtconv.023.ctst
610631 if ZONEINFO_UTC_RIGHT
611 dt_tests += dtconv.024.clit
612 dt_tests += dtconv.025.clit
613 dt_tests += dtconv.026.clit
614 dt_tests += dtconv.027.clit
615 dt_tests += dtconv.028.clit
616 dt_tests += dtconv.029.clit
617 dt_tests += dtconv.030.clit
618 dt_tests += dtconv.031.clit
619 dt_tests += dtconv.032.clit
620 dt_tests += dtconv.033.clit
632 dt_tests += dtconv.024.ctst
633 dt_tests += dtconv.025.ctst
634 dt_tests += dtconv.026.ctst
635 dt_tests += dtconv.027.ctst
636 dt_tests += dtconv.028.ctst
637 dt_tests += dtconv.029.ctst
638 dt_tests += dtconv.030.ctst
639 dt_tests += dtconv.031.ctst
640 dt_tests += dtconv.032.ctst
641 dt_tests += dtconv.033.ctst
621642 endif ZONEINFO_UTC_RIGHT
622 dt_tests += dtconv.034.clit
623 dt_tests += dtconv.035.clit
624 dt_tests += dtconv.036.clit
625 dt_tests += dtconv.037.clit
626 dt_tests += dtconv.038.clit
627 dt_tests += dtconv.039.clit
628 dt_tests += dtconv.040.clit
629 dt_tests += dtconv.041.clit
630 dt_tests += dtconv.042.clit
631 dt_tests += dtconv.043.clit
632 dt_tests += dtconv.044.clit
633 dt_tests += dtconv.045.clit
634 dt_tests += dtconv.046.clit
635 dt_tests += dtconv.047.clit
636 dt_tests += dtconv.048.clit
637 dt_tests += dtconv.049.clit
638 dt_tests += dtconv.050.clit
639 dt_tests += dtconv.051.clit
640 dt_tests += dtconv.052.clit
641 dt_tests += dtconv.053.clit
642 dt_tests += dtconv.054.clit
643 dt_tests += dtconv.055.clit
644 dt_tests += dtconv.056.clit
645 dt_tests += dtconv.057.clit
646 dt_tests += dtconv.058.clit
647 dt_tests += dtconv.059.clit
648 dt_tests += dtconv.060.clit
649 dt_tests += dtconv.061.clit
650 dt_tests += dtconv.062.clit
651 dt_tests += dtconv.063.clit
652 dt_tests += dtconv.064.clit
653 dt_tests += dtconv.065.clit
654 dt_tests += dtconv.066.clit
655 dt_tests += dtconv.067.clit
656 dt_tests += dtconv.068.clit
657 dt_tests += dtconv.069.clit
658 dt_tests += dtconv.070.clit
659 dt_tests += dtconv.071.clit
660 dt_tests += dtconv.072.clit
661
662 dt_tests += convt.ymcw-ymd.clit
663 dt_tests += convt.ymcw-ywd.clit
664 dt_tests += convt.ymcw-yd.clit
665 dt_tests += convt.ymd-ymcw.clit
666 dt_tests += convt.ymd-ywd.clit
667 dt_tests += convt.ymd-yd.clit
668 dt_tests += convt.ywd-ymcw.clit
669 dt_tests += convt.ywd-ymd.clit
670 dt_tests += convt.ywd-yd.clit
671 dt_tests += convt.yd-ymcw.clit
672 dt_tests += convt.yd-ymd.clit
673 dt_tests += convt.yd-ywd.clit
674
675 dt_tests += add.ymcw-1d.clit
676 dt_tests += add.ymd-1d.clit
677 dt_tests += add.ywd-1d.clit
678 dt_tests += add.yd-1d.clit
679 dt_tests += add.ymcw-1w.clit
680 dt_tests += add.ymd-1w.clit
681 dt_tests += add.ywd-1w.clit
682 dt_tests += add.yd-1w.clit
683 dt_tests += add.ymcw-1y.clit
684 dt_tests += add.ymd-1y.clit
685 dt_tests += add.ywd-1y.clit
686 dt_tests += add.yd-1y.clit
687
688 dt_tests += dtseq.01.clit
689 dt_tests += dtseq.02.clit
690 dt_tests += dtseq.03.clit
691 dt_tests += dtseq.04.clit
692 dt_tests += dtseq.05.clit
693 dt_tests += dtseq.06.clit
694 dt_tests += dtseq.07.clit
695 dt_tests += dtseq.08.clit
696 dt_tests += dtseq.09.clit
697 dt_tests += dtseq.10.clit
698 dt_tests += dtseq.11.clit
699 dt_tests += dtseq.12.clit
700
701 dt_tests += dtadd.001.clit
702 dt_tests += dtadd.002.clit
703 dt_tests += dtadd.003.clit
704 dt_tests += dtadd.004.clit
705 dt_tests += dtadd.005.clit
706 dt_tests += dtadd.006.clit
707 dt_tests += dtadd.007.clit
708 dt_tests += dtadd.008.clit
709 dt_tests += dtadd.009.clit
710 dt_tests += dtadd.010.clit
711 dt_tests += dtadd.011.clit
712 dt_tests += dtadd.012.clit
713 dt_tests += dtadd.013.clit
714 dt_tests += dtadd.014.clit
715 dt_tests += dtadd.015.clit
716 dt_tests += dtadd.016.clit
717 dt_tests += dtadd.017.clit
718 dt_tests += dtadd.018.clit
719 dt_tests += dtadd.019.clit
720 dt_tests += dtadd.020.clit
721 dt_tests += dtadd.021.clit
722 dt_tests += dtadd.022.clit
723 dt_tests += dtadd.023.clit
724 dt_tests += dtadd.024.clit
725 dt_tests += dtadd.025.clit
726 dt_tests += dtadd.026.clit
727 dt_tests += dtadd.027.clit
728 dt_tests += dtadd.028.clit
729 dt_tests += dtadd.029.clit
643 dt_tests += dtconv.034.ctst
644 dt_tests += dtconv.035.ctst
645 dt_tests += dtconv.036.ctst
646 dt_tests += dtconv.037.ctst
647 dt_tests += dtconv.038.ctst
648 dt_tests += dtconv.039.ctst
649 dt_tests += dtconv.040.ctst
650 dt_tests += dtconv.041.ctst
651 dt_tests += dtconv.042.ctst
652 dt_tests += dtconv.043.ctst
653 dt_tests += dtconv.044.ctst
654 dt_tests += dtconv.045.ctst
655 dt_tests += dtconv.046.ctst
656 dt_tests += dtconv.047.ctst
657 dt_tests += dtconv.048.ctst
658 dt_tests += dtconv.049.ctst
659 dt_tests += dtconv.050.ctst
660 dt_tests += dtconv.051.ctst
661 dt_tests += dtconv.052.ctst
662 dt_tests += dtconv.053.ctst
663 dt_tests += dtconv.054.ctst
664 dt_tests += dtconv.055.ctst
665 dt_tests += dtconv.056.ctst
666 dt_tests += dtconv.057.ctst
667 dt_tests += dtconv.058.ctst
668 dt_tests += dtconv.059.ctst
669 dt_tests += dtconv.060.ctst
670 dt_tests += dtconv.061.ctst
671 dt_tests += dtconv.062.ctst
672 dt_tests += dtconv.063.ctst
673 dt_tests += dtconv.064.ctst
674 dt_tests += dtconv.065.ctst
675 dt_tests += dtconv.066.ctst
676 dt_tests += dtconv.067.ctst
677 dt_tests += dtconv.068.ctst
678 dt_tests += dtconv.069.ctst
679 dt_tests += dtconv.070.ctst
680 dt_tests += dtconv.071.ctst
681 dt_tests += dtconv.072.ctst
682
683 dt_tests += convt.ymcw-ymd.ctst
684 dt_tests += convt.ymcw-ywd.ctst
685 dt_tests += convt.ymcw-yd.ctst
686 dt_tests += convt.ymd-ymcw.ctst
687 dt_tests += convt.ymd-ywd.ctst
688 dt_tests += convt.ymd-yd.ctst
689 dt_tests += convt.ywd-ymcw.ctst
690 dt_tests += convt.ywd-ymd.ctst
691 dt_tests += convt.ywd-yd.ctst
692 dt_tests += convt.yd-ymcw.ctst
693 dt_tests += convt.yd-ymd.ctst
694 dt_tests += convt.yd-ywd.ctst
695
696 dt_tests += add.ymcw-1d.ctst
697 dt_tests += add.ymd-1d.ctst
698 dt_tests += add.ywd-1d.ctst
699 dt_tests += add.yd-1d.ctst
700 dt_tests += add.ymcw-1w.ctst
701 dt_tests += add.ymd-1w.ctst
702 dt_tests += add.ywd-1w.ctst
703 dt_tests += add.yd-1w.ctst
704 dt_tests += add.ymcw-1y.ctst
705 dt_tests += add.ymd-1y.ctst
706 dt_tests += add.ywd-1y.ctst
707 dt_tests += add.yd-1y.ctst
708
709 dt_tests += dtseq.01.ctst
710 dt_tests += dtseq.02.ctst
711 dt_tests += dtseq.03.ctst
712 dt_tests += dtseq.04.ctst
713 dt_tests += dtseq.05.ctst
714 dt_tests += dtseq.06.ctst
715 dt_tests += dtseq.07.ctst
716 dt_tests += dtseq.08.ctst
717 dt_tests += dtseq.09.ctst
718 dt_tests += dtseq.10.ctst
719 dt_tests += dtseq.11.ctst
720 dt_tests += dtseq.12.ctst
721
722 dt_tests += dtadd.001.ctst
723 dt_tests += dtadd.002.ctst
724 dt_tests += dtadd.003.ctst
725 dt_tests += dtadd.004.ctst
726 dt_tests += dtadd.005.ctst
727 dt_tests += dtadd.006.ctst
728 dt_tests += dtadd.007.ctst
729 dt_tests += dtadd.008.ctst
730 dt_tests += dtadd.009.ctst
731 dt_tests += dtadd.010.ctst
732 dt_tests += dtadd.011.ctst
733 dt_tests += dtadd.012.ctst
734 dt_tests += dtadd.013.ctst
735 dt_tests += dtadd.014.ctst
736 dt_tests += dtadd.015.ctst
737 dt_tests += dtadd.016.ctst
738 dt_tests += dtadd.017.ctst
739 dt_tests += dtadd.018.ctst
740 dt_tests += dtadd.019.ctst
741 dt_tests += dtadd.020.ctst
742 dt_tests += dtadd.021.ctst
743 dt_tests += dtadd.022.ctst
744 dt_tests += dtadd.023.ctst
745 dt_tests += dtadd.024.ctst
746 dt_tests += dtadd.025.ctst
747 dt_tests += dtadd.026.ctst
748 dt_tests += dtadd.027.ctst
749 dt_tests += dtadd.028.ctst
750 dt_tests += dtadd.029.ctst
730751 if WITH_LEAP_SECONDS
731 dt_tests += dtadd.030.clit
732 dt_tests += dtadd.031.clit
752 dt_tests += dtadd.030.ctst
753 dt_tests += dtadd.031.ctst
733754 endif ## WITH_LEAP_SECONDS
734 dt_tests += dtadd.032.clit
735 dt_tests += dtadd.033.clit
755 dt_tests += dtadd.032.ctst
756 dt_tests += dtadd.033.ctst
736757 if WITH_LEAP_SECONDS
737 dt_tests += dtadd.034.clit
738 dt_tests += dtadd.035.clit
758 dt_tests += dtadd.034.ctst
759 dt_tests += dtadd.035.ctst
739760 endif ## WITH_LEAP_SECONDS
740 dt_tests += dtadd.036.clit
741 dt_tests += dtadd.037.clit
742 dt_tests += dtadd.038.clit
743 dt_tests += dtadd.039.clit
744 dt_tests += dtadd.040.clit
761 dt_tests += dtadd.036.ctst
762 dt_tests += dtadd.037.ctst
763 dt_tests += dtadd.038.ctst
764 dt_tests += dtadd.039.ctst
765 dt_tests += dtadd.040.ctst
745766 ## multi-sed
746 dt_tests += dtadd.041.clit
747 dt_tests += dtadd.042.clit
748 dt_tests += dtadd.043.clit
749 dt_tests += dtadd.044.clit
750 dt_tests += dtadd.045.clit
751 dt_tests += dtadd.046.clit
752 dt_tests += dtadd.047.clit
753 dt_tests += dtadd.048.clit
754 dt_tests += dtadd.049.clit
755 dt_tests += dtadd.050.clit
756 dt_tests += dtadd.051.clit
757 dt_tests += dtadd.052.clit
758 dt_tests += dtadd.053.clit
759 dt_tests += dtadd.054.clit
760 dt_tests += dtadd.055.clit
761
762 dt_tests += dtgrep.001.clit
763 dt_tests += dtgrep.002.clit
764 dt_tests += dtgrep.003.clit
765 dt_tests += dtgrep.004.clit
766 dt_tests += dtgrep.005.clit
767 dt_tests += dtgrep.006.clit
768 dt_tests += dtgrep.007.clit
769 dt_tests += dtgrep.008.clit
770 dt_tests += dtgrep.009.clit
771 dt_tests += dtgrep.010.clit
772 dt_tests += dtgrep.011.clit
773 dt_tests += dtgrep.012.clit
774 dt_tests += dtgrep.013.clit
775 dt_tests += dtgrep.014.clit
776
777 dt_tests += dttest.001.clit
778 dt_tests += dttest.002.clit
779 dt_tests += dttest.003.clit
780 dt_tests += dttest.004.clit
781 dt_tests += dttest.005.clit
782 dt_tests += dttest.006.clit
783 dt_tests += dttest.007.clit
784 dt_tests += dttest.008.clit
785 dt_tests += dttest.009.clit
786 dt_tests += dttest.010.clit
787
788 dt_tests += dtdiff.001.clit
789 dt_tests += dtdiff.002.clit
790 dt_tests += dtdiff.003.clit
791 dt_tests += dtdiff.004.clit
792 dt_tests += dtdiff.005.clit
793 dt_tests += dtdiff.006.clit
794 dt_tests += dtdiff.007.clit
795 dt_tests += dtdiff.008.clit
796 dt_tests += dtdiff.009.clit
797 dt_tests += dtdiff.010.clit
798 dt_tests += dtdiff.011.clit
799 dt_tests += dtdiff.012.clit
800 dt_tests += dtdiff.013.clit
801 dt_tests += dtdiff.014.clit
802 dt_tests += dtdiff.015.clit
803 dt_tests += dtdiff.016.clit
804 dt_tests += dtdiff.017.clit
805 dt_tests += dtdiff.018.clit
767 dt_tests += dtadd.041.ctst
768 dt_tests += dtadd.042.ctst
769 dt_tests += dtadd.043.ctst
770 dt_tests += dtadd.044.ctst
771 dt_tests += dtadd.045.ctst
772 dt_tests += dtadd.046.ctst
773 dt_tests += dtadd.047.ctst
774 dt_tests += dtadd.048.ctst
775 dt_tests += dtadd.049.ctst
776 dt_tests += dtadd.050.ctst
777 dt_tests += dtadd.051.ctst
778 dt_tests += dtadd.052.ctst
779 dt_tests += dtadd.053.ctst
780 dt_tests += dtadd.054.ctst
781 dt_tests += dtadd.055.ctst
782
783 dt_tests += dtgrep.001.ctst
784 dt_tests += dtgrep.002.ctst
785 dt_tests += dtgrep.003.ctst
786 dt_tests += dtgrep.004.ctst
787 dt_tests += dtgrep.005.ctst
788 dt_tests += dtgrep.006.ctst
789 dt_tests += dtgrep.007.ctst
790 dt_tests += dtgrep.008.ctst
791 dt_tests += dtgrep.009.ctst
792 dt_tests += dtgrep.010.ctst
793 dt_tests += dtgrep.011.ctst
794 dt_tests += dtgrep.012.ctst
795 dt_tests += dtgrep.013.ctst
796 dt_tests += dtgrep.014.ctst
797
798 dt_tests += dttest.001.ctst
799 dt_tests += dttest.002.ctst
800 dt_tests += dttest.003.ctst
801 dt_tests += dttest.004.ctst
802 dt_tests += dttest.005.ctst
803 dt_tests += dttest.006.ctst
804 dt_tests += dttest.007.ctst
805 dt_tests += dttest.008.ctst
806 dt_tests += dttest.009.ctst
807 dt_tests += dttest.010.ctst
808
809 dt_tests += dtdiff.001.ctst
810 dt_tests += dtdiff.002.ctst
811 dt_tests += dtdiff.003.ctst
812 dt_tests += dtdiff.004.ctst
813 dt_tests += dtdiff.005.ctst
814 dt_tests += dtdiff.006.ctst
815 dt_tests += dtdiff.007.ctst
816 dt_tests += dtdiff.008.ctst
817 dt_tests += dtdiff.009.ctst
818 dt_tests += dtdiff.010.ctst
819 dt_tests += dtdiff.011.ctst
820 dt_tests += dtdiff.012.ctst
821 dt_tests += dtdiff.013.ctst
822 dt_tests += dtdiff.014.ctst
823 dt_tests += dtdiff.015.ctst
824 dt_tests += dtdiff.016.ctst
825 dt_tests += dtdiff.017.ctst
826 dt_tests += dtdiff.018.ctst
806827 if WITH_LEAP_SECONDS
807 dt_tests += dtdiff.019.clit
808 dt_tests += dtdiff.020.clit
809 dt_tests += dtdiff.021.clit
810 dt_tests += dtdiff.022.clit
828 dt_tests += dtdiff.019.ctst
829 dt_tests += dtdiff.020.ctst
830 dt_tests += dtdiff.021.ctst
831 dt_tests += dtdiff.022.ctst
811832 endif ## WITH_LEAP_SECONDS
812 dt_tests += dtdiff.023.clit
813 dt_tests += dtdiff.024.clit
814 dt_tests += dtdiff.025.clit
815 dt_tests += dtdiff.026.clit
816 dt_tests += dtdiff.027.clit
817 dt_tests += dtdiff.028.clit
818 dt_tests += dtdiff.029.clit
819 dt_tests += dtdiff.030.clit
820 dt_tests += dtdiff.031.clit
821 dt_tests += dtdiff.032.clit
822 dt_tests += dtdiff.033.clit
823 dt_tests += dtdiff.034.clit
824 dt_tests += dtdiff.035.clit
825 dt_tests += dtdiff.036.clit
826 dt_tests += dtdiff.037.clit
827 dt_tests += dtdiff.038.clit
828 dt_tests += dtdiff.039.clit
829 dt_tests += dtdiff.040.clit
830 dt_tests += dtdiff.041.clit
831 dt_tests += dtdiff.042.clit
832 dt_tests += dtdiff.043.clit
833 dt_tests += dtdiff.044.clit
834 dt_tests += dtdiff.045.clit
835 dt_tests += dtdiff.046.clit
836 dt_tests += dtdiff.047.clit
837
838 dt_tests += dtround.001.clit
839 dt_tests += dtround.002.clit
840 dt_tests += dtround.003.clit
841 dt_tests += dtround.004.clit
842 dt_tests += dtround.005.clit
843 dt_tests += dtround.006.clit
844 dt_tests += dtround.007.clit
845 dt_tests += dtround.008.clit
846 dt_tests += dtround.009.clit
847 dt_tests += dtround.010.clit
848 dt_tests += dtround.011.clit
849 dt_tests += dtround.012.clit
850 dt_tests += dtround.013.clit
851 dt_tests += dtround.014.clit
852 dt_tests += dtround.015.clit
853 dt_tests += dtround.016.clit
854
855 dt_tests += dzone.001.clit
856 dt_tests += dzone.002.clit
857 dt_tests += dzone.003.clit
858 dt_tests += dzone.004.clit
859 dt_tests += dzone.005.clit
860 dt_tests += dzone.006.clit
861 dt_tests += dzone.007.clit
862 dt_tests += dzone.008.clit
863 dt_tests += dzone.009.clit
864 dt_tests += dzone.010.clit
865 dt_tests += dzone.011.clit
866 dt_tests += dzone.012.clit
867 dt_tests += dzone.013.clit
868 dt_tests += dzone.014.clit
869
870 dt_tests += dsort.001.clit
871 dt_tests += dsort.002.clit
872 dt_tests += dsort.003.clit
873 dt_tests += dsort.004.clit
874 dt_tests += dsort.005.clit
875 dt_tests += dsort.006.clit
876 dt_tests += dsort.007.clit
833 dt_tests += dtdiff.023.ctst
834 dt_tests += dtdiff.024.ctst
835 dt_tests += dtdiff.025.ctst
836 dt_tests += dtdiff.026.ctst
837 dt_tests += dtdiff.027.ctst
838 dt_tests += dtdiff.028.ctst
839 dt_tests += dtdiff.029.ctst
840 dt_tests += dtdiff.030.ctst
841 dt_tests += dtdiff.031.ctst
842 dt_tests += dtdiff.032.ctst
843 dt_tests += dtdiff.033.ctst
844 dt_tests += dtdiff.034.ctst
845 dt_tests += dtdiff.035.ctst
846 dt_tests += dtdiff.036.ctst
847 dt_tests += dtdiff.037.ctst
848 dt_tests += dtdiff.038.ctst
849 dt_tests += dtdiff.039.ctst
850 dt_tests += dtdiff.040.ctst
851 dt_tests += dtdiff.041.ctst
852 dt_tests += dtdiff.042.ctst
853 dt_tests += dtdiff.043.ctst
854 dt_tests += dtdiff.044.ctst
855 dt_tests += dtdiff.045.ctst
856 dt_tests += dtdiff.046.ctst
857 dt_tests += dtdiff.047.ctst
858 dt_tests += dtdiff.048.ctst
859 dt_tests += dtdiff.049.ctst
860 dt_tests += dtdiff.050.ctst
861 dt_tests += dtdiff.051.ctst
862
863 dt_tests += dtround.001.ctst
864 dt_tests += dtround.002.ctst
865 dt_tests += dtround.003.ctst
866 dt_tests += dtround.004.ctst
867 dt_tests += dtround.005.ctst
868 dt_tests += dtround.006.ctst
869 dt_tests += dtround.007.ctst
870 dt_tests += dtround.008.ctst
871 dt_tests += dtround.009.ctst
872 dt_tests += dtround.010.ctst
873 dt_tests += dtround.011.ctst
874 dt_tests += dtround.012.ctst
875 dt_tests += dtround.013.ctst
876 dt_tests += dtround.014.ctst
877 dt_tests += dtround.015.ctst
878 dt_tests += dtround.016.ctst
879 dt_tests += dtround.017.ctst
880 dt_tests += dtround.018.ctst
881 dt_tests += dtround.019.ctst
882 dt_tests += dtround.020.ctst
883 dt_tests += dtround.021.ctst
884 dt_tests += dtround.022.ctst
885
886 dt_tests += dzone.001.ctst
887 dt_tests += dzone.002.ctst
888 dt_tests += dzone.003.ctst
889 dt_tests += dzone.004.ctst
890 dt_tests += dzone.005.ctst
891 dt_tests += dzone.006.ctst
892 dt_tests += dzone.007.ctst
893 dt_tests += dzone.008.ctst
894 dt_tests += dzone.009.ctst
895 dt_tests += dzone.010.ctst
896 dt_tests += dzone.011.ctst
897 dt_tests += dzone.012.ctst
898 dt_tests += dzone.013.ctst
899 dt_tests += dzone.014.ctst
900
901 dt_tests += dsort.001.ctst
902 dt_tests += dsort.002.ctst
903 dt_tests += dsort.003.ctst
904 dt_tests += dsort.004.ctst
905 dt_tests += dsort.005.ctst
906 dt_tests += dsort.006.ctst
907 dt_tests += dsort.007.ctst
877908 EXTRA_DIST += caev_01.txt
878909 EXTRA_DIST += caev_02.txt
879910
880 dt_tests += strptime.001.clit
881 dt_tests += strptime.002.clit
882 dt_tests += strptime.003.clit
911 dt_tests += strptime.001.ctst
912 dt_tests += strptime.002.ctst
913 dt_tests += strptime.003.ctst
883914
884915 ## testing the prchunker
885 dt_tests += prchunk.001.clit
886 dt_tests += prchunk.002.clit
887 dt_tests += prchunk.003.clit
888 dt_tests += prchunk.004.clit
889 dt_tests += prchunk.005.clit
890 dt_tests += prchunk.006.clit
916 dt_tests += prchunk.001.ctst
917 dt_tests += prchunk.002.ctst
918 dt_tests += prchunk.003.ctst
919 dt_tests += prchunk.004.ctst
920 dt_tests += prchunk.005.ctst
921 dt_tests += prchunk.006.ctst
891922
892923 ## testing tzmaps, regardless if the official ones are here or not
893924 EXTRA_DIST += dummy.tzmap
894925 built_nodist_sources += dummy.tzmcc
895926 TESTS_ENVIRONMENT += TZMAP_DIR=$(builddir)
896927 TESTS_ENVIRONMENT += LOCALE_FILE=$(top_srcdir)/data/locale
897 dt_tests += tzmap.001.clit
898 dt_tests += tzmap.002.clit
899 dt_tests += tzmap.003.clit
900 dt_tests += tzmap.004.clit
928 dt_tests += tzmap.001.ctst
929 dt_tests += tzmap.002.ctst
930 dt_tests += tzmap.003.ctst
931 dt_tests += tzmap.004.ctst
901932
902933 ## make sure our the maps we ship are clean
903 dt_tests += tzmap_check_01.clit
904 dt_tests += tzmap_check_02.clit
934 dt_tests += tzmap_check_01.ctst
935 dt_tests += tzmap_check_02.ctst
905936 TESTS_ENVIRONMENT += TZMAP=$(top_builddir)/lib/tzmap
906937
907938 ## military midnight
908 dt_tests += mil-midnight.001.clit
909 dt_tests += mil-midnight.002.clit
910 dt_tests += mil-midnight.003.clit
911 dt_tests += mil-midnight.004.clit
912 dt_tests += mil-midnight.005.clit
913 dt_tests += mil-midnight.006.clit
914 dt_tests += mil-midnight.007.clit
915 dt_tests += mil-midnight.008.clit
916 dt_tests += mil-midnight.009.clit
917 dt_tests += mil-midnight.010.clit
939 dt_tests += mil-midnight.001.ctst
940 dt_tests += mil-midnight.002.ctst
941 dt_tests += mil-midnight.003.ctst
942 dt_tests += mil-midnight.004.ctst
943 dt_tests += mil-midnight.005.ctst
944 dt_tests += mil-midnight.006.ctst
945 dt_tests += mil-midnight.007.ctst
946 dt_tests += mil-midnight.008.ctst
947 dt_tests += mil-midnight.009.ctst
948 dt_tests += mil-midnight.010.ctst
918949
919950 ## we should check if the zones in these tests actually exist
920951 ## also failing tests here should be soft-fails because that could
921952 ## easily be an outdated zoneinfo file
922 dt_tests += dtz.001.clit
923 dt_tests += dtz.002.clit
953 dt_tests += dtz.001.ctst
954 dt_tests += dtz.002.ctst
924955
925956 check_PROGRAMS += struct-1
926957 check_PROGRAMS += struct-2
9711002 dtcore_add_LDADD = $(DT_LIBS)
9721003 time_core_add_LDADD = $(DT_LIBS)
9731004
974 dt_tests += strtoi.001.clit
975 dt_tests += itostr.001.clit
976 dt_tests += itostr.002.clit
977 dt_tests += itostr.003.clit
978 dt_tests += itostr.004.clit
1005 dt_tests += strtoi.001.ctst
1006 dt_tests += itostr.001.ctst
1007 dt_tests += itostr.002.ctst
1008 dt_tests += itostr.003.ctst
1009 dt_tests += itostr.004.ctst
9791010
9801011 ## batch checks
9811012 batch_tests += dseq-cnt.1.sh
+0
-9
test/add.yd-1d.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "add.yd-1d.ref"
3 $ dadd +1d < "add.yd-1d.ref" | dadd -1d
4 < "add.yd-1d.ref"
5 $ rm -- "add.yd-1d.ref"
6 $
7
8 ## add.yd-1d.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "add.yd-1d.ref"
3 $ dadd +1d < "add.yd-1d.ref" | dadd -1d
4 < "add.yd-1d.ref"
5 $ rm -- "add.yd-1d.ref"
6 $
7
8 ## add.yd-1d.clit
+0
-9
test/add.yd-1w.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "add.yd-1w.ref"
3 $ dadd +1w < "add.yd-1w.ref" | dadd -1w
4 < "add.yd-1w.ref"
5 $ rm -- "add.yd-1w.ref"
6 $
7
8 ## add.yd-1w.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "add.yd-1w.ref"
3 $ dadd +1w < "add.yd-1w.ref" | dadd -1w
4 < "add.yd-1w.ref"
5 $ rm -- "add.yd-1w.ref"
6 $
7
8 ## add.yd-1w.clit
+0
-9
test/add.yd-1y.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2071-12-31" -f "yd" > "add.yd-28y.ref"
3 $ dadd +28y < "add.yd-28y.ref" | dadd -28y
4 < "add.yd-28y.ref"
5 $ rm -- "add.yd-28y.ref"
6 $
7
8 ## add.yd-28y.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2071-12-31" -f "yd" > "add.yd-28y.ref"
3 $ dadd +28y < "add.yd-28y.ref" | dadd -28y
4 < "add.yd-28y.ref"
5 $ rm -- "add.yd-28y.ref"
6 $
7
8 ## add.yd-28y.clit
+0
-9
test/add.ymcw-1d.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "add.ymcw-1d.ref"
3 $ dadd +1d < "add.ymcw-1d.ref" | dadd -1d
4 < "add.ymcw-1d.ref"
5 $ rm -- "add.ymcw-1d.ref"
6 $
7
8 ## add.ymcw-1d.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "add.ymcw-1d.ref"
3 $ dadd +1d < "add.ymcw-1d.ref" | dadd -1d
4 < "add.ymcw-1d.ref"
5 $ rm -- "add.ymcw-1d.ref"
6 $
7
8 ## add.ymcw-1d.clit
+0
-9
test/add.ymcw-1w.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "add.ymcw-1w.ref"
3 $ dadd +1w < "add.ymcw-1w.ref" | dadd -1w
4 < "add.ymcw-1w.ref"
5 $ rm -- "add.ymcw-1w.ref"
6 $
7
8 ## add.ymcw-1w.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "add.ymcw-1w.ref"
3 $ dadd +1w < "add.ymcw-1w.ref" | dadd -1w
4 < "add.ymcw-1w.ref"
5 $ rm -- "add.ymcw-1w.ref"
6 $
7
8 ## add.ymcw-1w.clit
+0
-9
test/add.ymcw-1y.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2071-12-31" -f "ymcw" > "add.ymcw-28y.ref"
3 $ dadd +28y < "add.ymcw-28y.ref" | dadd -28y
4 < "add.ymcw-28y.ref"
5 $ rm -- "add.ymcw-28y.ref"
6 $
7
8 ## add.ymcw-28y.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2071-12-31" -f "ymcw" > "add.ymcw-28y.ref"
3 $ dadd +28y < "add.ymcw-28y.ref" | dadd -28y
4 < "add.ymcw-28y.ref"
5 $ rm -- "add.ymcw-28y.ref"
6 $
7
8 ## add.ymcw-28y.clit
+0
-9
test/add.ymd-1d.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "add.ymd-1d.ref"
3 $ dadd +1d < "add.ymd-1d.ref" | dadd -1d
4 < "add.ymd-1d.ref"
5 $ rm -- "add.ymd-1d.ref"
6 $
7
8 ## add.ymd-1d.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "add.ymd-1d.ref"
3 $ dadd +1d < "add.ymd-1d.ref" | dadd -1d
4 < "add.ymd-1d.ref"
5 $ rm -- "add.ymd-1d.ref"
6 $
7
8 ## add.ymd-1d.clit
+0
-9
test/add.ymd-1w.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "add.ymd-1w.ref"
3 $ dadd +1w < "add.ymd-1w.ref" | dadd -1w
4 < "add.ymd-1w.ref"
5 $ rm -- "add.ymd-1w.ref"
6 $
7
8 ## add.ymd-1w.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "add.ymd-1w.ref"
3 $ dadd +1w < "add.ymd-1w.ref" | dadd -1w
4 < "add.ymd-1w.ref"
5 $ rm -- "add.ymd-1w.ref"
6 $
7
8 ## add.ymd-1w.clit
+0
-9
test/add.ymd-1y.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2071-12-31" -f "ymd" > "add.ymd-28y.ref"
3 $ dadd +28y < "add.ymd-28y.ref" | dadd -28y
4 < "add.ymd-28y.ref"
5 $ rm -- "add.ymd-28y.ref"
6 $
7
8 ## add.ymd-28y.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2071-12-31" -f "ymd" > "add.ymd-28y.ref"
3 $ dadd +28y < "add.ymd-28y.ref" | dadd -28y
4 < "add.ymd-28y.ref"
5 $ rm -- "add.ymd-28y.ref"
6 $
7
8 ## add.ymd-28y.clit
+0
-9
test/add.ywd-1d.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "add.ywd-1d.ref"
3 $ dadd +1d < "add.ywd-1d.ref" | dadd -1d
4 < "add.ywd-1d.ref"
5 $ rm -- "add.ywd-1d.ref"
6 $
7
8 ## add.ywd-1d.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "add.ywd-1d.ref"
3 $ dadd +1d < "add.ywd-1d.ref" | dadd -1d
4 < "add.ywd-1d.ref"
5 $ rm -- "add.ywd-1d.ref"
6 $
7
8 ## add.ywd-1d.clit
+0
-9
test/add.ywd-1w.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "add.ywd-1w.ref"
3 $ dadd +1w < "add.ywd-1w.ref" | dadd -1w
4 < "add.ywd-1w.ref"
5 $ rm -- "add.ywd-1w.ref"
6 $
7
8 ## add.ywd-1w.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "add.ywd-1w.ref"
3 $ dadd +1w < "add.ywd-1w.ref" | dadd -1w
4 < "add.ywd-1w.ref"
5 $ rm -- "add.ywd-1w.ref"
6 $
7
8 ## add.ywd-1w.clit
+0
-9
test/add.ywd-1y.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2071-12-31" -f "ywd" > "add.ywd-28y.ref"
3 $ dadd +28y < "add.ywd-28y.ref" | dadd -28y
4 < "add.ywd-28y.ref"
5 $ rm -- "add.ywd-28y.ref"
6 $
7
8 ## add.ywd-28y.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2071-12-31" -f "ywd" > "add.ywd-28y.ref"
3 $ dadd +28y < "add.ywd-28y.ref" | dadd -28y
4 < "add.ywd-28y.ref"
5 $ rm -- "add.ywd-28y.ref"
6 $
7
8 ## add.ywd-28y.clit
00 ## assumes TEST_EXTENSIONS, BUILT_SOURCES, check_PROGRAMS have been set
1 TEST_EXTENSIONS += .clit
2 CLIT_LOG_COMPILER = $(builddir)/clitosis
1 TEST_EXTENSIONS += .ctst
2 CTST_LOG_COMPILER = $(builddir)/clitosis
33
44 ## our friendly helper
55 check_PROGRAMS += clitosis
00 /*** clitosis.c -- command-line-interface tester on shell input syntax
11 *
2 * Copyright (C) 2013-2018 Sebastian Freundt
2 * Copyright (C) 2013-2022 Sebastian Freundt
33 *
44 * Author: Sebastian Freundt <freundt@ga-group.nl>
55 *
208208 return;
209209 }
210210
211 static inline __attribute__((const, pure, always_inline)) char*
211 static inline __attribute__((const, always_inline)) char*
212212 deconst(const char *s)
213213 {
214214 union {
317317 return NULL;
318318 }
319319
320 /* coverity[-tainted_data_sink: arg-0] */
320321 static char*
321322 xstrndup(const char *s, size_t z)
322323 {
472473 /* clit bit handling */
473474 #define CLIT_BIT_FD(x) (clit_bit_fd_p(x) ? (int)(x).z : -1)
474475
475 static inline __attribute__((const, pure)) bool
476 static inline __attribute__((const)) bool
476477 clit_bit_buf_p(clit_bit_t x)
477478 {
478479 return x.z != -1UL && x.d != NULL;
479480 }
480481
481 static inline __attribute__((const, pure)) bool
482 static inline __attribute__((const)) bool
482483 clit_bit_fd_p(clit_bit_t x)
483484 {
484485 return x.d == NULL;
485486 }
486487
487 static inline __attribute__((const, pure)) bool
488 static inline __attribute__((const)) bool
488489 clit_bit_fn_p(clit_bit_t x)
489490 {
490491 return x.z == -1UL && x.d != NULL;
+0
-9
test/convt.yd-ymcw.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "convt.yd-ymcw.ref"
3 $ dconv -f "ymcw" < "convt.yd-ymcw.ref" | dconv -f "yd"
4 < "convt.yd-ymcw.ref"
5 $ rm -- "convt.yd-ymcw.ref"
6 $
7
8 ## convt.yd-ymcw.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "convt.yd-ymcw.ref"
3 $ dconv -f "ymcw" < "convt.yd-ymcw.ref" | dconv -f "yd"
4 < "convt.yd-ymcw.ref"
5 $ rm -- "convt.yd-ymcw.ref"
6 $
7
8 ## convt.yd-ymcw.clit
+0
-9
test/convt.yd-ymd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "convt.yd-ymd.ref"
3 $ dconv -f "ymd" < "convt.yd-ymd.ref" | dconv -f "yd"
4 < "convt.yd-ymd.ref"
5 $ rm -- "convt.yd-ymd.ref"
6 $
7
8 ## convt.yd-ymd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "convt.yd-ymd.ref"
3 $ dconv -f "ymd" < "convt.yd-ymd.ref" | dconv -f "yd"
4 < "convt.yd-ymd.ref"
5 $ rm -- "convt.yd-ymd.ref"
6 $
7
8 ## convt.yd-ymd.clit
+0
-9
test/convt.yd-ywd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "convt.yd-ywd.ref"
3 $ dconv -f "ywd" < "convt.yd-ywd.ref" | dconv -f "yd"
4 < "convt.yd-ywd.ref"
5 $ rm -- "convt.yd-ywd.ref"
6 $
7
8 ## convt.yd-ywd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "yd" > "convt.yd-ywd.ref"
3 $ dconv -f "ywd" < "convt.yd-ywd.ref" | dconv -f "yd"
4 < "convt.yd-ywd.ref"
5 $ rm -- "convt.yd-ywd.ref"
6 $
7
8 ## convt.yd-ywd.clit
+0
-9
test/convt.ymcw-yd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "convt.ymcw-yd.ref"
3 $ dconv -f "yd" < "convt.ymcw-yd.ref" | dconv -f "ymcw"
4 < "convt.ymcw-yd.ref"
5 $ rm -- "convt.ymcw-yd.ref"
6 $
7
8 ## convt.ymcw-yd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "convt.ymcw-yd.ref"
3 $ dconv -f "yd" < "convt.ymcw-yd.ref" | dconv -f "ymcw"
4 < "convt.ymcw-yd.ref"
5 $ rm -- "convt.ymcw-yd.ref"
6 $
7
8 ## convt.ymcw-yd.clit
+0
-9
test/convt.ymcw-ymd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "convt.ymcw-ymd.ref"
3 $ dconv -f "ymd" < "convt.ymcw-ymd.ref" | dconv -f "ymcw"
4 < "convt.ymcw-ymd.ref"
5 $ rm -- "convt.ymcw-ymd.ref"
6 $
7
8 ## convt.ymcw-ymd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "convt.ymcw-ymd.ref"
3 $ dconv -f "ymd" < "convt.ymcw-ymd.ref" | dconv -f "ymcw"
4 < "convt.ymcw-ymd.ref"
5 $ rm -- "convt.ymcw-ymd.ref"
6 $
7
8 ## convt.ymcw-ymd.clit
+0
-9
test/convt.ymcw-ywd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "convt.ymcw-ywd.ref"
3 $ dconv -f "ywd" < "convt.ymcw-ywd.ref" | dconv -f "ymcw"
4 < "convt.ymcw-ywd.ref"
5 $ rm -- "convt.ymcw-ywd.ref"
6 $
7
8 ## convt.ymcw-ywd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymcw" > "convt.ymcw-ywd.ref"
3 $ dconv -f "ywd" < "convt.ymcw-ywd.ref" | dconv -f "ymcw"
4 < "convt.ymcw-ywd.ref"
5 $ rm -- "convt.ymcw-ywd.ref"
6 $
7
8 ## convt.ymcw-ywd.clit
+0
-9
test/convt.ymd-yd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "convt.ymd-yd.ref"
3 $ dconv -f "yd" < "convt.ymd-yd.ref" | dconv -f "ymd"
4 < "convt.ymd-yd.ref"
5 $ rm -- "convt.ymd-yd.ref"
6 $
7
8 ## convt.ymd-yd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "convt.ymd-yd.ref"
3 $ dconv -f "yd" < "convt.ymd-yd.ref" | dconv -f "ymd"
4 < "convt.ymd-yd.ref"
5 $ rm -- "convt.ymd-yd.ref"
6 $
7
8 ## convt.ymd-yd.clit
+0
-9
test/convt.ymd-ymcw.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "convt.ymd-ymcw.ref"
3 $ dconv -f "ymcw" < "convt.ymd-ymcw.ref" | dconv -f "ymd"
4 < "convt.ymd-ymcw.ref"
5 $ rm -- "convt.ymd-ymcw.ref"
6 $
7
8 ## convt.ymd-ymcw.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "convt.ymd-ymcw.ref"
3 $ dconv -f "ymcw" < "convt.ymd-ymcw.ref" | dconv -f "ymd"
4 < "convt.ymd-ymcw.ref"
5 $ rm -- "convt.ymd-ymcw.ref"
6 $
7
8 ## convt.ymd-ymcw.clit
+0
-9
test/convt.ymd-ywd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "convt.ymd-ywd.ref"
3 $ dconv -f "ywd" < "convt.ymd-ywd.ref" | dconv -f "ymd"
4 < "convt.ymd-ywd.ref"
5 $ rm -- "convt.ymd-ywd.ref"
6 $
7
8 ## convt.ymd-ywd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ymd" > "convt.ymd-ywd.ref"
3 $ dconv -f "ywd" < "convt.ymd-ywd.ref" | dconv -f "ymd"
4 < "convt.ymd-ywd.ref"
5 $ rm -- "convt.ymd-ywd.ref"
6 $
7
8 ## convt.ymd-ywd.clit
+0
-9
test/convt.ywd-yd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "convt.ywd-yd.ref"
3 $ dconv -f "yd" < "convt.ywd-yd.ref" | dconv -f "ywd"
4 < "convt.ywd-yd.ref"
5 $ rm -- "convt.ywd-yd.ref"
6 $
7
8 ## convt.ywd-yd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "convt.ywd-yd.ref"
3 $ dconv -f "yd" < "convt.ywd-yd.ref" | dconv -f "ywd"
4 < "convt.ywd-yd.ref"
5 $ rm -- "convt.ywd-yd.ref"
6 $
7
8 ## convt.ywd-yd.clit
+0
-9
test/convt.ywd-ymcw.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "convt.ywd-ymcw.ref"
3 $ dconv -f "ymcw" < "convt.ywd-ymcw.ref" | dconv -f "ywd"
4 < "convt.ywd-ymcw.ref"
5 $ rm -- "convt.ywd-ymcw.ref"
6 $
7
8 ## convt.ywd-ymcw.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "convt.ywd-ymcw.ref"
3 $ dconv -f "ymcw" < "convt.ywd-ymcw.ref" | dconv -f "ywd"
4 < "convt.ywd-ymcw.ref"
5 $ rm -- "convt.ywd-ymcw.ref"
6 $
7
8 ## convt.ywd-ymcw.clit
+0
-9
test/convt.ywd-ymd.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "convt.ywd-ymd.ref"
3 $ dconv -f "ymd" < "convt.ywd-ymd.ref" | dconv -f "ywd"
4 < "convt.ywd-ymd.ref"
5 $ rm -- "convt.ywd-ymd.ref"
6 $
7
8 ## convt.ywd-ymd.clit
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq "1917-01-01" "2399-12-31" -f "ywd" > "convt.ywd-ymd.ref"
3 $ dconv -f "ymd" < "convt.ywd-ymd.ref" | dconv -f "ywd"
4 < "convt.ywd-ymd.ref"
5 $ rm -- "convt.ywd-ymd.ref"
6 $
7
8 ## convt.ywd-ymd.clit
+0
-7
test/dadd.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-01 1d
3 2012-03-02
4 $
5
6 ## dadd.001.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-01 1d
3 2012-03-02
4 $
5
6 ## dadd.001.ctst ends here
+0
-7
test/dadd.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-01 1mo
3 2012-04-01
4 $
5
6 ## dadd.002.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-01 1mo
3 2012-04-01
4 $
5
6 ## dadd.002.ctst ends here
+0
-7
test/dadd.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-31 1mo
3 2012-04-30
4 $
5
6 ## dadd.003.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-31 1mo
3 2012-04-30
4 $
5
6 ## dadd.003.ctst ends here
+0
-17
test/dadd.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2w2d <<EOF
3 2012-03-01
4 2012-03-02
5 2012-03-04
6 2012-03-08
7 2012-03-16
8 EOF
9 2012-03-17
10 2012-03-18
11 2012-03-20
12 2012-03-24
13 2012-04-01
14 $
15
16 ## dadd.004.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2w2d <<EOF
3 2012-03-01
4 2012-03-02
5 2012-03-04
6 2012-03-08
7 2012-03-16
8 EOF
9 2012-03-17
10 2012-03-18
11 2012-03-20
12 2012-03-24
13 2012-04-01
14 $
15
16 ## dadd.004.ctst ends here
+0
-25
test/dadd.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1b <<EOF
3 2000-01-01
4 2000-01-02
5 2000-01-03
6 2000-01-04
7 2000-01-05
8 2000-01-06
9 2000-01-07
10 2000-01-08
11 2000-01-09
12 EOF
13 2000-01-03
14 2000-01-03
15 2000-01-04
16 2000-01-05
17 2000-01-06
18 2000-01-07
19 2000-01-10
20 2000-01-10
21 2000-01-10
22 $
23
24 ## dadd.005.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1b <<EOF
3 2000-01-01
4 2000-01-02
5 2000-01-03
6 2000-01-04
7 2000-01-05
8 2000-01-06
9 2000-01-07
10 2000-01-08
11 2000-01-09
12 EOF
13 2000-01-03
14 2000-01-03
15 2000-01-04
16 2000-01-05
17 2000-01-06
18 2000-01-07
19 2000-01-10
20 2000-01-10
21 2000-01-10
22 $
23
24 ## dadd.005.ctst ends here
+0
-27
test/dadd.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1b <<EOF
3 2000-01-01
4 2000-01-02
5 2000-01-03
6 2000-01-04
7 2000-01-05
8 2000-01-06
9 2000-01-07
10 2000-01-08
11 2000-01-09
12 2000-01-10
13 EOF
14 1999-12-31
15 1999-12-31
16 1999-12-31
17 2000-01-03
18 2000-01-04
19 2000-01-05
20 2000-01-06
21 2000-01-07
22 2000-01-07
23 2000-01-07
24 $
25
26 ## dadd.006.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1b <<EOF
3 2000-01-01
4 2000-01-02
5 2000-01-03
6 2000-01-04
7 2000-01-05
8 2000-01-06
9 2000-01-07
10 2000-01-08
11 2000-01-09
12 2000-01-10
13 EOF
14 1999-12-31
15 1999-12-31
16 1999-12-31
17 2000-01-03
18 2000-01-04
19 2000-01-05
20 2000-01-06
21 2000-01-07
22 2000-01-07
23 2000-01-07
24 $
25
26 ## dadd.006.ctst ends here
+0
-27
test/dadd.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1 <<EOF
3 2000-01-01
4 2000-01-02
5 2000-01-03
6 2000-01-04
7 2000-01-05
8 2000-01-06
9 2000-01-07
10 2000-01-08
11 2000-01-09
12 2000-01-10
13 EOF
14 1999-12-31
15 2000-01-01
16 2000-01-02
17 2000-01-03
18 2000-01-04
19 2000-01-05
20 2000-01-06
21 2000-01-07
22 2000-01-08
23 2000-01-09
24 $
25
26 ## dadd.007.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1 <<EOF
3 2000-01-01
4 2000-01-02
5 2000-01-03
6 2000-01-04
7 2000-01-05
8 2000-01-06
9 2000-01-07
10 2000-01-08
11 2000-01-09
12 2000-01-10
13 EOF
14 1999-12-31
15 2000-01-01
16 2000-01-02
17 2000-01-03
18 2000-01-04
19 2000-01-05
20 2000-01-06
21 2000-01-07
22 2000-01-08
23 2000-01-09
24 $
25
26 ## dadd.007.ctst ends here
+0
-27
test/dadd.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1mo1d <<EOF
3 2000-01-01
4 2000-01-02
5 2000-01-03
6 2000-01-04
7 2000-01-05
8 2000-01-06
9 2000-01-07
10 2000-01-08
11 2000-01-09
12 2000-01-10
13 EOF
14 1999-11-30
15 1999-12-01
16 1999-12-02
17 1999-12-03
18 1999-12-04
19 1999-12-05
20 1999-12-06
21 1999-12-07
22 1999-12-08
23 1999-12-09
24 $
25
26 ## dadd.008.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1mo1d <<EOF
3 2000-01-01
4 2000-01-02
5 2000-01-03
6 2000-01-04
7 2000-01-05
8 2000-01-06
9 2000-01-07
10 2000-01-08
11 2000-01-09
12 2000-01-10
13 EOF
14 1999-11-30
15 1999-12-01
16 1999-12-02
17 1999-12-03
18 1999-12-04
19 1999-12-05
20 1999-12-06
21 1999-12-07
22 1999-12-08
23 1999-12-09
24 $
25
26 ## dadd.008.ctst ends here
+0
-8
test/dadd.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## Issue 4, year off by 1, reported by javajunkie314
3 $ dadd 2012-01-25 -1y
4 2011-01-25
5 $
6
7 ## dadd.009.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## Issue 4, year off by 1, reported by javajunkie314
3 $ dadd 2012-01-25 -1y
4 2011-01-25
5 $
6
7 ## dadd.009.ctst ends here
+0
-8
test/dadd.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## Issue 4, year off by 1, reported by javajunkie314
3 $ dadd 2012-01-25 -12mo
4 2011-01-25
5 $
6
7 ## dadd.010.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## Issue 4, year off by 1, reported by javajunkie314
3 $ dadd 2012-01-25 -12mo
4 2011-01-25
5 $
6
7 ## dadd.010.ctst ends here
+0
-7
test/dadd.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 +1d
3 2012-01-02-04
4 $
5
6 ## dadd.011.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 +1d
3 2012-01-02-04
4 $
5
6 ## dadd.011.ctst ends here
+0
-7
test/dadd.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 -1d
3 2012-01-02-02
4 $
5
6 ## dadd.012.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 -1d
3 2012-01-02-02
4 $
5
6 ## dadd.012.ctst ends here
+0
-7
test/dadd.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 +1w
3 2012-01-03-03
4 $
5
6 ## dadd.013.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 +1w
3 2012-01-03-03
4 $
5
6 ## dadd.013.ctst ends here
+0
-7
test/dadd.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 -1w
3 2012-01-01-03
4 $
5
6 ## dadd.014.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 -1w
3 2012-01-01-03
4 $
5
6 ## dadd.014.ctst ends here
+0
-7
test/dadd.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 +4w
3 2012-02-02-03
4 $
5
6 ## dadd.015.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 +4w
3 2012-02-02-03
4 $
5
6 ## dadd.015.ctst ends here
+0
-7
test/dadd.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 -4w
3 2011-12-02-03
4 $
5
6 ## dadd.016.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 -4w
3 2011-12-02-03
4 $
5
6 ## dadd.016.ctst ends here
+0
-7
test/dadd.017.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 +7w
3 2012-02-05-03
4 $
5
6 ## dadd.017.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02-03 +7w
3 2012-02-05-03
4 $
5
6 ## dadd.017.ctst ends here
+0
-7
test/dadd.018.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-05-03 -7w
3 2012-01-02-03
4 $
5
6 ## dadd.018.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-05-03 -7w
3 2012-01-02-03
4 $
5
6 ## dadd.018.ctst ends here
+0
-7
test/dadd.019.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02 +8w
3 2012-02-27
4 $
5
6 ## dadd.019.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02 +8w
3 2012-02-27
4 $
5
6 ## dadd.019.ctst ends here
+0
-7
test/dadd.020.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-01-02 -8w
3 2011-11-07
4 $
5
6 ## dadd.020.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-02 -8w
3 2011-11-07
4 $
5
6 ## dadd.020.ctst ends here
+0
-17
test/dadd.021.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd +1mo <<EOF
3 2012-03-01
4 2012-03-02
5 2012-03-04
6 2012-03-30
7 2012-03-31
8 EOF
9 2012-04-01
10 2012-04-02
11 2012-04-04
12 2012-04-30
13 2012-04-30
14 $
15
16 ## dadd.021.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd +1mo <<EOF
3 2012-03-01
4 2012-03-02
5 2012-03-04
6 2012-03-30
7 2012-03-31
8 EOF
9 2012-04-01
10 2012-04-02
11 2012-04-04
12 2012-04-30
13 2012-04-30
14 $
15
16 ## dadd.021.ctst ends here
+0
-17
test/dadd.022.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd +1d <<EOF
3 2012-03-01
4 2012-03-02
5 2012-03-04
6 2012-03-30
7 2012-03-31
8 EOF
9 2012-03-02
10 2012-03-03
11 2012-03-05
12 2012-03-31
13 2012-04-01
14 $
15
16 ## dadd.022.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd +1d <<EOF
3 2012-03-01
4 2012-03-02
5 2012-03-04
6 2012-03-30
7 2012-03-31
8 EOF
9 2012-03-02
10 2012-03-03
11 2012-03-05
12 2012-03-31
13 2012-04-01
14 $
15
16 ## dadd.022.ctst ends here
+0
-17
test/dadd.023.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1d <<EOF
3 2012-03-01
4 2012-03-02
5 2012-03-04
6 2012-03-30
7 2012-03-31
8 EOF
9 2012-02-29
10 2012-03-01
11 2012-03-03
12 2012-03-29
13 2012-03-30
14 $
15
16 ## dadd.023.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1d <<EOF
3 2012-03-01
4 2012-03-02
5 2012-03-04
6 2012-03-30
7 2012-03-31
8 EOF
9 2012-02-29
10 2012-03-01
11 2012-03-03
12 2012-03-29
13 2012-03-30
14 $
15
16 ## dadd.023.ctst ends here
+0
-7
test/dadd.024.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2010-02-02 +4d
3 2010-02-06
4 $
5
6 ## dadd.024.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2010-02-02 +4d
3 2010-02-06
4 $
5
6 ## dadd.024.ctst ends here
+0
-7
test/dadd.025.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2010-02-02 +1w
3 2010-02-09
4 $
5
6 ## dadd.025.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2010-02-02 +1w
3 2010-02-09
4 $
5
6 ## dadd.025.ctst ends here
+0
-11
test/dadd.026.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1d <<EOF
3 2001-01-05
4 2001-01-01
5 EOF
6 2001-01-04
7 2000-12-31
8 $
9
10 ## dadd.026.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1d <<EOF
3 2001-01-05
4 2001-01-01
5 EOF
6 2001-01-04
7 2000-12-31
8 $
9
10 ## dadd.026.ctst ends here
+0
-14
test/dadd.027.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## mass adding of durations
3 $ dadd 2001-01-05 <<EOF
4 1
5 2
6 5
7 EOF
8 2001-01-06
9 2001-01-07
10 2001-01-10
11 $
12
13 ## dadd.027.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## mass adding of durations
3 $ dadd 2001-01-05 <<EOF
4 1
5 2
6 5
7 EOF
8 2001-01-06
9 2001-01-07
10 2001-01-10
11 $
12
13 ## dadd.027.ctst ends here
+0
-14
test/dadd.028.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## mass adding of durations
3 $ dadd 2001-01-05 <<EOF
4 -1
5 -2
6 -5
7 EOF
8 2001-01-04
9 2001-01-03
10 2000-12-31
11 $
12
13 ## dadd.028.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## mass adding of durations
3 $ dadd 2001-01-05 <<EOF
4 -1
5 -2
6 -5
7 EOF
8 2001-01-04
9 2001-01-03
10 2000-12-31
11 $
12
13 ## dadd.028.ctst ends here
+0
-16
test/dadd.029.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## mass adding of durations, time to date
3 $ dadd -S 2001-01-05 <<EOF
4 1s
5 2h
6 48h
7 test
8 EOF
9 2001-01-05
10 2001-01-05
11 2001-01-05
12 test
13 $
14
15 ## dadd.029.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## mass adding of durations, time to date
3 $ dadd -S 2001-01-05 <<EOF
4 1s
5 2h
6 48h
7 test
8 EOF
9 2001-01-05
10 2001-01-05
11 2001-01-05
12 test
13 $
14
15 ## dadd.029.ctst ends here
+0
-16
test/dadd.030.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## mass adding of durations, time to date
3 $ dadd -S 2001-01-05 <<EOF
4 1s
5 2h
6 48h
7 test
8 EOF
9 2001-01-05
10 2001-01-05
11 2001-01-05
12 test
13 $
14
15 ## dadd.030.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## mass adding of durations, time to date
3 $ dadd -S 2001-01-05 <<EOF
4 1s
5 2h
6 48h
7 test
8 EOF
9 2001-01-05
10 2001-01-05
11 2001-01-05
12 test
13 $
14
15 ## dadd.030.ctst ends here
+0
-7
test/dadd.031.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-04-05-06 1d
3 2012-04-05-00
4 $
5
6 ## dadd.031.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-04-05-06 1d
3 2012-04-05-07
4 $
5
6 ## dadd.031.ctst ends here
+0
-7
test/dadd.032.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-04-05-00 -1d
3 2012-04-04-06
4 $
5
6 ## dadd.032.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-04-05-00 -1d
3 2012-04-04-06
4 $
5
6 ## dadd.032.ctst ends here
+0
-7
test/dadd.033.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-04-04-05 1d
3 2012-04-04-06
4 $
5
6 ## dadd.033.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-04-04-05 1d
3 2012-04-04-06
4 $
5
6 ## dadd.033.ctst ends here
+0
-7
test/dadd.034.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-04-04-05 -1d
3 2012-04-04-04
4 $
5
6 ## dadd.034.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-04-04-05 -1d
3 2012-04-04-04
4 $
5
6 ## dadd.034.ctst ends here
+0
-7
test/dadd.035.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2001-01-03-05 +1mo
3 2001-02-03-05
4 $
5
6 ## dadd.035.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2001-01-03-05 +1mo
3 2001-02-03-05
4 $
5
6 ## dadd.035.ctst ends here
+0
-7
test/dadd.036.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2001-01-03-05 -1mo
3 2000-12-03-05
4 $
5
6 ## dadd.036.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2001-01-03-05 -1mo
3 2000-12-03-05
4 $
5
6 ## dadd.036.ctst ends here
+0
-7
test/dadd.037.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 1d
3 2012-W36-2
4 $
5
6 ## dadd.037.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 1d
3 2012-W36-2
4 $
5
6 ## dadd.037.ctst ends here
+0
-7
test/dadd.038.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 -1d
3 2012-W35-7
4 $
5
6 ## dadd.038.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 -1d
3 2012-W35-7
4 $
5
6 ## dadd.038.ctst ends here
+0
-7
test/dadd.039.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 -1
3 2012-W35-7
4 $
5
6 ## dadd.039.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 -1
3 2012-W35-7
4 $
5
6 ## dadd.039.ctst ends here
+0
-7
test/dadd.040.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 1
3 2012-W36-2
4 $
5
6 ## dadd.040.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 1
3 2012-W36-2
4 $
5
6 ## dadd.040.ctst ends here
+0
-7
test/dadd.041.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 1w
3 2012-W37-1
4 $
5
6 ## dadd.041.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 1w
3 2012-W37-1
4 $
5
6 ## dadd.041.ctst ends here
+0
-7
test/dadd.042.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 -1w
3 2012-W35-1
4 $
5
6 ## dadd.042.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 -1w
3 2012-W35-1
4 $
5
6 ## dadd.042.ctst ends here
+0
-7
test/dadd.043.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 1y
3 2013-W36-1
4 $
5
6 ## dadd.043.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 1y
3 2013-W36-1
4 $
5
6 ## dadd.043.ctst ends here
+0
-7
test/dadd.044.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 -1y
3 2011-W36-1
4 $
5
6 ## dadd.044.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W36-1 -1y
3 2011-W36-1
4 $
5
6 ## dadd.044.ctst ends here
+0
-7
test/dadd.045.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 -1d
3 2012-02-01-01
4 $
5
6 ## dadd.045.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 -1d
3 2012-02-01-01
4 $
5
6 ## dadd.045.ctst ends here
+0
-7
test/dadd.046.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 +1d
3 2012-02-02-03
4 $
5
6 ## dadd.046.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 +1d
3 2012-02-02-03
4 $
5
6 ## dadd.046.ctst ends here
+0
-7
test/dadd.047.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 -2d
3 2012-02-01-00
4 $
5
6 ## dadd.047.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 -2d
3 2012-02-01-07
4 $
5
6 ## dadd.047.ctst ends here
+0
-7
test/dadd.048.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 +2d
3 2012-02-02-04
4 $
5
6 ## dadd.048.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 +2d
3 2012-02-02-04
4 $
5
6 ## dadd.048.ctst ends here
+0
-7
test/dadd.049.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 -3d
3 2012-02-01-06
4 $
5
6 ## dadd.049.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 -3d
3 2012-02-01-06
4 $
5
6 ## dadd.049.ctst ends here
+0
-7
test/dadd.050.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 3d
3 2012-02-02-05
4 $
5
6 ## dadd.050.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-01-02 3d
3 2012-02-02-05
4 $
5
6 ## dadd.050.ctst ends here
+0
-29
test/dadd.051.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2009-W52-6 <<EOF
3 0d
4 1d
5 2d
6 3
7 4d
8 5
9 6d
10 7
11 8d
12 9d
13 10d
14 EOF
15 2009-W52-6
16 2009-W52-7
17 2009-W53-1
18 2009-W53-2
19 2009-W53-3
20 2009-W53-4
21 2009-W53-5
22 2009-W53-6
23 2009-W53-7
24 2010-W01-1
25 2010-W01-2
26 $
27
28 ## dadd.051.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2009-W52-6 <<EOF
3 0d
4 1d
5 2d
6 3
7 4d
8 5
9 6d
10 7
11 8d
12 9d
13 10d
14 EOF
15 2009-W52-6
16 2009-W52-7
17 2009-W53-1
18 2009-W53-2
19 2009-W53-3
20 2009-W53-4
21 2009-W53-5
22 2009-W53-6
23 2009-W53-7
24 2010-W01-1
25 2010-W01-2
26 $
27
28 ## dadd.051.ctst ends here
+0
-29
test/dadd.052.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2010-W01-2 <<EOF
3 0d
4 -1d
5 -2d
6 -3
7 -4d
8 -5
9 -6d
10 -7
11 -8d
12 -9d
13 -10d
14 EOF
15 2010-W01-2
16 2010-W01-1
17 2009-W53-7
18 2009-W53-6
19 2009-W53-5
20 2009-W53-4
21 2009-W53-3
22 2009-W53-2
23 2009-W53-1
24 2009-W52-7
25 2009-W52-6
26 $
27
28 ## dadd.052.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2010-W01-2 <<EOF
3 0d
4 -1d
5 -2d
6 -3
7 -4d
8 -5
9 -6d
10 -7
11 -8d
12 -9d
13 -10d
14 EOF
15 2010-W01-2
16 2010-W01-1
17 2009-W53-7
18 2009-W53-6
19 2009-W53-5
20 2009-W53-4
21 2009-W53-3
22 2009-W53-2
23 2009-W53-1
24 2009-W52-7
25 2009-W52-6
26 $
27
28 ## dadd.052.ctst ends here
+0
-29
test/dadd.053.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2010-W51-6 <<EOF
3 0d
4 1d
5 2d
6 3
7 4d
8 5
9 6d
10 7
11 8d
12 9d
13 10d
14 EOF
15 2010-W51-6
16 2010-W51-7
17 2010-W52-1
18 2010-W52-2
19 2010-W52-3
20 2010-W52-4
21 2010-W52-5
22 2010-W52-6
23 2010-W52-7
24 2011-W01-1
25 2011-W01-2
26 $
27
28 ## dadd.053.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2010-W51-6 <<EOF
3 0d
4 1d
5 2d
6 3
7 4d
8 5
9 6d
10 7
11 8d
12 9d
13 10d
14 EOF
15 2010-W51-6
16 2010-W51-7
17 2010-W52-1
18 2010-W52-2
19 2010-W52-3
20 2010-W52-4
21 2010-W52-5
22 2010-W52-6
23 2010-W52-7
24 2011-W01-1
25 2011-W01-2
26 $
27
28 ## dadd.053.ctst ends here
+0
-29
test/dadd.054.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2011-W01-2 <<EOF
3 0d
4 -1d
5 -2d
6 -3
7 -4d
8 -5
9 -6d
10 -7
11 -8d
12 -9d
13 -10d
14 EOF
15 2011-W01-2
16 2011-W01-1
17 2010-W52-7
18 2010-W52-6
19 2010-W52-5
20 2010-W52-4
21 2010-W52-3
22 2010-W52-2
23 2010-W52-1
24 2010-W51-7
25 2010-W51-6
26 $
27
28 ## dadd.054.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2011-W01-2 <<EOF
3 0d
4 -1d
5 -2d
6 -3
7 -4d
8 -5
9 -6d
10 -7
11 -8d
12 -9d
13 -10d
14 EOF
15 2011-W01-2
16 2011-W01-1
17 2010-W52-7
18 2010-W52-6
19 2010-W52-5
20 2010-W52-4
21 2010-W52-3
22 2010-W52-2
23 2010-W52-1
24 2010-W51-7
25 2010-W51-6
26 $
27
28 ## dadd.054.ctst ends here
+0
-49
test/dadd.055.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-09-01b <<EOF
3 0b
4 1b
5 2b
6 3b
7 4b
8 5b
9 6b
10 7b
11 8b
12 9b
13 10b
14 11b
15 12b
16 13b
17 14b
18 15b
19 16b
20 17b
21 18b
22 19b
23 20b
24 EOF
25 2012-09-01b
26 2012-09-02b
27 2012-09-03b
28 2012-09-04b
29 2012-09-05b
30 2012-09-06b
31 2012-09-07b
32 2012-09-08b
33 2012-09-09b
34 2012-09-10b
35 2012-09-11b
36 2012-09-12b
37 2012-09-13b
38 2012-09-14b
39 2012-09-15b
40 2012-09-16b
41 2012-09-17b
42 2012-09-18b
43 2012-09-19b
44 2012-09-20b
45 2012-10-01b
46 $
47
48 ## dadd.055.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-09-01b <<EOF
3 0b
4 1b
5 2b
6 3b
7 4b
8 5b
9 6b
10 7b
11 8b
12 9b
13 10b
14 11b
15 12b
16 13b
17 14b
18 15b
19 16b
20 17b
21 18b
22 19b
23 20b
24 EOF
25 2012-09-01b
26 2012-09-02b
27 2012-09-03b
28 2012-09-04b
29 2012-09-05b
30 2012-09-06b
31 2012-09-07b
32 2012-09-08b
33 2012-09-09b
34 2012-09-10b
35 2012-09-11b
36 2012-09-12b
37 2012-09-13b
38 2012-09-14b
39 2012-09-15b
40 2012-09-16b
41 2012-09-17b
42 2012-09-18b
43 2012-09-19b
44 2012-09-20b
45 2012-10-01b
46 $
47
48 ## dadd.055.ctst ends here
+0
-49
test/dadd.056.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-10-01b <<EOF
3 -0b
4 -1b
5 -2b
6 -3b
7 -4b
8 -5b
9 -6b
10 -7b
11 -8b
12 -9b
13 -10b
14 -11b
15 -12b
16 -13b
17 -14b
18 -15b
19 -16b
20 -17b
21 -18b
22 -19b
23 -20b
24 EOF
25 2012-10-01b
26 2012-09-20b
27 2012-09-19b
28 2012-09-18b
29 2012-09-17b
30 2012-09-16b
31 2012-09-15b
32 2012-09-14b
33 2012-09-13b
34 2012-09-12b
35 2012-09-11b
36 2012-09-10b
37 2012-09-09b
38 2012-09-08b
39 2012-09-07b
40 2012-09-06b
41 2012-09-05b
42 2012-09-04b
43 2012-09-03b
44 2012-09-02b
45 2012-09-01b
46 $
47
48 ## dadd.056.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-10-01b <<EOF
3 -0b
4 -1b
5 -2b
6 -3b
7 -4b
8 -5b
9 -6b
10 -7b
11 -8b
12 -9b
13 -10b
14 -11b
15 -12b
16 -13b
17 -14b
18 -15b
19 -16b
20 -17b
21 -18b
22 -19b
23 -20b
24 EOF
25 2012-10-01b
26 2012-09-20b
27 2012-09-19b
28 2012-09-18b
29 2012-09-17b
30 2012-09-16b
31 2012-09-15b
32 2012-09-14b
33 2012-09-13b
34 2012-09-12b
35 2012-09-11b
36 2012-09-10b
37 2012-09-09b
38 2012-09-08b
39 2012-09-07b
40 2012-09-06b
41 2012-09-05b
42 2012-09-04b
43 2012-09-03b
44 2012-09-02b
45 2012-09-01b
46 $
47
48 ## dadd.056.ctst ends here
+0
-65
test/dadd.057.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-09-01b <<EOF
3 0
4 1
5 2
6 3
7 4
8 5
9 6
10 7
11 8
12 9
13 10
14 11
15 12
16 13
17 14
18 15
19 16
20 17
21 18
22 19
23 20
24 21
25 22
26 23
27 24
28 25
29 26
30 27
31 28
32 EOF
33 2012-09-01b
34 2012-09-02b
35 2012-09-03b
36 2012-09-04b
37 2012-09-05b
38 2012-09-05b
39 2012-09-05b
40 2012-09-06b
41 2012-09-07b
42 2012-09-08b
43 2012-09-09b
44 2012-09-10b
45 2012-09-10b
46 2012-09-10b
47 2012-09-11b
48 2012-09-12b
49 2012-09-13b
50 2012-09-14b
51 2012-09-15b
52 2012-09-15b
53 2012-09-15b
54 2012-09-16b
55 2012-09-17b
56 2012-09-18b
57 2012-09-19b
58 2012-09-20b
59 2012-09-20b
60 2012-09-20b
61 2012-10-01b
62 $
63
64 ## dadd.057.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-09-01b <<EOF
3 0
4 1
5 2
6 3
7 4
8 5
9 6
10 7
11 8
12 9
13 10
14 11
15 12
16 13
17 14
18 15
19 16
20 17
21 18
22 19
23 20
24 21
25 22
26 23
27 24
28 25
29 26
30 27
31 28
32 EOF
33 2012-09-01b
34 2012-09-02b
35 2012-09-03b
36 2012-09-04b
37 2012-09-05b
38 2012-09-05b
39 2012-09-05b
40 2012-09-06b
41 2012-09-07b
42 2012-09-08b
43 2012-09-09b
44 2012-09-10b
45 2012-09-10b
46 2012-09-10b
47 2012-09-11b
48 2012-09-12b
49 2012-09-13b
50 2012-09-14b
51 2012-09-15b
52 2012-09-15b
53 2012-09-15b
54 2012-09-16b
55 2012-09-17b
56 2012-09-18b
57 2012-09-19b
58 2012-09-20b
59 2012-09-20b
60 2012-09-20b
61 2012-10-01b
62 $
63
64 ## dadd.057.ctst ends here
+0
-65
test/dadd.058.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-10-01b <<EOF
3 -0
4 -1
5 -2
6 -3
7 -4
8 -5
9 -6
10 -7
11 -8
12 -9
13 -10
14 -11
15 -12
16 -13
17 -14
18 -15
19 -16
20 -17
21 -18
22 -19
23 -20
24 -21
25 -22
26 -23
27 -24
28 -25
29 -26
30 -27
31 -28
32 EOF
33 2012-10-01b
34 2012-10-01b
35 2012-10-01b
36 2012-09-20b
37 2012-09-19b
38 2012-09-18b
39 2012-09-17b
40 2012-09-16b
41 2012-09-16b
42 2012-09-16b
43 2012-09-15b
44 2012-09-14b
45 2012-09-13b
46 2012-09-12b
47 2012-09-11b
48 2012-09-11b
49 2012-09-11b
50 2012-09-10b
51 2012-09-09b
52 2012-09-08b
53 2012-09-07b
54 2012-09-06b
55 2012-09-06b
56 2012-09-06b
57 2012-09-05b
58 2012-09-04b
59 2012-09-03b
60 2012-09-02b
61 2012-09-01b
62 $
63
64 ## dadd.058.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-10-01b <<EOF
3 -0
4 -1
5 -2
6 -3
7 -4
8 -5
9 -6
10 -7
11 -8
12 -9
13 -10
14 -11
15 -12
16 -13
17 -14
18 -15
19 -16
20 -17
21 -18
22 -19
23 -20
24 -21
25 -22
26 -23
27 -24
28 -25
29 -26
30 -27
31 -28
32 EOF
33 2012-10-01b
34 2012-10-01b
35 2012-10-01b
36 2012-09-20b
37 2012-09-19b
38 2012-09-18b
39 2012-09-17b
40 2012-09-16b
41 2012-09-16b
42 2012-09-16b
43 2012-09-15b
44 2012-09-14b
45 2012-09-13b
46 2012-09-12b
47 2012-09-11b
48 2012-09-11b
49 2012-09-11b
50 2012-09-10b
51 2012-09-09b
52 2012-09-08b
53 2012-09-07b
54 2012-09-06b
55 2012-09-06b
56 2012-09-06b
57 2012-09-05b
58 2012-09-04b
59 2012-09-03b
60 2012-09-02b
61 2012-09-01b
62 $
63
64 ## dadd.058.ctst ends here
+0
-7
test/dadd.059.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-29 +1y
3 2013-02-28
4 $
5
6 ## dadd.059.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-29 +1y
3 2013-02-28
4 $
5
6 ## dadd.059.ctst ends here
+0
-7
test/dadd.060.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-31 +1mo
3 2012-04-30
4 $
5
6 ## dadd.060.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-31 +1mo
3 2012-04-30
4 $
5
6 ## dadd.060.ctst ends here
+0
-7
test/dadd.061.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-31 -1mo
3 2012-02-29
4 $
5
6 ## dadd.061.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-31 -1mo
3 2012-02-29
4 $
5
6 ## dadd.061.ctst ends here
+0
-7
test/dadd.062.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dadd 2012-02-31 -1y
3 2011-02-28
4 $
5
6 ## dadd.062.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dadd 2012-02-31 -1y
3 2011-02-28
4 $
5
6 ## dadd.062.ctst ends here
+0
-7
test/dadd.063.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-29 -12y
3 2000-02-29
4 $
5
6 ## dadd.063.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-29 -12y
3 2000-02-29
4 $
5
6 ## dadd.063.ctst ends here
+0
-7
test/dadd.064.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dadd 2012-02-31 4y
3 2016-02-29
4 $
5
6 ## dadd.064.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dadd 2012-02-31 4y
3 2016-02-29
4 $
5
6 ## dadd.064.ctst ends here
+0
-7
test/dadd.065.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-02-21b +1y
3 2013-02-20b
4 $
5
6 ## dadd.065.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-02-21b +1y
3 2013-02-20b
4 $
5
6 ## dadd.065.ctst ends here
+0
-7
test/dadd.066.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dadd 2013-08-23b +1mo
3 2013-09-21b
4 $
5
6 ## dadd.066.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dadd 2013-08-23b +1mo
3 2013-09-21b
4 $
5
6 ## dadd.066.ctst ends here
+0
-7
test/dadd.067.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-09-05-06 +1mo
3 2012-10-04-06
4 $
5
6 ## dadd.067.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-09-05-06 +1mo
3 2012-10-04-06
4 $
5
6 ## dadd.067.ctst ends here
+0
-7
test/dadd.068.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-09-05-06 +1y
3 2013-09-04-06
4 $
5
6 ## dadd.068.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-09-05-06 +1y
3 2013-09-04-06
4 $
5
6 ## dadd.068.ctst ends here
+0
-7
test/dadd.069.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2013-09-05-01 -1mo
3 2013-08-04-01
4 $
5
6 ## dadd.069.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2013-09-05-01 -1mo
3 2013-08-04-01
4 $
5
6 ## dadd.069.ctst ends here
+0
-7
test/dadd.070.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2013-09-05-01 -1y
3 2012-09-04-01
4 $
5
6 ## dadd.070.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2013-09-05-01 -1y
3 2012-09-04-01
4 $
5
6 ## dadd.070.ctst ends here
+0
-19
test/dadd.071.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-09-01-04 <<EOF
3 +0b
4 +1b
5 +2b
6 +3b
7 +4b
8 +5b
9 EOF
10 2012-09-01-04
11 2012-09-01-05
12 2012-09-02-01
13 2012-09-02-02
14 2012-09-02-03
15 2012-09-02-04
16 $
17
18 ## dadd.071.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-09-01-04 <<EOF
3 +0b
4 +1b
5 +2b
6 +3b
7 +4b
8 +5b
9 EOF
10 2012-09-01-04
11 2012-09-01-05
12 2012-09-02-01
13 2012-09-02-02
14 2012-09-02-03
15 2012-09-02-04
16 $
17
18 ## dadd.071.ctst ends here
+0
-19
test/dadd.072.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-09-01-04 <<EOF
3 +0b
4 -1b
5 -2b
6 -3b
7 -4b
8 -5b
9 EOF
10 2012-09-01-04
11 2012-09-01-03
12 2012-09-01-02
13 2012-09-01-01
14 2012-08-05-05
15 2012-08-05-04
16 $
17
18 ## dadd.072.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-09-01-04 <<EOF
3 +0b
4 -1b
5 -2b
6 -3b
7 -4b
8 -5b
9 EOF
10 2012-09-01-04
11 2012-09-01-03
12 2012-09-01-02
13 2012-09-01-01
14 2012-08-05-05
15 2012-08-05-04
16 $
17
18 ## dadd.072.ctst ends here
+0
-7
test/dadd.073.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-W52-7 1
3 2013-W01-1
4 $
5
6 ## dadd.073.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-W52-7 1
3 2013-W01-1
4 $
5
6 ## dadd.073.ctst ends here
+0
-7
test/dadd.074.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2010-W01-1 -1d
3 2009-W53-7
4 $
5
6 ## dadd.074.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2010-W01-1 -1d
3 2009-W53-7
4 $
5
6 ## dadd.074.ctst ends here
+0
-7
test/dadd.075.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2009-W53-7 1y
3 2010-W52-7
4 $
5
6 ## dadd.075.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2009-W53-7 1y
3 2010-W52-7
4 $
5
6 ## dadd.075.ctst ends here
+0
-7
test/dadd.076.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2009-W53-7 -1y
3 2008-W52-7
4 $
5
6 ## dadd.076.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2009-W53-7 -1y
3 2008-W52-7
4 $
5
6 ## dadd.076.ctst ends here
+0
-7
test/dadd.077.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 1d
3 1920-W01-1
4 $
5
6 ## dadd.077.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 1d
3 1920-W01-1
4 $
5
6 ## dadd.077.ctst ends here
+0
-7
test/dadd.078.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 1d -f ymd
3 1919-12-29
4 $
5
6 ## dadd.078.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 1d -f ymd
3 1919-12-29
4 $
5
6 ## dadd.078.ctst ends here
+0
-7
test/dadd.079.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1921-W01-1 -1d
3 1920-W53-7
4 $
5
6 ## dadd.079.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1921-W01-1 -1d
3 1920-W53-7
4 $
5
6 ## dadd.079.ctst ends here
+0
-7
test/dadd.080.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1921-W01-1 -1d -f ymd
3 1921-01-02
4 $
5
6 ## dadd.080.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1921-W01-1 -1d -f ymd
3 1921-01-02
4 $
5
6 ## dadd.080.ctst ends here
+0
-7
test/dadd.081.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 +1y
3 1920-W52-7
4 $
5
6 ## dadd.081.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 +1y
3 1920-W52-7
4 $
5
6 ## dadd.081.ctst ends here
+0
-7
test/dadd.082.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 +1y -f ymd
3 1920-12-26
4 $
5
6 ## dadd.082.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 +1y -f ymd
3 1920-12-26
4 $
5
6 ## dadd.082.ctst ends here
+0
-7
test/dadd.083.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 +2y
3 1921-W52-7
4 $
5
6 ## dadd.083.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 +2y
3 1921-W52-7
4 $
5
6 ## dadd.083.ctst ends here
+0
-7
test/dadd.084.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 +2y -f ymd
3 1922-01-01
4 $
5
6 ## dadd.084.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1919-W52-7 +2y -f ymd
3 1922-01-01
4 $
5
6 ## dadd.084.ctst ends here
+0
-13
test/dadd.085.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dadd 2d -i "%d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-10-04
9 2013-10-04
10 $
11
12 ## dadd.085.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dadd 2d -i "%d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-10-04
9 2013-10-04
10 $
11
12 ## dadd.085.ctst ends here
+0
-13
test/dadd.086.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -q 2d -i "%d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-10-04
9 2013-10-04
10 $
11
12 ## dadd.086.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -q 2d -i "%d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-10-04
9 2013-10-04
10 $
11
12 ## dadd.086.ctst ends here
+0
-11
test/dadd.087.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -i ldn +1d <<EOF
3 157729
4 157732
5 EOF
6 157730
7 157733
8 $
9
10 ## dadd.087.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -i ldn +1d <<EOF
3 157729
4 157732
5 EOF
6 157730
7 157733
8 $
9
10 ## dadd.087.ctst ends here
+0
-9
test/dadd.088.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## we have to use the .0 variant here because the LDN
3 ## can be mistaken for a duration
4 $ dadd -i ldn 157729.0 +1d
5 157730.000000
6 $
7
8 ## dadd.088.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## we have to use the .0 variant here because the LDN
3 ## can be mistaken for a duration
4 $ dadd -i ldn 157729.0 +1d
5 157730.000000
6 $
7
8 ## dadd.088.ctst ends here
+0
-7
test/dadd.089.clit less more
0 #!/usr/bin/clitoris
1
2 ## this is don_crissti's issue
3 ## http://unix.stackexchange.com/questions/24626/quickly-calculate-date-differences/36193?noredirect=1#comment420193_36193
4 $ dadd -i '%m%d%Y' 01012015 +1d
5 2015-01-02
6 $
0 #!/usr/bin/clitosis
1
2 ## this is don_crissti's issue
3 ## http://unix.stackexchange.com/questions/24626/quickly-calculate-date-differences/36193?noredirect=1#comment420193_36193
4 $ dadd -i '%m%d%Y' 01012015 +1d
5 2015-01-02
6 $
+0
-7
test/dadd.090.clit less more
0 #!/usr/bin/clitoris
1
2 ## this is heehoo59's issue (issue #42)
3 $ dadd -S +4mo < "${srcdir}/dadd.090.dat" | tr '\0' '!'
4 x!2015-05-02
5 y!2015-06-02
6 $
0 #!/usr/bin/clitosis
1
2 ## this is heehoo59's issue (issue #42)
3 $ dadd -S +4mo < "${srcdir}/dadd.090.dat" | tr '\0' '!'
4 x!2015-05-02
5 y!2015-06-02
6 $
+0
-11
test/dadd.091.clit less more
0 #!/usr/bin/clitoris
1
2 $ dadd --from-locale de_AT +4mo -i '%b %Y' <<EOF
3 Jän 2016
4 Mär 2016
5 Okt 2016
6 EOF
7 2016-05-00
8 2016-07-00
9 2017-02-00
10 $
0 #!/usr/bin/clitosis
1
2 $ dadd --from-locale de_AT +4mo -i '%b %Y' <<EOF
3 Jän 2016
4 Mär 2016
5 Okt 2016
6 EOF
7 2016-05-00
8 2016-07-00
9 2017-02-00
10 $
+0
-11
test/dadd.092.clit less more
0 #!/usr/bin/clitoris
1
2 $ dadd --locale de_AT -4mo -f '%b %Y' <<EOF
3 2016-05-00
4 2016-07-00
5 2017-02-00
6 EOF
7 Jän 2016
8 Mär 2016
9 Okt 2016
10 $
0 #!/usr/bin/clitosis
1
2 $ dadd --locale de_AT -4mo -f '%b %Y' <<EOF
3 2016-05-00
4 2016-07-00
5 2017-02-00
6 EOF
7 Jän 2016
8 Mär 2016
9 Okt 2016
10 $
+0
-15
test/dadd.093.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2018-05-27 0d
3 2018-05-27
4 $ dadd 2018-05-27 0b
5 2018-05-27
6 $ dadd 2018-05-27 0w
7 2018-05-27
8 $ dadd 2018-05-27 0mo
9 2018-05-27
10 $ dadd 2018-05-27 0y
11 2018-05-27
12 $
13
14 ## dadd.093.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2018-05-27 0d
3 2018-05-27
4 $ dadd 2018-05-27 0b
5 2018-05-27
6 $ dadd 2018-05-27 0w
7 2018-05-27
8 $ dadd 2018-05-27 0mo
9 2018-05-27
10 $ dadd 2018-05-27 0y
11 2018-05-27
12 $
13
14 ## dadd.093.ctst ends here
+0
-15
test/dadd.094.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dadd 2020-02-30 0d
3 2020-02-29
4 $ ?2 dadd 2020-02-30 0b
5 2020-02-29
6 $ ?2 dadd 2020-02-30 0w
7 2020-02-29
8 $ ?2 dadd 2020-02-30 0mo
9 2020-02-29
10 $ ?2 dadd 2020-02-30 0y
11 2020-02-29
12 $
13
14 ## dadd.094.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dadd 2020-02-30 0d
3 2020-02-29
4 $ ?2 dadd 2020-02-30 0b
5 2020-02-29
6 $ ?2 dadd 2020-02-30 0w
7 2020-02-29
8 $ ?2 dadd 2020-02-30 0mo
9 2020-02-29
10 $ ?2 dadd 2020-02-30 0y
11 2020-02-29
12 $
13
14 ## dadd.094.ctst ends here
+0
-15
test/dadd.095.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dadd 2032-02-30 0d
3 2032-02-29
4 $ ?2 dadd 2032-02-30 0b
5 2032-02-29
6 $ ?2 dadd 2032-02-30 0w
7 2032-02-29
8 $ ?2 dadd 2032-02-30 0mo
9 2032-02-29
10 $ ?2 dadd 2032-02-30 0y
11 2032-02-29
12 $
13
14 ## dadd.094.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dadd 2032-02-30 0d
3 2032-02-29
4 $ ?2 dadd 2032-02-30 0b
5 2032-02-29
6 $ ?2 dadd 2032-02-30 0w
7 2032-02-29
8 $ ?2 dadd 2032-02-30 0mo
9 2032-02-29
10 $ ?2 dadd 2032-02-30 0y
11 2032-02-29
12 $
13
14 ## dadd.094.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -i %Y 2032 +1d
3 2032-01-01
4 $ dadd -i %Y 2018 +20d
5 2018-01-20
6 $
7
8 ## dadd.096.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -i %Y 2032 +1d -f ymcw
3 2032-01-01-04
4 $ dadd -i %Y 2018 +20d -f ymcw
5 2018-01-03-06
6 $
7
8 ## dadd.097.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -Ei "%Y %b" +1d <<EOF
3 Invalid line
4 2010 Mar
5 2010 Mar 04
6 2010 Apr
7 EOF
8
9 2010-03-01
10
11 2010-04-01
12 $
13
14 ## dadd.098.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-01-31 +1d1mo
3 2012-03-01
4 $ dadd 2012-01-31 +1mo1d
5 2012-03-01
6 $ dadd 2012-01-31 -1d+1mo
7 2012-02-29
8 $ dadd 2012-01-31 +1mo-1d
9 2012-02-28
10 $
11
12 ## dadd.099.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2011-05-01 -0b
3 2011-05-01
4 $ dadd 2011-05-01 -1b
5 2011-04-29
6 $ dadd 2011-05-01 -2b
7 2011-04-28
8 $ dadd 2011-05-01 -3b
9 2011-04-27
10 $ dadd 2011-05-01 -4b
11 2011-04-26
12 $ dadd 2011-05-01 -5b
13 2011-04-25
14 $ dadd 2011-05-01 -6b
15 2011-04-22
16 $ dadd 2011-05-01 +0b
17 2011-05-01
18 $ dadd 2011-05-01 +1b
19 2011-05-02
20 $ dadd 2011-05-01 +2b
21 2011-05-03
22 $ dadd 2011-05-01 +3b
23 2011-05-04
24 $ dadd 2011-05-01 +4b
25 2011-05-05
26 $ dadd 2011-05-01 +5b
27 2011-05-06
28 $ dadd 2011-05-01 +6b
29 2011-05-09
30 $
31
32 ## dadd.100.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2021-09-00 -0d
3 2021-09-00
4 $ dadd 2021-09-00 -1d
5 2021-08-31
6 $ dadd 2021-11-00 -0b
7 2021-11-00
8 $ dadd 2021-11-00 -1b
9 2021-10-29
10 $
11
12 ## dadd.101.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2021-00-00 -0d
3 2021-00-00
4 $ dadd 2021-00-00 -1d
5 2020-12-31
6 $ dadd 2021-00-00 -0b
7 2021-00-00
8 $ dadd 2021-00-00 -1b
9 2020-12-31
10 $
11
12 ## dadd.102.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2021-000 -0d
3 2021-000
4 $ dadd 2021-000 -1d
5 2020-366
6 $ dadd 2021-000 -0b
7 2021-000
8 $ dadd 2021-000 -1b
9 2020-366
10 $
11
12 ## dadd.103.ctst ends here
+0
-7
test/dconv.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-03-01
3 2012-03-01
4 $
5
6 ## dconv.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-03-01
3 2012-03-01
4 $
5
6 ## dconv.1.ctst ends here
+0
-7
test/dconv.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "%d/%b/%y" 01/Mar/12
3 2012-03-01
4 $
5
6 ## dconv.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "%d/%b/%y" 01/Mar/12
3 2012-03-01
4 $
5
6 ## dconv.2.ctst ends here
+0
-7
test/dconv.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "%d/%b/%y" 2012-03-01
3 01/Mar/12
4 $
5
6 ## dconv.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "%d/%b/%y" 2012-03-01
3 01/Mar/12
4 $
5
6 ## dconv.3.ctst ends here
+0
-7
test/dconv.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "%d/%b/%y" -i "%OY %Om %Od" "MCMXCVIII IX XVII"
3 17/Sep/98
4 $
5
6 ## dconv.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "%d/%b/%y" -i "%OY %Om %Od" "MCMXCVIII IX XVII"
3 17/Sep/98
4 $
5
6 ## dconv.4.ctst ends here
+0
-7
test/dconv.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "%d/%b/%y" -f "%OY %Om %Od" 17/Sep/98
3 MCMXCVIII IX XVII
4 $
5
6 ## dconv.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "%d/%b/%y" -f "%OY %Om %Od" 17/Sep/98
3 MCMXCVIII IX XVII
4 $
5
6 ## dconv.5.ctst ends here
+0
-7
test/dconv.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "%Y-%jb" "2010-03-01b"
3 2010-042b
4 $
5
6 ## dconv.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "%Y-%jb" "2010-03-01b"
3 2010-042b
4 $
5
6 ## dconv.6.ctst ends here
+0
-7
test/dconv.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "%Y-%jb" "2012-03-02b"
3 2012-045b
4 $
5
6 ## dconv.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "%Y-%jb" "2012-03-02b"
3 2012-045b
4 $
5
6 ## dconv.7.ctst ends here
+0
-7
test/dconv.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "%Y-%jb" "2012-05-02b"
3 2012-088b
4 $
5
6 ## dconv.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "%Y-%jb" "2012-05-02b"
3 2012-088b
4 $
5
6 ## dconv.8.ctst ends here
+0
-81
test/dconv.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "ymd" -S -i "%d/%b/%Y" <<EOF
3 EONIA 06/Oct/2011 0.947
4 EURIBOR1W 06/Oct/2011 1.155
5 EURIBOR1W_365 06/Oct/2011 1.171
6 EURIBOR2W 06/Oct/2011 1.223
7 EURIBOR2W_365 06/Oct/2011 1.240
8 EURIBOR3W 06/Oct/2011 1.289
9 EURIBOR3W_365 06/Oct/2011 1.307
10 EURIBOR1M 06/Oct/2011 1.353
11 EURIBOR1M_365 06/Oct/2011 1.372
12 EURIBOR2M 06/Oct/2011 1.425
13 EURIBOR2M_365 06/Oct/2011 1.445
14 EURIBOR3M 06/Oct/2011 1.556
15 EURIBOR3M_365 06/Oct/2011 1.578
16 EURIBOR4M 06/Oct/2011 1.611
17 EURIBOR4M_365 06/Oct/2011 1.633
18 EURIBOR5M 06/Oct/2011 1.675
19 EURIBOR5M_365 06/Oct/2011 1.698
20 EURIBOR6M 06/Oct/2011 1.755
21 EURIBOR6M_365 06/Oct/2011 1.779
22 EURIBOR7M 06/Oct/2011 1.813
23 EURIBOR7M_365 06/Oct/2011 1.838
24 EURIBOR8M 06/Oct/2011 1.861
25 EURIBOR8M_365 06/Oct/2011 1.887
26 EURIBOR9M 06/Oct/2011 1.918
27 EURIBOR9M_365 06/Oct/2011 1.945
28 EURIBOR10M 06/Oct/2011 1.966
29 EURIBOR10M_365 06/Oct/2011 1.993
30 EURIBOR11M 06/Oct/2011 2.034
31 EURIBOR11M_365 06/Oct/2011 2.062
32 EURIBOR12M 06/Oct/2011 2.082
33 EURIBOR12M_365 06/Oct/2011 2.111
34 EUREPO1W 06/Oct/2011 0.687
35 EUREPO2W 06/Oct/2011 0.658
36 EUREPO1M 06/Oct/2011 0.626
37 EUREPO3M 06/Oct/2011 0.568
38 EUREPO6M 06/Oct/2011 0.518
39 EUREPO12M 06/Oct/2011 0.501
40 EOF
41 EONIA 2011-10-06 0.947
42 EURIBOR1W 2011-10-06 1.155
43 EURIBOR1W_365 2011-10-06 1.171
44 EURIBOR2W 2011-10-06 1.223
45 EURIBOR2W_365 2011-10-06 1.240
46 EURIBOR3W 2011-10-06 1.289
47 EURIBOR3W_365 2011-10-06 1.307
48 EURIBOR1M 2011-10-06 1.353
49 EURIBOR1M_365 2011-10-06 1.372
50 EURIBOR2M 2011-10-06 1.425
51 EURIBOR2M_365 2011-10-06 1.445
52 EURIBOR3M 2011-10-06 1.556
53 EURIBOR3M_365 2011-10-06 1.578
54 EURIBOR4M 2011-10-06 1.611
55 EURIBOR4M_365 2011-10-06 1.633
56 EURIBOR5M 2011-10-06 1.675
57 EURIBOR5M_365 2011-10-06 1.698
58 EURIBOR6M 2011-10-06 1.755
59 EURIBOR6M_365 2011-10-06 1.779
60 EURIBOR7M 2011-10-06 1.813
61 EURIBOR7M_365 2011-10-06 1.838
62 EURIBOR8M 2011-10-06 1.861
63 EURIBOR8M_365 2011-10-06 1.887
64 EURIBOR9M 2011-10-06 1.918
65 EURIBOR9M_365 2011-10-06 1.945
66 EURIBOR10M 2011-10-06 1.966
67 EURIBOR10M_365 2011-10-06 1.993
68 EURIBOR11M 2011-10-06 2.034
69 EURIBOR11M_365 2011-10-06 2.062
70 EURIBOR12M 2011-10-06 2.082
71 EURIBOR12M_365 2011-10-06 2.111
72 EUREPO1W 2011-10-06 0.687
73 EUREPO2W 2011-10-06 0.658
74 EUREPO1M 2011-10-06 0.626
75 EUREPO3M 2011-10-06 0.568
76 EUREPO6M 2011-10-06 0.518
77 EUREPO12M 2011-10-06 0.501
78 $
79
80 ## dconv.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "ymd" -S -i "%d/%b/%Y" <<EOF
3 EONIA 06/Oct/2011 0.947
4 EURIBOR1W 06/Oct/2011 1.155
5 EURIBOR1W_365 06/Oct/2011 1.171
6 EURIBOR2W 06/Oct/2011 1.223
7 EURIBOR2W_365 06/Oct/2011 1.240
8 EURIBOR3W 06/Oct/2011 1.289
9 EURIBOR3W_365 06/Oct/2011 1.307
10 EURIBOR1M 06/Oct/2011 1.353
11 EURIBOR1M_365 06/Oct/2011 1.372
12 EURIBOR2M 06/Oct/2011 1.425
13 EURIBOR2M_365 06/Oct/2011 1.445
14 EURIBOR3M 06/Oct/2011 1.556
15 EURIBOR3M_365 06/Oct/2011 1.578
16 EURIBOR4M 06/Oct/2011 1.611
17 EURIBOR4M_365 06/Oct/2011 1.633
18 EURIBOR5M 06/Oct/2011 1.675
19 EURIBOR5M_365 06/Oct/2011 1.698
20 EURIBOR6M 06/Oct/2011 1.755
21 EURIBOR6M_365 06/Oct/2011 1.779
22 EURIBOR7M 06/Oct/2011 1.813
23 EURIBOR7M_365 06/Oct/2011 1.838
24 EURIBOR8M 06/Oct/2011 1.861
25 EURIBOR8M_365 06/Oct/2011 1.887
26 EURIBOR9M 06/Oct/2011 1.918
27 EURIBOR9M_365 06/Oct/2011 1.945
28 EURIBOR10M 06/Oct/2011 1.966
29 EURIBOR10M_365 06/Oct/2011 1.993
30 EURIBOR11M 06/Oct/2011 2.034
31 EURIBOR11M_365 06/Oct/2011 2.062
32 EURIBOR12M 06/Oct/2011 2.082
33 EURIBOR12M_365 06/Oct/2011 2.111
34 EUREPO1W 06/Oct/2011 0.687
35 EUREPO2W 06/Oct/2011 0.658
36 EUREPO1M 06/Oct/2011 0.626
37 EUREPO3M 06/Oct/2011 0.568
38 EUREPO6M 06/Oct/2011 0.518
39 EUREPO12M 06/Oct/2011 0.501
40 EOF
41 EONIA 2011-10-06 0.947
42 EURIBOR1W 2011-10-06 1.155
43 EURIBOR1W_365 2011-10-06 1.171
44 EURIBOR2W 2011-10-06 1.223
45 EURIBOR2W_365 2011-10-06 1.240
46 EURIBOR3W 2011-10-06 1.289
47 EURIBOR3W_365 2011-10-06 1.307
48 EURIBOR1M 2011-10-06 1.353
49 EURIBOR1M_365 2011-10-06 1.372
50 EURIBOR2M 2011-10-06 1.425
51 EURIBOR2M_365 2011-10-06 1.445
52 EURIBOR3M 2011-10-06 1.556
53 EURIBOR3M_365 2011-10-06 1.578
54 EURIBOR4M 2011-10-06 1.611
55 EURIBOR4M_365 2011-10-06 1.633
56 EURIBOR5M 2011-10-06 1.675
57 EURIBOR5M_365 2011-10-06 1.698
58 EURIBOR6M 2011-10-06 1.755
59 EURIBOR6M_365 2011-10-06 1.779
60 EURIBOR7M 2011-10-06 1.813
61 EURIBOR7M_365 2011-10-06 1.838
62 EURIBOR8M 2011-10-06 1.861
63 EURIBOR8M_365 2011-10-06 1.887
64 EURIBOR9M 2011-10-06 1.918
65 EURIBOR9M_365 2011-10-06 1.945
66 EURIBOR10M 2011-10-06 1.966
67 EURIBOR10M_365 2011-10-06 1.993
68 EURIBOR11M 2011-10-06 2.034
69 EURIBOR11M_365 2011-10-06 2.062
70 EURIBOR12M 2011-10-06 2.082
71 EURIBOR12M_365 2011-10-06 2.111
72 EUREPO1W 2011-10-06 0.687
73 EUREPO2W 2011-10-06 0.658
74 EUREPO1M 2011-10-06 0.626
75 EUREPO3M 2011-10-06 0.568
76 EUREPO6M 2011-10-06 0.518
77 EUREPO12M 2011-10-06 0.501
78 $
79
80 ## dconv.9.ctst ends here
+0
-81
test/dconv.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "ymd" -S -i "%d/%b/%Y" <<EOF
3 06/Oct/2011 0.947
4 06/Oct/2011 1.155
5 06/Oct/2011 1.171
6 06/Oct/2011 1.223
7 06/Oct/2011 1.240
8 06/Oct/2011 1.289
9 06/Oct/2011 1.307
10 06/Oct/2011 1.353
11 06/Oct/2011 1.372
12 06/Oct/2011 1.425
13 06/Oct/2011 1.445
14 06/Oct/2011 1.556
15 06/Oct/2011 1.578
16 06/Oct/2011 1.611
17 06/Oct/2011 1.633
18 06/Oct/2011 1.675
19 06/Oct/2011 1.698
20 06/Oct/2011 1.755
21 06/Oct/2011 1.779
22 06/Oct/2011 1.813
23 06/Oct/2011 1.838
24 06/Oct/2011 1.861
25 06/Oct/2011 1.887
26 06/Oct/2011 1.918
27 06/Oct/2011 1.945
28 06/Oct/2011 1.966
29 06/Oct/2011 1.993
30 06/Oct/2011 2.034
31 06/Oct/2011 2.062
32 06/Oct/2011 2.082
33 06/Oct/2011 2.111
34 06/Oct/2011 0.687
35 06/Oct/2011 0.658
36 06/Oct/2011 0.626
37 06/Oct/2011 0.568
38 06/Oct/2011 0.518
39 06/Oct/2011 0.501
40 EOF
41 2011-10-06 0.947
42 2011-10-06 1.155
43 2011-10-06 1.171
44 2011-10-06 1.223
45 2011-10-06 1.240
46 2011-10-06 1.289
47 2011-10-06 1.307
48 2011-10-06 1.353
49 2011-10-06 1.372
50 2011-10-06 1.425
51 2011-10-06 1.445
52 2011-10-06 1.556
53 2011-10-06 1.578
54 2011-10-06 1.611
55 2011-10-06 1.633
56 2011-10-06 1.675
57 2011-10-06 1.698
58 2011-10-06 1.755
59 2011-10-06 1.779
60 2011-10-06 1.813
61 2011-10-06 1.838
62 2011-10-06 1.861
63 2011-10-06 1.887
64 2011-10-06 1.918
65 2011-10-06 1.945
66 2011-10-06 1.966
67 2011-10-06 1.993
68 2011-10-06 2.034
69 2011-10-06 2.062
70 2011-10-06 2.082
71 2011-10-06 2.111
72 2011-10-06 0.687
73 2011-10-06 0.658
74 2011-10-06 0.626
75 2011-10-06 0.568
76 2011-10-06 0.518
77 2011-10-06 0.501
78 $
79
80 ## dconv.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "ymd" -S -i "%d/%b/%Y" <<EOF
3 06/Oct/2011 0.947
4 06/Oct/2011 1.155
5 06/Oct/2011 1.171
6 06/Oct/2011 1.223
7 06/Oct/2011 1.240
8 06/Oct/2011 1.289
9 06/Oct/2011 1.307
10 06/Oct/2011 1.353
11 06/Oct/2011 1.372
12 06/Oct/2011 1.425
13 06/Oct/2011 1.445
14 06/Oct/2011 1.556
15 06/Oct/2011 1.578
16 06/Oct/2011 1.611
17 06/Oct/2011 1.633
18 06/Oct/2011 1.675
19 06/Oct/2011 1.698
20 06/Oct/2011 1.755
21 06/Oct/2011 1.779
22 06/Oct/2011 1.813
23 06/Oct/2011 1.838
24 06/Oct/2011 1.861
25 06/Oct/2011 1.887
26 06/Oct/2011 1.918
27 06/Oct/2011 1.945
28 06/Oct/2011 1.966
29 06/Oct/2011 1.993
30 06/Oct/2011 2.034
31 06/Oct/2011 2.062
32 06/Oct/2011 2.082
33 06/Oct/2011 2.111
34 06/Oct/2011 0.687
35 06/Oct/2011 0.658
36 06/Oct/2011 0.626
37 06/Oct/2011 0.568
38 06/Oct/2011 0.518
39 06/Oct/2011 0.501
40 EOF
41 2011-10-06 0.947
42 2011-10-06 1.155
43 2011-10-06 1.171
44 2011-10-06 1.223
45 2011-10-06 1.240
46 2011-10-06 1.289
47 2011-10-06 1.307
48 2011-10-06 1.353
49 2011-10-06 1.372
50 2011-10-06 1.425
51 2011-10-06 1.445
52 2011-10-06 1.556
53 2011-10-06 1.578
54 2011-10-06 1.611
55 2011-10-06 1.633
56 2011-10-06 1.675
57 2011-10-06 1.698
58 2011-10-06 1.755
59 2011-10-06 1.779
60 2011-10-06 1.813
61 2011-10-06 1.838
62 2011-10-06 1.861
63 2011-10-06 1.887
64 2011-10-06 1.918
65 2011-10-06 1.945
66 2011-10-06 1.966
67 2011-10-06 1.993
68 2011-10-06 2.034
69 2011-10-06 2.062
70 2011-10-06 2.082
71 2011-10-06 2.111
72 2011-10-06 0.687
73 2011-10-06 0.658
74 2011-10-06 0.626
75 2011-10-06 0.568
76 2011-10-06 0.518
77 2011-10-06 0.501
78 $
79
80 ## dconv.10.ctst ends here
+0
-9
test/dconv.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S -i "%Y%m%d" <<EOF
3 this line was created on 20120303.
4 EOF
5 this line was created on 2012-03-03.
6 $
7
8 ## dconv.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S -i "%Y%m%d" <<EOF
3 this line was created on 20120303.
4 EOF
5 this line was created on 2012-03-03.
6 $
7
8 ## dconv.11.ctst ends here
+0
-67
test/dconv.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S -i "%Y-%m-%d" -i "%d %b %Y" -i "%d-%b-%Y" <<EOF
3 1 week (act/360) 2011-10-12 1.186
4 1 week (act/365) 2011-10-12 1.202
5 2 week (act/360) 2011-10-12 1.245
6 2 week (act/365) 2011-10-12 1.262
7 3 week (act/360) 2011-10-12 1.303
8 3 week (act/365) 2011-10-12 1.321
9 1 month (act/360) 2011-10-12 1.365
10 1 month (act/365) 2011-10-12 1.384
11 2 month (act/360) 2011-10-12 1.434
12 2 month (act/365) 2011-10-12 1.454
13 3 month (act/360) 2011-10-12 1.571
14 3 month (act/365) 2011-10-12 1.593
15 4 month (act/360) 2011-10-12 1.627
16 4 month (act/365) 2011-10-12 1.650
17 5 month (act/360) 2011-10-12 1.691
18 5 month (act/365) 2011-10-12 1.714
19 6 month (act/360) 2011-10-12 1.774
20 6 month (act/365) 2011-10-12 1.799
21 7 month (act/360) 2011-10-12 1.829
22 7 month (act/365) 2011-10-12 1.854
23 8 month (act/360) 2011-10-12 1.881
24 8 month (act/365) 2011-10-12 1.907
25 9 month (act/360) 2011-10-12 1.937
26 9 month (act/365) 2011-10-12 1.964
27 10 month (act/360) 2011-10-12 1.988
28 10 month (act/365) 2011-10-12 2.016
29 11 month (act/360) 2011-10-12 2.055
30 11 month (act/365) 2011-10-12 2.084
31 12 month (act/360) 2011-10-12 2.109
32 12 month (act/365) 2011-10-12 2.138
33 EOF
34 1 week (act/360) 2011-10-12 1.186
35 1 week (act/365) 2011-10-12 1.202
36 2 week (act/360) 2011-10-12 1.245
37 2 week (act/365) 2011-10-12 1.262
38 3 week (act/360) 2011-10-12 1.303
39 3 week (act/365) 2011-10-12 1.321
40 1 month (act/360) 2011-10-12 1.365
41 1 month (act/365) 2011-10-12 1.384
42 2 month (act/360) 2011-10-12 1.434
43 2 month (act/365) 2011-10-12 1.454
44 3 month (act/360) 2011-10-12 1.571
45 3 month (act/365) 2011-10-12 1.593
46 4 month (act/360) 2011-10-12 1.627
47 4 month (act/365) 2011-10-12 1.650
48 5 month (act/360) 2011-10-12 1.691
49 5 month (act/365) 2011-10-12 1.714
50 6 month (act/360) 2011-10-12 1.774
51 6 month (act/365) 2011-10-12 1.799
52 7 month (act/360) 2011-10-12 1.829
53 7 month (act/365) 2011-10-12 1.854
54 8 month (act/360) 2011-10-12 1.881
55 8 month (act/365) 2011-10-12 1.907
56 9 month (act/360) 2011-10-12 1.937
57 9 month (act/365) 2011-10-12 1.964
58 10 month (act/360) 2011-10-12 1.988
59 10 month (act/365) 2011-10-12 2.016
60 11 month (act/360) 2011-10-12 2.055
61 11 month (act/365) 2011-10-12 2.084
62 12 month (act/360) 2011-10-12 2.109
63 12 month (act/365) 2011-10-12 2.138
64 $
65
66 ## dconv.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S -i "%Y-%m-%d" -i "%d %b %Y" -i "%d-%b-%Y" <<EOF
3 1 week (act/360) 2011-10-12 1.186
4 1 week (act/365) 2011-10-12 1.202
5 2 week (act/360) 2011-10-12 1.245
6 2 week (act/365) 2011-10-12 1.262
7 3 week (act/360) 2011-10-12 1.303
8 3 week (act/365) 2011-10-12 1.321
9 1 month (act/360) 2011-10-12 1.365
10 1 month (act/365) 2011-10-12 1.384
11 2 month (act/360) 2011-10-12 1.434
12 2 month (act/365) 2011-10-12 1.454
13 3 month (act/360) 2011-10-12 1.571
14 3 month (act/365) 2011-10-12 1.593
15 4 month (act/360) 2011-10-12 1.627
16 4 month (act/365) 2011-10-12 1.650
17 5 month (act/360) 2011-10-12 1.691
18 5 month (act/365) 2011-10-12 1.714
19 6 month (act/360) 2011-10-12 1.774
20 6 month (act/365) 2011-10-12 1.799
21 7 month (act/360) 2011-10-12 1.829
22 7 month (act/365) 2011-10-12 1.854
23 8 month (act/360) 2011-10-12 1.881
24 8 month (act/365) 2011-10-12 1.907
25 9 month (act/360) 2011-10-12 1.937
26 9 month (act/365) 2011-10-12 1.964
27 10 month (act/360) 2011-10-12 1.988
28 10 month (act/365) 2011-10-12 2.016
29 11 month (act/360) 2011-10-12 2.055
30 11 month (act/365) 2011-10-12 2.084
31 12 month (act/360) 2011-10-12 2.109
32 12 month (act/365) 2011-10-12 2.138
33 EOF
34 1 week (act/360) 2011-10-12 1.186
35 1 week (act/365) 2011-10-12 1.202
36 2 week (act/360) 2011-10-12 1.245
37 2 week (act/365) 2011-10-12 1.262
38 3 week (act/360) 2011-10-12 1.303
39 3 week (act/365) 2011-10-12 1.321
40 1 month (act/360) 2011-10-12 1.365
41 1 month (act/365) 2011-10-12 1.384
42 2 month (act/360) 2011-10-12 1.434
43 2 month (act/365) 2011-10-12 1.454
44 3 month (act/360) 2011-10-12 1.571
45 3 month (act/365) 2011-10-12 1.593
46 4 month (act/360) 2011-10-12 1.627
47 4 month (act/365) 2011-10-12 1.650
48 5 month (act/360) 2011-10-12 1.691
49 5 month (act/365) 2011-10-12 1.714
50 6 month (act/360) 2011-10-12 1.774
51 6 month (act/365) 2011-10-12 1.799
52 7 month (act/360) 2011-10-12 1.829
53 7 month (act/365) 2011-10-12 1.854
54 8 month (act/360) 2011-10-12 1.881
55 8 month (act/365) 2011-10-12 1.907
56 9 month (act/360) 2011-10-12 1.937
57 9 month (act/365) 2011-10-12 1.964
58 10 month (act/360) 2011-10-12 1.988
59 10 month (act/365) 2011-10-12 2.016
60 11 month (act/360) 2011-10-12 2.055
61 11 month (act/365) 2011-10-12 2.084
62 12 month (act/360) 2011-10-12 2.109
63 12 month (act/365) 2011-10-12 2.138
64 $
65
66 ## dconv.12.ctst ends here
+0
-9
test/dconv.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "%Y%d%m" <<EOF
3 this line was created on 20122303.
4 EOF
5 2012-03-23
6 $
7
8 ## dconv.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "%Y%d%m" <<EOF
3 this line was created on 20122303.
4 EOF
5 2012-03-23
6 $
7
8 ## dconv.13.ctst ends here
+0
-10
test/dconv.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dconv -i "%b%Y%d" <<EOF
3 this line was created on May201223 and should match
4 whereas this line Maybe shouldn't
5 EOF
6 2012-05-23
7 $
8
9 ## dconv.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dconv -i "%b%Y%d" <<EOF
3 this line was created on May201223 and should match
4 whereas this line Maybe shouldn't
5 EOF
6 2012-05-23
7 $
8
9 ## dconv.14.ctst ends here
+0
-11
test/dconv.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S -i "%y%b%d" <<EOF
3 this line was created on 12May23 and should match
4 whereas this line 12Maybe shouldn't
5 EOF
6 this line was created on 2012-05-23 and should match
7 whereas this line 12Maybe shouldn't
8 $
9
10 ## dconv.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S -i "%y%b%d" <<EOF
3 this line was created on 12May23 and should match
4 whereas this line 12Maybe shouldn't
5 EOF
6 this line was created on 2012-05-23 and should match
7 whereas this line 12Maybe shouldn't
8 $
9
10 ## dconv.15.ctst ends here
+0
-10
test/dconv.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dconv -i "%a%y%m%d" <<EOF
3 this line was created on Thu111013 and should match
4 whereas this line Thu1110 shouldn't
5 EOF
6 2011-10-13
7 $
8
9 ## dconv.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dconv -i "%a%y%m%d" <<EOF
3 this line was created on Thu111013 and should match
4 whereas this line Thu1110 shouldn't
5 EOF
6 2011-10-13
7 $
8
9 ## dconv.16.ctst ends here
+0
-39
test/dconv.017.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%dth of %b %Y' -f '%b %dth %Y' <<EOF
3 1st of Oct 2011
4 2nd of Oct 2011
5 3rd of Oct 2011
6 4th of Oct 2011
7 10th of Oct 2011
8 11th of Oct 2011
9 12th of Oct 2011
10 13th of Oct 2011
11 14th of Oct 2011
12 20th of Oct 2011
13 21st of Oct 2011
14 22nd of Oct 2011
15 23rd of Oct 2011
16 24th of Oct 2011
17 30th of Oct 2011
18 31st of Oct 2011
19 EOF
20 Oct 1st 2011
21 Oct 2nd 2011
22 Oct 3rd 2011
23 Oct 4th 2011
24 Oct 10th 2011
25 Oct 11th 2011
26 Oct 12th 2011
27 Oct 13th 2011
28 Oct 14th 2011
29 Oct 20th 2011
30 Oct 21st 2011
31 Oct 22nd 2011
32 Oct 23rd 2011
33 Oct 24th 2011
34 Oct 30th 2011
35 Oct 31st 2011
36 $
37
38 ## dconv.17.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%dth of %b %Y' -f '%b %dth %Y' <<EOF
3 1st of Oct 2011
4 2nd of Oct 2011
5 3rd of Oct 2011
6 4th of Oct 2011
7 10th of Oct 2011
8 11th of Oct 2011
9 12th of Oct 2011
10 13th of Oct 2011
11 14th of Oct 2011
12 20th of Oct 2011
13 21st of Oct 2011
14 22nd of Oct 2011
15 23rd of Oct 2011
16 24th of Oct 2011
17 30th of Oct 2011
18 31st of Oct 2011
19 EOF
20 Oct 1st 2011
21 Oct 2nd 2011
22 Oct 3rd 2011
23 Oct 4th 2011
24 Oct 10th 2011
25 Oct 11th 2011
26 Oct 12th 2011
27 Oct 13th 2011
28 Oct 14th 2011
29 Oct 20th 2011
30 Oct 21st 2011
31 Oct 22nd 2011
32 Oct 23rd 2011
33 Oct 24th 2011
34 Oct 30th 2011
35 Oct 31st 2011
36 $
37
38 ## dconv.17.ctst ends here
+0
-39
test/dconv.018.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%dth%m%Y' -f '%b %dth %Y' <<EOF
3 1st102011
4 2nd102011
5 3rd102011
6 4th102011
7 10th102011
8 11th102011
9 12th102011
10 13th102011
11 14th102011
12 20th102011
13 21st102011
14 22nd102011
15 23rd102011
16 24th102011
17 30th102011
18 31st102011
19 EOF
20 Oct 1st 2011
21 Oct 2nd 2011
22 Oct 3rd 2011
23 Oct 4th 2011
24 Oct 10th 2011
25 Oct 11th 2011
26 Oct 12th 2011
27 Oct 13th 2011
28 Oct 14th 2011
29 Oct 20th 2011
30 Oct 21st 2011
31 Oct 22nd 2011
32 Oct 23rd 2011
33 Oct 24th 2011
34 Oct 30th 2011
35 Oct 31st 2011
36 $
37
38 ## dconv.18.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%dth%m%Y' -f '%b %dth %Y' <<EOF
3 1st102011
4 2nd102011
5 3rd102011
6 4th102011
7 10th102011
8 11th102011
9 12th102011
10 13th102011
11 14th102011
12 20th102011
13 21st102011
14 22nd102011
15 23rd102011
16 24th102011
17 30th102011
18 31st102011
19 EOF
20 Oct 1st 2011
21 Oct 2nd 2011
22 Oct 3rd 2011
23 Oct 4th 2011
24 Oct 10th 2011
25 Oct 11th 2011
26 Oct 12th 2011
27 Oct 13th 2011
28 Oct 14th 2011
29 Oct 20th 2011
30 Oct 21st 2011
31 Oct 22nd 2011
32 Oct 23rd 2011
33 Oct 24th 2011
34 Oct 30th 2011
35 Oct 31st 2011
36 $
37
38 ## dconv.18.ctst ends here
+0
-7
test/dconv.019.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "%Y %db %b" "2010-03-01b"
3 2010 01b Mar
4 $
5
6 ## dconv.19.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "%Y %db %b" "2010-03-01b"
3 2010 01b Mar
4 $
5
6 ## dconv.19.ctst ends here
+0
-7
test/dconv.020.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "%dthb business day in %B %Y" "2010-03-01b"
3 1st business day in March 2010
4 $
5
6 ## dconv.20.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "%dthb business day in %B %Y" "2010-03-01b"
3 1st business day in March 2010
4 $
5
6 ## dconv.20.ctst ends here
+0
-7
test/dconv.021.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%qth quarter of %Y' '2010-03-01'
3 1st quarter of 2010
4 $
5
6 ## dconv.21.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%qth quarter of %Y' '2010-03-01'
3 1st quarter of 2010
4 $
5
6 ## dconv.21.ctst ends here
+0
-7
test/dconv.022.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%Q' -i '%Y %qth quarter' '2010 2nd quarter'
3 2010-Q2
4 $
5
6 ## dconv.22.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%Q' -i '%Y %qth quarter' '2010 2nd quarter'
3 2010-Q2
4 $
5
6 ## dconv.22.ctst ends here
+0
-27
test/dconv.023.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%m-%db' -f 'ymd' <<EOF
3 2010-03-01b
4 2010-03-02b
5 2010-03-03b
6 2010-03-04b
7 2010-03-05b
8 2010-03-06b
9 2010-03-07b
10 2010-03-08b
11 2010-03-09b
12 2010-03-10b
13 EOF
14 2010-03-01
15 2010-03-02
16 2010-03-03
17 2010-03-04
18 2010-03-05
19 2010-03-08
20 2010-03-09
21 2010-03-10
22 2010-03-11
23 2010-03-12
24 $
25
26 ## dconv.23.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%m-%db' -f 'ymd' <<EOF
3 2010-03-01b
4 2010-03-02b
5 2010-03-03b
6 2010-03-04b
7 2010-03-05b
8 2010-03-06b
9 2010-03-07b
10 2010-03-08b
11 2010-03-09b
12 2010-03-10b
13 EOF
14 2010-03-01
15 2010-03-02
16 2010-03-03
17 2010-03-04
18 2010-03-05
19 2010-03-08
20 2010-03-09
21 2010-03-10
22 2010-03-11
23 2010-03-12
24 $
25
26 ## dconv.23.ctst ends here
+0
-27
test/dconv.024.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%m-%db' -f '%F' <<EOF
3 2010-03-01
4 2010-03-02
5 2010-03-03
6 2010-03-04
7 2010-03-05
8 2010-03-06
9 2010-03-07
10 2010-03-08
11 2010-03-09
12 2010-03-10
13 EOF
14 2010-03-01
15 2010-03-02
16 2010-03-03
17 2010-03-04
18 2010-03-05
19 2010-03-08
20 2010-03-09
21 2010-03-10
22 2010-03-11
23 2010-03-12
24 $
25
26 ## dconv.24.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%m-%db' -f '%F' <<EOF
3 2010-03-01
4 2010-03-02
5 2010-03-03
6 2010-03-04
7 2010-03-05
8 2010-03-06
9 2010-03-07
10 2010-03-08
11 2010-03-09
12 2010-03-10
13 EOF
14 2010-03-01
15 2010-03-02
16 2010-03-03
17 2010-03-04
18 2010-03-05
19 2010-03-08
20 2010-03-09
21 2010-03-10
22 2010-03-11
23 2010-03-12
24 $
25
26 ## dconv.24.ctst ends here
+0
-27
test/dconv.025.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%m-%db' <<EOF
3 2010-03-01b
4 2010-03-02b
5 2010-03-03b
6 2010-03-04b
7 2010-03-05b
8 2010-03-06b
9 2010-03-07b
10 2010-03-08b
11 2010-03-09b
12 2010-03-10b
13 EOF
14 2010-03-01b
15 2010-03-02b
16 2010-03-03b
17 2010-03-04b
18 2010-03-05b
19 2010-03-06b
20 2010-03-07b
21 2010-03-08b
22 2010-03-09b
23 2010-03-10b
24 $
25
26 ## dconv.25.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%m-%db' <<EOF
3 2010-03-01b
4 2010-03-02b
5 2010-03-03b
6 2010-03-04b
7 2010-03-05b
8 2010-03-06b
9 2010-03-07b
10 2010-03-08b
11 2010-03-09b
12 2010-03-10b
13 EOF
14 2010-03-01b
15 2010-03-02b
16 2010-03-03b
17 2010-03-04b
18 2010-03-05b
19 2010-03-06b
20 2010-03-07b
21 2010-03-08b
22 2010-03-09b
23 2010-03-10b
24 $
25
26 ## dconv.25.ctst ends here
+0
-27
test/dconv.026.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%m-%db' <<EOF
3 2010-03-01
4 2010-03-02
5 2010-03-03
6 2010-03-04
7 2010-03-05
8 2010-03-06
9 2010-03-07
10 2010-03-08
11 2010-03-09
12 2010-03-10
13 EOF
14 2010-03-01b
15 2010-03-02b
16 2010-03-03b
17 2010-03-04b
18 2010-03-05b
19 2010-03-06b
20 2010-03-07b
21 2010-03-08b
22 2010-03-09b
23 2010-03-10b
24 $
25
26 ## dconv.26.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%m-%db' <<EOF
3 2010-03-01
4 2010-03-02
5 2010-03-03
6 2010-03-04
7 2010-03-05
8 2010-03-06
9 2010-03-07
10 2010-03-08
11 2010-03-09
12 2010-03-10
13 EOF
14 2010-03-01b
15 2010-03-02b
16 2010-03-03b
17 2010-03-04b
18 2010-03-05b
19 2010-03-06b
20 2010-03-07b
21 2010-03-08b
22 2010-03-09b
23 2010-03-10b
24 $
25
26 ## dconv.26.ctst ends here
+0
-27
test/dconv.027.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S -i '%Y-%m-%db' <<EOF
3 x 2010-03-01b y
4 x 2010-03-02b y
5 x 2010-03-03b y
6 x 2010-03-04b y
7 x 2010-03-05b y
8 x 2010-03-06b y
9 x 2010-03-07b y
10 x 2010-03-08b y
11 x 2010-03-09b y
12 x 2010-03-10b y
13 EOF
14 x 2010-03-01b y
15 x 2010-03-02b y
16 x 2010-03-03b y
17 x 2010-03-04b y
18 x 2010-03-05b y
19 x 2010-03-06b y
20 x 2010-03-07b y
21 x 2010-03-08b y
22 x 2010-03-09b y
23 x 2010-03-10b y
24 $
25
26 ## dconv.27.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S -i '%Y-%m-%db' <<EOF
3 x 2010-03-01b y
4 x 2010-03-02b y
5 x 2010-03-03b y
6 x 2010-03-04b y
7 x 2010-03-05b y
8 x 2010-03-06b y
9 x 2010-03-07b y
10 x 2010-03-08b y
11 x 2010-03-09b y
12 x 2010-03-10b y
13 EOF
14 x 2010-03-01b y
15 x 2010-03-02b y
16 x 2010-03-03b y
17 x 2010-03-04b y
18 x 2010-03-05b y
19 x 2010-03-06b y
20 x 2010-03-07b y
21 x 2010-03-08b y
22 x 2010-03-09b y
23 x 2010-03-10b y
24 $
25
26 ## dconv.27.ctst ends here
+0
-27
test/dconv.028.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S -i '%Y-%m-%db' <<EOF
3 x 2010-03-01 y
4 x 2010-03-02 y
5 x 2010-03-03 y
6 x 2010-03-04 y
7 x 2010-03-05 y
8 x 2010-03-06 y
9 x 2010-03-07 y
10 x 2010-03-08 y
11 x 2010-03-09 y
12 x 2010-03-10 y
13 EOF
14 x 2010-03-01b y
15 x 2010-03-02b y
16 x 2010-03-03b y
17 x 2010-03-04b y
18 x 2010-03-05b y
19 x 2010-03-06b y
20 x 2010-03-07b y
21 x 2010-03-08b y
22 x 2010-03-09b y
23 x 2010-03-10b y
24 $
25
26 ## dconv.28.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S -i '%Y-%m-%db' <<EOF
3 x 2010-03-01 y
4 x 2010-03-02 y
5 x 2010-03-03 y
6 x 2010-03-04 y
7 x 2010-03-05 y
8 x 2010-03-06 y
9 x 2010-03-07 y
10 x 2010-03-08 y
11 x 2010-03-09 y
12 x 2010-03-10 y
13 EOF
14 x 2010-03-01b y
15 x 2010-03-02b y
16 x 2010-03-03b y
17 x 2010-03-04b y
18 x 2010-03-05b y
19 x 2010-03-06b y
20 x 2010-03-07b y
21 x 2010-03-08b y
22 x 2010-03-09b y
23 x 2010-03-10b y
24 $
25
26 ## dconv.28.ctst ends here
+0
-6
test/dconv.029.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ignore-output dconv today
3 $
4
5 ## dconv.29.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ignore-output dconv today
3 $
4
5 ## dconv.29.ctst ends here
+0
-6
test/dconv.030.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ignore-output dconv date
3 $
4
5 ## dconv.30.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ignore-output dconv date
3 $
4
5 ## dconv.30.ctst ends here
+0
-9
test/dconv.031.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-1
3 2012-001
4 $ dconv -f '%F' 2012-001
5 2012-01-01
6 $
7
8 ## dconv.31.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-1
3 2012-001
4 $ dconv -f '%F' 2012-001
5 2012-01-01
6 $
7
8 ## dconv.31.ctst ends here
+0
-9
test/dconv.032.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-17
3 2012-017
4 $ dconv -f '%F' 2012-017
5 2012-01-17
6 $
7
8 ## dconv.32.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-17
3 2012-017
4 $ dconv -f '%F' 2012-017
5 2012-01-17
6 $
7
8 ## dconv.32.ctst ends here
+0
-9
test/dconv.033.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-31
3 2012-031
4 $ dconv -f '%F' 2012-031
5 2012-01-31
6 $
7
8 ## dconv.33.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-31
3 2012-031
4 $ dconv -f '%F' 2012-031
5 2012-01-31
6 $
7
8 ## dconv.33.ctst ends here
+0
-9
test/dconv.034.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-32
3 2012-032
4 $ dconv -f '%F' 2012-032
5 2012-02-01
6 $
7
8 ## dconv.34.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-32
3 2012-032
4 $ dconv -f '%F' 2012-032
5 2012-02-01
6 $
7
8 ## dconv.34.ctst ends here
+0
-9
test/dconv.035.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-49
3 2012-049
4 $ dconv -f '%F' 2012-049
5 2012-02-18
6 $
7
8 ## dconv.35.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-49
3 2012-049
4 $ dconv -f '%F' 2012-049
5 2012-02-18
6 $
7
8 ## dconv.35.ctst ends here
+0
-9
test/dconv.036.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-59
3 2012-059
4 $ dconv -f '%F' 2012-059
5 2012-02-28
6 $
7
8 ## dconv.36.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-59
3 2012-059
4 $ dconv -f '%F' 2012-059
5 2012-02-28
6 $
7
8 ## dconv.36.ctst ends here
+0
-9
test/dconv.037.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-60
3 2012-060
4 $ dconv -f '%F' 2012-060
5 2012-02-29
6 $
7
8 ## dconv.37.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-60
3 2012-060
4 $ dconv -f '%F' 2012-060
5 2012-02-29
6 $
7
8 ## dconv.37.ctst ends here
+0
-9
test/dconv.038.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-61
3 2012-061
4 $ dconv -f '%F' 2012-061
5 2012-03-01
6 $
7
8 ## dconv.38.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-61
3 2012-061
4 $ dconv -f '%F' 2012-061
5 2012-03-01
6 $
7
8 ## dconv.38.ctst ends here
+0
-9
test/dconv.039.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-365
3 2012-365
4 $ dconv -f '%F' 2012-365
5 2012-12-30
6 $
7
8 ## dconv.39.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-365
3 2012-365
4 $ dconv -f '%F' 2012-365
5 2012-12-30
6 $
7
8 ## dconv.39.ctst ends here
+0
-9
test/dconv.040.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-366
3 2012-366
4 $ dconv -f '%F' 2012-366
5 2012-12-31
6 $
7
8 ## dconv.40.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%Y-%D' 2012-366
3 2012-366
4 $ dconv -f '%F' 2012-366
5 2012-12-31
6 $
7
8 ## dconv.40.ctst ends here
+0
-739
test/dconv.041.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%F' <<EOF
3 2011-001
4 2011-002
5 2011-003
6 2011-004
7 2011-005
8 2011-006
9 2011-007
10 2011-008
11 2011-009
12 2011-010
13 2011-011
14 2011-012
15 2011-013
16 2011-014
17 2011-015
18 2011-016
19 2011-017
20 2011-018
21 2011-019
22 2011-020
23 2011-021
24 2011-022
25 2011-023
26 2011-024
27 2011-025
28 2011-026
29 2011-027
30 2011-028
31 2011-029
32 2011-030
33 2011-031
34 2011-032
35 2011-033
36 2011-034
37 2011-035
38 2011-036
39 2011-037
40 2011-038
41 2011-039
42 2011-040
43 2011-041
44 2011-042
45 2011-043
46 2011-044
47 2011-045
48 2011-046
49 2011-047
50 2011-048
51 2011-049
52 2011-050
53 2011-051
54 2011-052
55 2011-053
56 2011-054
57 2011-055
58 2011-056
59 2011-057
60 2011-058
61 2011-059
62 2011-060
63 2011-061
64 2011-062
65 2011-063
66 2011-064
67 2011-065
68 2011-066
69 2011-067
70 2011-068
71 2011-069
72 2011-070
73 2011-071
74 2011-072
75 2011-073
76 2011-074
77 2011-075
78 2011-076
79 2011-077
80 2011-078
81 2011-079
82 2011-080
83 2011-081
84 2011-082
85 2011-083
86 2011-084
87 2011-085
88 2011-086
89 2011-087
90 2011-088
91 2011-089
92 2011-090
93 2011-091
94 2011-092
95 2011-093
96 2011-094
97 2011-095
98 2011-096
99 2011-097
100 2011-098
101 2011-099
102 2011-100
103 2011-101
104 2011-102
105 2011-103
106 2011-104
107 2011-105
108 2011-106
109 2011-107
110 2011-108
111 2011-109
112 2011-110
113 2011-111
114 2011-112
115 2011-113
116 2011-114
117 2011-115
118 2011-116
119 2011-117
120 2011-118
121 2011-119
122 2011-120
123 2011-121
124 2011-122
125 2011-123
126 2011-124
127 2011-125
128 2011-126
129 2011-127
130 2011-128
131 2011-129
132 2011-130
133 2011-131
134 2011-132
135 2011-133
136 2011-134
137 2011-135
138 2011-136
139 2011-137
140 2011-138
141 2011-139
142 2011-140
143 2011-141
144 2011-142
145 2011-143
146 2011-144
147 2011-145
148 2011-146
149 2011-147
150 2011-148
151 2011-149
152 2011-150
153 2011-151
154 2011-152
155 2011-153
156 2011-154
157 2011-155
158 2011-156
159 2011-157
160 2011-158
161 2011-159
162 2011-160
163 2011-161
164 2011-162
165 2011-163
166 2011-164
167 2011-165
168 2011-166
169 2011-167
170 2011-168
171 2011-169
172 2011-170
173 2011-171
174 2011-172
175 2011-173
176 2011-174
177 2011-175
178 2011-176
179 2011-177
180 2011-178
181 2011-179
182 2011-180
183 2011-181
184 2011-182
185 2011-183
186 2011-184
187 2011-185
188 2011-186
189 2011-187
190 2011-188
191 2011-189
192 2011-190
193 2011-191
194 2011-192
195 2011-193
196 2011-194
197 2011-195
198 2011-196
199 2011-197
200 2011-198
201 2011-199
202 2011-200
203 2011-201
204 2011-202
205 2011-203
206 2011-204
207 2011-205
208 2011-206
209 2011-207
210 2011-208
211 2011-209
212 2011-210
213 2011-211
214 2011-212
215 2011-213
216 2011-214
217 2011-215
218 2011-216
219 2011-217
220 2011-218
221 2011-219
222 2011-220
223 2011-221
224 2011-222
225 2011-223
226 2011-224
227 2011-225
228 2011-226
229 2011-227
230 2011-228
231 2011-229
232 2011-230
233 2011-231
234 2011-232
235 2011-233
236 2011-234
237 2011-235
238 2011-236
239 2011-237
240 2011-238
241 2011-239
242 2011-240
243 2011-241
244 2011-242
245 2011-243
246 2011-244
247 2011-245
248 2011-246
249 2011-247
250 2011-248
251 2011-249
252 2011-250
253 2011-251
254 2011-252
255 2011-253
256 2011-254
257 2011-255
258 2011-256
259 2011-257
260 2011-258
261 2011-259
262 2011-260
263 2011-261
264 2011-262
265 2011-263
266 2011-264
267 2011-265
268 2011-266
269 2011-267
270 2011-268
271 2011-269
272 2011-270
273 2011-271
274 2011-272
275 2011-273
276 2011-274
277 2011-275
278 2011-276
279 2011-277
280 2011-278
281 2011-279
282 2011-280
283 2011-281
284 2011-282
285 2011-283
286 2011-284
287 2011-285
288 2011-286
289 2011-287
290 2011-288
291 2011-289
292 2011-290
293 2011-291
294 2011-292
295 2011-293
296 2011-294
297 2011-295
298 2011-296
299 2011-297
300 2011-298
301 2011-299
302 2011-300
303 2011-301
304 2011-302
305 2011-303
306 2011-304
307 2011-305
308 2011-306
309 2011-307
310 2011-308
311 2011-309
312 2011-310
313 2011-311
314 2011-312
315 2011-313
316 2011-314
317 2011-315
318 2011-316
319 2011-317
320 2011-318
321 2011-319
322 2011-320
323 2011-321
324 2011-322
325 2011-323
326 2011-324
327 2011-325
328 2011-326
329 2011-327
330 2011-328
331 2011-329
332 2011-330
333 2011-331
334 2011-332
335 2011-333
336 2011-334
337 2011-335
338 2011-336
339 2011-337
340 2011-338
341 2011-339
342 2011-340
343 2011-341
344 2011-342
345 2011-343
346 2011-344
347 2011-345
348 2011-346
349 2011-347
350 2011-348
351 2011-349
352 2011-350
353 2011-351
354 2011-352
355 2011-353
356 2011-354
357 2011-355
358 2011-356
359 2011-357
360 2011-358
361 2011-359
362 2011-360
363 2011-361
364 2011-362
365 2011-363
366 2011-364
367 2011-365
368 2011-366
369 EOF
370 2011-01-01
371 2011-01-02
372 2011-01-03
373 2011-01-04
374 2011-01-05
375 2011-01-06
376 2011-01-07
377 2011-01-08
378 2011-01-09
379 2011-01-10
380 2011-01-11
381 2011-01-12
382 2011-01-13
383 2011-01-14
384 2011-01-15
385 2011-01-16
386 2011-01-17
387 2011-01-18
388 2011-01-19
389 2011-01-20
390 2011-01-21
391 2011-01-22
392 2011-01-23
393 2011-01-24
394 2011-01-25
395 2011-01-26
396 2011-01-27
397 2011-01-28
398 2011-01-29
399 2011-01-30
400 2011-01-31
401 2011-02-01
402 2011-02-02
403 2011-02-03
404 2011-02-04
405 2011-02-05
406 2011-02-06
407 2011-02-07
408 2011-02-08
409 2011-02-09
410 2011-02-10
411 2011-02-11
412 2011-02-12
413 2011-02-13
414 2011-02-14
415 2011-02-15
416 2011-02-16
417 2011-02-17
418 2011-02-18
419 2011-02-19
420 2011-02-20
421 2011-02-21
422 2011-02-22
423 2011-02-23
424 2011-02-24
425 2011-02-25
426 2011-02-26
427 2011-02-27
428 2011-02-28
429 2011-03-01
430 2011-03-02
431 2011-03-03
432 2011-03-04
433 2011-03-05
434 2011-03-06
435 2011-03-07
436 2011-03-08
437 2011-03-09
438 2011-03-10
439 2011-03-11
440 2011-03-12
441 2011-03-13
442 2011-03-14
443 2011-03-15
444 2011-03-16
445 2011-03-17
446 2011-03-18
447 2011-03-19
448 2011-03-20
449 2011-03-21
450 2011-03-22
451 2011-03-23
452 2011-03-24
453 2011-03-25
454 2011-03-26
455 2011-03-27
456 2011-03-28
457 2011-03-29
458 2011-03-30
459 2011-03-31
460 2011-04-01
461 2011-04-02
462 2011-04-03
463 2011-04-04
464 2011-04-05
465 2011-04-06
466 2011-04-07
467 2011-04-08
468 2011-04-09
469 2011-04-10
470 2011-04-11
471 2011-04-12
472 2011-04-13
473 2011-04-14
474 2011-04-15
475 2011-04-16
476 2011-04-17
477 2011-04-18
478 2011-04-19
479 2011-04-20
480 2011-04-21
481 2011-04-22
482 2011-04-23
483 2011-04-24
484 2011-04-25
485 2011-04-26
486 2011-04-27
487 2011-04-28
488 2011-04-29
489 2011-04-30
490 2011-05-01
491 2011-05-02
492 2011-05-03
493 2011-05-04
494 2011-05-05
495 2011-05-06
496 2011-05-07
497 2011-05-08
498 2011-05-09
499 2011-05-10
500 2011-05-11
501 2011-05-12
502 2011-05-13
503 2011-05-14
504 2011-05-15
505 2011-05-16
506 2011-05-17
507 2011-05-18
508 2011-05-19
509 2011-05-20
510 2011-05-21
511 2011-05-22
512 2011-05-23
513 2011-05-24
514 2011-05-25
515 2011-05-26
516 2011-05-27
517 2011-05-28
518 2011-05-29
519 2011-05-30
520 2011-05-31
521 2011-06-01
522 2011-06-02
523 2011-06-03
524 2011-06-04
525 2011-06-05
526 2011-06-06
527 2011-06-07
528 2011-06-08
529 2011-06-09
530 2011-06-10
531 2011-06-11
532 2011-06-12
533 2011-06-13
534 2011-06-14
535 2011-06-15
536 2011-06-16
537 2011-06-17
538 2011-06-18
539 2011-06-19
540 2011-06-20
541 2011-06-21
542 2011-06-22
543 2011-06-23
544 2011-06-24
545 2011-06-25
546 2011-06-26
547 2011-06-27
548 2011-06-28
549 2011-06-29
550 2011-06-30
551 2011-07-01
552 2011-07-02
553 2011-07-03
554 2011-07-04
555 2011-07-05
556 2011-07-06
557 2011-07-07
558 2011-07-08
559 2011-07-09
560 2011-07-10
561 2011-07-11
562 2011-07-12
563 2011-07-13
564 2011-07-14
565 2011-07-15
566 2011-07-16
567 2011-07-17
568 2011-07-18
569 2011-07-19
570 2011-07-20
571 2011-07-21
572 2011-07-22
573 2011-07-23
574 2011-07-24
575 2011-07-25
576 2011-07-26
577 2011-07-27
578 2011-07-28
579 2011-07-29
580 2011-07-30
581 2011-07-31
582 2011-08-01
583 2011-08-02
584 2011-08-03
585 2011-08-04
586 2011-08-05
587 2011-08-06
588 2011-08-07
589 2011-08-08
590 2011-08-09
591 2011-08-10
592 2011-08-11
593 2011-08-12
594 2011-08-13
595 2011-08-14
596 2011-08-15
597 2011-08-16
598 2011-08-17
599 2011-08-18
600 2011-08-19
601 2011-08-20
602 2011-08-21
603 2011-08-22
604 2011-08-23
605 2011-08-24
606 2011-08-25
607 2011-08-26
608 2011-08-27
609 2011-08-28
610 2011-08-29
611 2011-08-30
612 2011-08-31
613 2011-09-01
614 2011-09-02
615 2011-09-03
616 2011-09-04
617 2011-09-05
618 2011-09-06
619 2011-09-07
620 2011-09-08
621 2011-09-09
622 2011-09-10
623 2011-09-11
624 2011-09-12
625 2011-09-13
626 2011-09-14
627 2011-09-15
628 2011-09-16
629 2011-09-17
630 2011-09-18
631 2011-09-19
632 2011-09-20
633 2011-09-21
634 2011-09-22
635 2011-09-23
636 2011-09-24
637 2011-09-25
638 2011-09-26
639 2011-09-27
640 2011-09-28
641 2011-09-29
642 2011-09-30
643 2011-10-01
644 2011-10-02
645 2011-10-03
646 2011-10-04
647 2011-10-05
648 2011-10-06
649 2011-10-07
650 2011-10-08
651 2011-10-09
652 2011-10-10
653 2011-10-11
654 2011-10-12
655 2011-10-13
656 2011-10-14
657 2011-10-15
658 2011-10-16
659 2011-10-17
660 2011-10-18
661 2011-10-19
662 2011-10-20
663 2011-10-21
664 2011-10-22
665 2011-10-23
666 2011-10-24
667 2011-10-25
668 2011-10-26
669 2011-10-27
670 2011-10-28
671 2011-10-29
672 2011-10-30
673 2011-10-31
674 2011-11-01
675 2011-11-02
676 2011-11-03
677 2011-11-04
678 2011-11-05
679 2011-11-06
680 2011-11-07
681 2011-11-08
682 2011-11-09
683 2011-11-10
684 2011-11-11
685 2011-11-12
686 2011-11-13
687 2011-11-14
688 2011-11-15
689 2011-11-16
690 2011-11-17
691 2011-11-18
692 2011-11-19
693 2011-11-20
694 2011-11-21
695 2011-11-22
696 2011-11-23
697 2011-11-24
698 2011-11-25
699 2011-11-26
700 2011-11-27
701 2011-11-28
702 2011-11-29
703 2011-11-30
704 2011-12-01
705 2011-12-02
706 2011-12-03
707 2011-12-04
708 2011-12-05
709 2011-12-06
710 2011-12-07
711 2011-12-08
712 2011-12-09
713 2011-12-10
714 2011-12-11
715 2011-12-12
716 2011-12-13
717 2011-12-14
718 2011-12-15
719 2011-12-16
720 2011-12-17
721 2011-12-18
722 2011-12-19
723 2011-12-20
724 2011-12-21
725 2011-12-22
726 2011-12-23
727 2011-12-24
728 2011-12-25
729 2011-12-26
730 2011-12-27
731 2011-12-28
732 2011-12-29
733 2011-12-30
734 2011-12-31
735 2011-12-31
736 $
737
738 ## dconv.41.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%F' <<EOF
3 2011-001
4 2011-002
5 2011-003
6 2011-004
7 2011-005
8 2011-006
9 2011-007
10 2011-008
11 2011-009
12 2011-010
13 2011-011
14 2011-012
15 2011-013
16 2011-014
17 2011-015
18 2011-016
19 2011-017
20 2011-018
21 2011-019
22 2011-020
23 2011-021
24 2011-022
25 2011-023
26 2011-024
27 2011-025
28 2011-026
29 2011-027
30 2011-028
31 2011-029
32 2011-030
33 2011-031
34 2011-032
35 2011-033
36 2011-034
37 2011-035
38 2011-036
39 2011-037
40 2011-038
41 2011-039
42 2011-040
43 2011-041
44 2011-042
45 2011-043
46 2011-044
47 2011-045
48 2011-046
49 2011-047
50 2011-048
51 2011-049
52 2011-050
53 2011-051
54 2011-052
55 2011-053
56 2011-054
57 2011-055
58 2011-056
59 2011-057
60 2011-058
61 2011-059
62 2011-060
63 2011-061
64 2011-062
65 2011-063
66 2011-064
67 2011-065
68 2011-066
69 2011-067
70 2011-068
71 2011-069
72 2011-070
73 2011-071
74 2011-072
75 2011-073
76 2011-074
77 2011-075
78 2011-076
79 2011-077
80 2011-078
81 2011-079
82 2011-080
83 2011-081
84 2011-082
85 2011-083
86 2011-084
87 2011-085
88 2011-086
89 2011-087
90 2011-088
91 2011-089
92 2011-090
93 2011-091
94 2011-092
95 2011-093
96 2011-094
97 2011-095
98 2011-096
99 2011-097
100 2011-098
101 2011-099
102 2011-100
103 2011-101
104 2011-102
105 2011-103
106 2011-104
107 2011-105
108 2011-106
109 2011-107
110 2011-108
111 2011-109
112 2011-110
113 2011-111
114 2011-112
115 2011-113
116 2011-114
117 2011-115
118 2011-116
119 2011-117
120 2011-118
121 2011-119
122 2011-120
123 2011-121
124 2011-122
125 2011-123
126 2011-124
127 2011-125
128 2011-126
129 2011-127
130 2011-128
131 2011-129
132 2011-130
133 2011-131
134 2011-132
135 2011-133
136 2011-134
137 2011-135
138 2011-136
139 2011-137
140 2011-138
141 2011-139
142 2011-140
143 2011-141
144 2011-142
145 2011-143
146 2011-144
147 2011-145
148 2011-146
149 2011-147
150 2011-148
151 2011-149
152 2011-150
153 2011-151
154 2011-152
155 2011-153
156 2011-154
157 2011-155
158 2011-156
159 2011-157
160 2011-158
161 2011-159
162 2011-160
163 2011-161
164 2011-162
165 2011-163
166 2011-164
167 2011-165
168 2011-166
169 2011-167
170 2011-168
171 2011-169
172 2011-170
173 2011-171
174 2011-172
175 2011-173
176 2011-174
177 2011-175
178 2011-176
179 2011-177
180 2011-178
181 2011-179
182 2011-180
183 2011-181
184 2011-182
185 2011-183
186 2011-184
187 2011-185
188 2011-186
189 2011-187
190 2011-188
191 2011-189
192 2011-190
193 2011-191
194 2011-192
195 2011-193
196 2011-194
197 2011-195
198 2011-196
199 2011-197
200 2011-198
201 2011-199
202 2011-200
203 2011-201
204 2011-202
205 2011-203
206 2011-204
207 2011-205
208 2011-206
209 2011-207
210 2011-208
211 2011-209
212 2011-210
213 2011-211
214 2011-212
215 2011-213
216 2011-214
217 2011-215
218 2011-216
219 2011-217
220 2011-218
221 2011-219
222 2011-220
223 2011-221
224 2011-222
225 2011-223
226 2011-224
227 2011-225
228 2011-226
229 2011-227
230 2011-228
231 2011-229
232 2011-230
233 2011-231
234 2011-232
235 2011-233
236 2011-234
237 2011-235
238 2011-236
239 2011-237
240 2011-238
241 2011-239
242 2011-240
243 2011-241
244 2011-242
245 2011-243
246 2011-244
247 2011-245
248 2011-246
249 2011-247
250 2011-248
251 2011-249
252 2011-250
253 2011-251
254 2011-252
255 2011-253
256 2011-254
257 2011-255
258 2011-256
259 2011-257
260 2011-258
261 2011-259
262 2011-260
263 2011-261
264 2011-262
265 2011-263
266 2011-264
267 2011-265
268 2011-266
269 2011-267
270 2011-268
271 2011-269
272 2011-270
273 2011-271
274 2011-272
275 2011-273
276 2011-274
277 2011-275
278 2011-276
279 2011-277
280 2011-278
281 2011-279
282 2011-280
283 2011-281
284 2011-282
285 2011-283
286 2011-284
287 2011-285
288 2011-286
289 2011-287
290 2011-288
291 2011-289
292 2011-290
293 2011-291
294 2011-292
295 2011-293
296 2011-294
297 2011-295
298 2011-296
299 2011-297
300 2011-298
301 2011-299
302 2011-300
303 2011-301
304 2011-302
305 2011-303
306 2011-304
307 2011-305
308 2011-306
309 2011-307
310 2011-308
311 2011-309
312 2011-310
313 2011-311
314 2011-312
315 2011-313
316 2011-314
317 2011-315
318 2011-316
319 2011-317
320 2011-318
321 2011-319
322 2011-320
323 2011-321
324 2011-322
325 2011-323
326 2011-324
327 2011-325
328 2011-326
329 2011-327
330 2011-328
331 2011-329
332 2011-330
333 2011-331
334 2011-332
335 2011-333
336 2011-334
337 2011-335
338 2011-336
339 2011-337
340 2011-338
341 2011-339
342 2011-340
343 2011-341
344 2011-342
345 2011-343
346 2011-344
347 2011-345
348 2011-346
349 2011-347
350 2011-348
351 2011-349
352 2011-350
353 2011-351
354 2011-352
355 2011-353
356 2011-354
357 2011-355
358 2011-356
359 2011-357
360 2011-358
361 2011-359
362 2011-360
363 2011-361
364 2011-362
365 2011-363
366 2011-364
367 2011-365
368 2011-366
369 EOF
370 2011-01-01
371 2011-01-02
372 2011-01-03
373 2011-01-04
374 2011-01-05
375 2011-01-06
376 2011-01-07
377 2011-01-08
378 2011-01-09
379 2011-01-10
380 2011-01-11
381 2011-01-12
382 2011-01-13
383 2011-01-14
384 2011-01-15
385 2011-01-16
386 2011-01-17
387 2011-01-18
388 2011-01-19
389 2011-01-20
390 2011-01-21
391 2011-01-22
392 2011-01-23
393 2011-01-24
394 2011-01-25
395 2011-01-26
396 2011-01-27
397 2011-01-28
398 2011-01-29
399 2011-01-30
400 2011-01-31
401 2011-02-01
402 2011-02-02
403 2011-02-03
404 2011-02-04
405 2011-02-05
406 2011-02-06
407 2011-02-07
408 2011-02-08
409 2011-02-09
410 2011-02-10
411 2011-02-11
412 2011-02-12
413 2011-02-13
414 2011-02-14
415 2011-02-15
416 2011-02-16
417 2011-02-17
418 2011-02-18
419 2011-02-19
420 2011-02-20
421 2011-02-21
422 2011-02-22
423 2011-02-23
424 2011-02-24
425 2011-02-25
426 2011-02-26
427 2011-02-27
428 2011-02-28
429 2011-03-01
430 2011-03-02
431 2011-03-03
432 2011-03-04
433 2011-03-05
434 2011-03-06
435 2011-03-07
436 2011-03-08
437 2011-03-09
438 2011-03-10
439 2011-03-11
440 2011-03-12
441 2011-03-13
442 2011-03-14
443 2011-03-15
444 2011-03-16
445 2011-03-17
446 2011-03-18
447 2011-03-19
448 2011-03-20
449 2011-03-21
450 2011-03-22
451 2011-03-23
452 2011-03-24
453 2011-03-25
454 2011-03-26
455 2011-03-27
456 2011-03-28
457 2011-03-29
458 2011-03-30
459 2011-03-31
460 2011-04-01
461 2011-04-02
462 2011-04-03
463 2011-04-04
464 2011-04-05
465 2011-04-06
466 2011-04-07
467 2011-04-08
468 2011-04-09
469 2011-04-10
470 2011-04-11
471 2011-04-12
472 2011-04-13
473 2011-04-14
474 2011-04-15
475 2011-04-16
476 2011-04-17
477 2011-04-18
478 2011-04-19
479 2011-04-20
480 2011-04-21
481 2011-04-22
482 2011-04-23
483 2011-04-24
484 2011-04-25
485 2011-04-26
486 2011-04-27
487 2011-04-28
488 2011-04-29
489 2011-04-30
490 2011-05-01
491 2011-05-02
492 2011-05-03
493 2011-05-04
494 2011-05-05
495 2011-05-06
496 2011-05-07
497 2011-05-08
498 2011-05-09
499 2011-05-10
500 2011-05-11
501 2011-05-12
502 2011-05-13
503 2011-05-14
504 2011-05-15
505 2011-05-16
506 2011-05-17
507 2011-05-18
508 2011-05-19
509 2011-05-20
510 2011-05-21
511 2011-05-22
512 2011-05-23
513 2011-05-24
514 2011-05-25
515 2011-05-26
516 2011-05-27
517 2011-05-28
518 2011-05-29
519 2011-05-30
520 2011-05-31
521 2011-06-01
522 2011-06-02
523 2011-06-03
524 2011-06-04
525 2011-06-05
526 2011-06-06
527 2011-06-07
528 2011-06-08
529 2011-06-09
530 2011-06-10
531 2011-06-11
532 2011-06-12
533 2011-06-13
534 2011-06-14
535 2011-06-15
536 2011-06-16
537 2011-06-17
538 2011-06-18
539 2011-06-19
540 2011-06-20
541 2011-06-21
542 2011-06-22
543 2011-06-23
544 2011-06-24
545 2011-06-25
546 2011-06-26
547 2011-06-27
548 2011-06-28
549 2011-06-29
550 2011-06-30
551 2011-07-01
552 2011-07-02
553 2011-07-03
554 2011-07-04
555 2011-07-05
556 2011-07-06
557 2011-07-07
558 2011-07-08
559 2011-07-09
560 2011-07-10
561 2011-07-11
562 2011-07-12
563 2011-07-13
564 2011-07-14
565 2011-07-15
566 2011-07-16
567 2011-07-17
568 2011-07-18
569 2011-07-19
570 2011-07-20
571 2011-07-21
572 2011-07-22
573 2011-07-23
574 2011-07-24
575 2011-07-25
576 2011-07-26
577 2011-07-27
578 2011-07-28
579 2011-07-29
580 2011-07-30
581 2011-07-31
582 2011-08-01
583 2011-08-02
584 2011-08-03
585 2011-08-04
586 2011-08-05
587 2011-08-06
588 2011-08-07
589 2011-08-08
590 2011-08-09
591 2011-08-10
592 2011-08-11
593 2011-08-12
594 2011-08-13
595 2011-08-14
596 2011-08-15
597 2011-08-16
598 2011-08-17
599 2011-08-18
600 2011-08-19
601 2011-08-20
602 2011-08-21
603 2011-08-22
604 2011-08-23
605 2011-08-24
606 2011-08-25
607 2011-08-26
608 2011-08-27
609 2011-08-28
610 2011-08-29
611 2011-08-30
612 2011-08-31
613 2011-09-01
614 2011-09-02
615 2011-09-03
616 2011-09-04
617 2011-09-05
618 2011-09-06
619 2011-09-07
620 2011-09-08
621 2011-09-09
622 2011-09-10
623 2011-09-11
624 2011-09-12
625 2011-09-13
626 2011-09-14
627 2011-09-15
628 2011-09-16
629 2011-09-17
630 2011-09-18
631 2011-09-19
632 2011-09-20
633 2011-09-21
634 2011-09-22
635 2011-09-23
636 2011-09-24
637 2011-09-25
638 2011-09-26
639 2011-09-27
640 2011-09-28
641 2011-09-29
642 2011-09-30
643 2011-10-01
644 2011-10-02
645 2011-10-03
646 2011-10-04
647 2011-10-05
648 2011-10-06
649 2011-10-07
650 2011-10-08
651 2011-10-09
652 2011-10-10
653 2011-10-11
654 2011-10-12
655 2011-10-13
656 2011-10-14
657 2011-10-15
658 2011-10-16
659 2011-10-17
660 2011-10-18
661 2011-10-19
662 2011-10-20
663 2011-10-21
664 2011-10-22
665 2011-10-23
666 2011-10-24
667 2011-10-25
668 2011-10-26
669 2011-10-27
670 2011-10-28
671 2011-10-29
672 2011-10-30
673 2011-10-31
674 2011-11-01
675 2011-11-02
676 2011-11-03
677 2011-11-04
678 2011-11-05
679 2011-11-06
680 2011-11-07
681 2011-11-08
682 2011-11-09
683 2011-11-10
684 2011-11-11
685 2011-11-12
686 2011-11-13
687 2011-11-14
688 2011-11-15
689 2011-11-16
690 2011-11-17
691 2011-11-18
692 2011-11-19
693 2011-11-20
694 2011-11-21
695 2011-11-22
696 2011-11-23
697 2011-11-24
698 2011-11-25
699 2011-11-26
700 2011-11-27
701 2011-11-28
702 2011-11-29
703 2011-11-30
704 2011-12-01
705 2011-12-02
706 2011-12-03
707 2011-12-04
708 2011-12-05
709 2011-12-06
710 2011-12-07
711 2011-12-08
712 2011-12-09
713 2011-12-10
714 2011-12-11
715 2011-12-12
716 2011-12-13
717 2011-12-14
718 2011-12-15
719 2011-12-16
720 2011-12-17
721 2011-12-18
722 2011-12-19
723 2011-12-20
724 2011-12-21
725 2011-12-22
726 2011-12-23
727 2011-12-24
728 2011-12-25
729 2011-12-26
730 2011-12-27
731 2011-12-28
732 2011-12-29
733 2011-12-30
734 2011-12-31
735 2011-12-31
736 $
737
738 ## dconv.41.ctst ends here
+0
-739
test/dconv.042.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%F' <<EOF
3 2012-001
4 2012-002
5 2012-003
6 2012-004
7 2012-005
8 2012-006
9 2012-007
10 2012-008
11 2012-009
12 2012-010
13 2012-011
14 2012-012
15 2012-013
16 2012-014
17 2012-015
18 2012-016
19 2012-017
20 2012-018
21 2012-019
22 2012-020
23 2012-021
24 2012-022
25 2012-023
26 2012-024
27 2012-025
28 2012-026
29 2012-027
30 2012-028
31 2012-029
32 2012-030
33 2012-031
34 2012-032
35 2012-033
36 2012-034
37 2012-035
38 2012-036
39 2012-037
40 2012-038
41 2012-039
42 2012-040
43 2012-041
44 2012-042
45 2012-043
46 2012-044
47 2012-045
48 2012-046
49 2012-047
50 2012-048
51 2012-049
52 2012-050
53 2012-051
54 2012-052
55 2012-053
56 2012-054
57 2012-055
58 2012-056
59 2012-057
60 2012-058
61 2012-059
62 2012-060
63 2012-061
64 2012-062
65 2012-063
66 2012-064
67 2012-065
68 2012-066
69 2012-067
70 2012-068
71 2012-069
72 2012-070
73 2012-071
74 2012-072
75 2012-073
76 2012-074
77 2012-075
78 2012-076
79 2012-077
80 2012-078
81 2012-079
82 2012-080
83 2012-081
84 2012-082
85 2012-083
86 2012-084
87 2012-085
88 2012-086
89 2012-087
90 2012-088
91 2012-089
92 2012-090
93 2012-091
94 2012-092
95 2012-093
96 2012-094
97 2012-095
98 2012-096
99 2012-097
100 2012-098
101 2012-099
102 2012-100
103 2012-101
104 2012-102
105 2012-103
106 2012-104
107 2012-105
108 2012-106
109 2012-107
110 2012-108
111 2012-109
112 2012-110
113 2012-111
114 2012-112
115 2012-113
116 2012-114
117 2012-115
118 2012-116
119 2012-117
120 2012-118
121 2012-119
122 2012-120
123 2012-121
124 2012-122
125 2012-123
126 2012-124
127 2012-125
128 2012-126
129 2012-127
130 2012-128
131 2012-129
132 2012-130
133 2012-131
134 2012-132
135 2012-133
136 2012-134
137 2012-135
138 2012-136
139 2012-137
140 2012-138
141 2012-139
142 2012-140
143 2012-141
144 2012-142
145 2012-143
146 2012-144
147 2012-145
148 2012-146
149 2012-147
150 2012-148
151 2012-149
152 2012-150
153 2012-151
154 2012-152
155 2012-153
156 2012-154
157 2012-155
158 2012-156
159 2012-157
160 2012-158
161 2012-159
162 2012-160
163 2012-161
164 2012-162
165 2012-163
166 2012-164
167 2012-165
168 2012-166
169 2012-167
170 2012-168
171 2012-169
172 2012-170
173 2012-171
174 2012-172
175 2012-173
176 2012-174
177 2012-175
178 2012-176
179 2012-177
180 2012-178
181 2012-179
182 2012-180
183 2012-181
184 2012-182
185 2012-183
186 2012-184
187 2012-185
188 2012-186
189 2012-187
190 2012-188
191 2012-189
192 2012-190
193 2012-191
194 2012-192
195 2012-193
196 2012-194
197 2012-195
198 2012-196
199 2012-197
200 2012-198
201 2012-199
202 2012-200
203 2012-201
204 2012-202
205 2012-203
206 2012-204
207 2012-205
208 2012-206
209 2012-207
210 2012-208
211 2012-209
212 2012-210
213 2012-211
214 2012-212
215 2012-213
216 2012-214
217 2012-215
218 2012-216
219 2012-217
220 2012-218
221 2012-219
222 2012-220
223 2012-221
224 2012-222
225 2012-223
226 2012-224
227 2012-225
228 2012-226
229 2012-227
230 2012-228
231 2012-229
232 2012-230
233 2012-231
234 2012-232
235 2012-233
236 2012-234
237 2012-235
238 2012-236
239 2012-237
240 2012-238
241 2012-239
242 2012-240
243 2012-241
244 2012-242
245 2012-243
246 2012-244
247 2012-245
248 2012-246
249 2012-247
250 2012-248
251 2012-249
252 2012-250
253 2012-251
254 2012-252
255 2012-253
256 2012-254
257 2012-255
258 2012-256
259 2012-257
260 2012-258
261 2012-259
262 2012-260
263 2012-261
264 2012-262
265 2012-263
266 2012-264
267 2012-265
268 2012-266
269 2012-267
270 2012-268
271 2012-269
272 2012-270
273 2012-271
274 2012-272
275 2012-273
276 2012-274
277 2012-275
278 2012-276
279 2012-277
280 2012-278
281 2012-279
282 2012-280
283 2012-281
284 2012-282
285 2012-283
286 2012-284
287 2012-285
288 2012-286
289 2012-287
290 2012-288
291 2012-289
292 2012-290
293 2012-291
294 2012-292
295 2012-293
296 2012-294
297 2012-295
298 2012-296
299 2012-297
300 2012-298
301 2012-299
302 2012-300
303 2012-301
304 2012-302
305 2012-303
306 2012-304
307 2012-305
308 2012-306
309 2012-307
310 2012-308
311 2012-309
312 2012-310
313 2012-311
314 2012-312
315 2012-313
316 2012-314
317 2012-315
318 2012-316
319 2012-317
320 2012-318
321 2012-319
322 2012-320
323 2012-321
324 2012-322
325 2012-323
326 2012-324
327 2012-325
328 2012-326
329 2012-327
330 2012-328
331 2012-329
332 2012-330
333 2012-331
334 2012-332
335 2012-333
336 2012-334
337 2012-335
338 2012-336
339 2012-337
340 2012-338
341 2012-339
342 2012-340
343 2012-341
344 2012-342
345 2012-343
346 2012-344
347 2012-345
348 2012-346
349 2012-347
350 2012-348
351 2012-349
352 2012-350
353 2012-351
354 2012-352
355 2012-353
356 2012-354
357 2012-355
358 2012-356
359 2012-357
360 2012-358
361 2012-359
362 2012-360
363 2012-361
364 2012-362
365 2012-363
366 2012-364
367 2012-365
368 2012-366
369 EOF
370 2012-01-01
371 2012-01-02
372 2012-01-03
373 2012-01-04
374 2012-01-05
375 2012-01-06
376 2012-01-07
377 2012-01-08
378 2012-01-09
379 2012-01-10
380 2012-01-11
381 2012-01-12
382 2012-01-13
383 2012-01-14
384 2012-01-15
385 2012-01-16
386 2012-01-17
387 2012-01-18
388 2012-01-19
389 2012-01-20
390 2012-01-21
391 2012-01-22
392 2012-01-23
393 2012-01-24
394 2012-01-25
395 2012-01-26
396 2012-01-27
397 2012-01-28
398 2012-01-29
399 2012-01-30
400 2012-01-31
401 2012-02-01
402 2012-02-02
403 2012-02-03
404 2012-02-04
405 2012-02-05
406 2012-02-06
407 2012-02-07
408 2012-02-08
409 2012-02-09
410 2012-02-10
411 2012-02-11
412 2012-02-12
413 2012-02-13
414 2012-02-14
415 2012-02-15
416 2012-02-16
417 2012-02-17
418 2012-02-18
419 2012-02-19
420 2012-02-20
421 2012-02-21
422 2012-02-22
423 2012-02-23
424 2012-02-24
425 2012-02-25
426 2012-02-26
427 2012-02-27
428 2012-02-28
429 2012-02-29
430 2012-03-01
431 2012-03-02
432 2012-03-03
433 2012-03-04
434 2012-03-05
435 2012-03-06
436 2012-03-07
437 2012-03-08
438 2012-03-09
439 2012-03-10
440 2012-03-11
441 2012-03-12
442 2012-03-13
443 2012-03-14
444 2012-03-15
445 2012-03-16
446 2012-03-17
447 2012-03-18
448 2012-03-19
449 2012-03-20
450 2012-03-21
451 2012-03-22
452 2012-03-23
453 2012-03-24
454 2012-03-25
455 2012-03-26
456 2012-03-27
457 2012-03-28
458 2012-03-29
459 2012-03-30
460 2012-03-31
461 2012-04-01
462 2012-04-02
463 2012-04-03
464 2012-04-04
465 2012-04-05
466 2012-04-06
467 2012-04-07
468 2012-04-08
469 2012-04-09
470 2012-04-10
471 2012-04-11
472 2012-04-12
473 2012-04-13
474 2012-04-14
475 2012-04-15
476 2012-04-16
477 2012-04-17
478 2012-04-18
479 2012-04-19
480 2012-04-20
481 2012-04-21
482 2012-04-22
483 2012-04-23
484 2012-04-24
485 2012-04-25
486 2012-04-26
487 2012-04-27
488 2012-04-28
489 2012-04-29
490 2012-04-30
491 2012-05-01
492 2012-05-02
493 2012-05-03
494 2012-05-04
495 2012-05-05
496 2012-05-06
497 2012-05-07
498 2012-05-08
499 2012-05-09
500 2012-05-10
501 2012-05-11
502 2012-05-12
503 2012-05-13
504 2012-05-14
505 2012-05-15
506 2012-05-16
507 2012-05-17
508 2012-05-18
509 2012-05-19
510 2012-05-20
511 2012-05-21
512 2012-05-22
513 2012-05-23
514 2012-05-24
515 2012-05-25
516 2012-05-26
517 2012-05-27
518 2012-05-28
519 2012-05-29
520 2012-05-30
521 2012-05-31
522 2012-06-01
523 2012-06-02
524 2012-06-03
525 2012-06-04
526 2012-06-05
527 2012-06-06
528 2012-06-07
529 2012-06-08
530 2012-06-09
531 2012-06-10
532 2012-06-11
533 2012-06-12
534 2012-06-13
535 2012-06-14
536 2012-06-15
537 2012-06-16
538 2012-06-17
539 2012-06-18
540 2012-06-19
541 2012-06-20
542 2012-06-21
543 2012-06-22
544 2012-06-23
545 2012-06-24
546 2012-06-25
547 2012-06-26
548 2012-06-27
549 2012-06-28
550 2012-06-29
551 2012-06-30
552 2012-07-01
553 2012-07-02
554 2012-07-03
555 2012-07-04
556 2012-07-05
557 2012-07-06
558 2012-07-07
559 2012-07-08
560 2012-07-09
561 2012-07-10
562 2012-07-11
563 2012-07-12
564 2012-07-13
565 2012-07-14
566 2012-07-15
567 2012-07-16
568 2012-07-17
569 2012-07-18
570 2012-07-19
571 2012-07-20
572 2012-07-21
573 2012-07-22
574 2012-07-23
575 2012-07-24
576 2012-07-25
577 2012-07-26
578 2012-07-27
579 2012-07-28
580 2012-07-29
581 2012-07-30
582 2012-07-31
583 2012-08-01
584 2012-08-02
585 2012-08-03
586 2012-08-04
587 2012-08-05
588 2012-08-06
589 2012-08-07
590 2012-08-08
591 2012-08-09
592 2012-08-10
593 2012-08-11
594 2012-08-12
595 2012-08-13
596 2012-08-14
597 2012-08-15
598 2012-08-16
599 2012-08-17
600 2012-08-18
601 2012-08-19
602 2012-08-20
603 2012-08-21
604 2012-08-22
605 2012-08-23
606 2012-08-24
607 2012-08-25
608 2012-08-26
609 2012-08-27
610 2012-08-28
611 2012-08-29
612 2012-08-30
613 2012-08-31
614 2012-09-01
615 2012-09-02
616 2012-09-03
617 2012-09-04
618 2012-09-05
619 2012-09-06
620 2012-09-07
621 2012-09-08
622 2012-09-09
623 2012-09-10
624 2012-09-11
625 2012-09-12
626 2012-09-13
627 2012-09-14
628 2012-09-15
629 2012-09-16
630 2012-09-17
631 2012-09-18
632 2012-09-19
633 2012-09-20
634 2012-09-21
635 2012-09-22
636 2012-09-23
637 2012-09-24
638 2012-09-25
639 2012-09-26
640 2012-09-27
641 2012-09-28
642 2012-09-29
643 2012-09-30
644 2012-10-01
645 2012-10-02
646 2012-10-03
647 2012-10-04
648 2012-10-05
649 2012-10-06
650 2012-10-07
651 2012-10-08
652 2012-10-09
653 2012-10-10
654 2012-10-11
655 2012-10-12
656 2012-10-13
657 2012-10-14
658 2012-10-15
659 2012-10-16
660 2012-10-17
661 2012-10-18
662 2012-10-19
663 2012-10-20
664 2012-10-21
665 2012-10-22
666 2012-10-23
667 2012-10-24
668 2012-10-25
669 2012-10-26
670 2012-10-27
671 2012-10-28
672 2012-10-29
673 2012-10-30
674 2012-10-31
675 2012-11-01
676 2012-11-02
677 2012-11-03
678 2012-11-04
679 2012-11-05
680 2012-11-06
681 2012-11-07
682 2012-11-08
683 2012-11-09
684 2012-11-10
685 2012-11-11
686 2012-11-12
687 2012-11-13
688 2012-11-14
689 2012-11-15
690 2012-11-16
691 2012-11-17
692 2012-11-18
693 2012-11-19
694 2012-11-20
695 2012-11-21
696 2012-11-22
697 2012-11-23
698 2012-11-24
699 2012-11-25
700 2012-11-26
701 2012-11-27
702 2012-11-28
703 2012-11-29
704 2012-11-30
705 2012-12-01
706 2012-12-02
707 2012-12-03
708 2012-12-04
709 2012-12-05
710 2012-12-06
711 2012-12-07
712 2012-12-08
713 2012-12-09
714 2012-12-10
715 2012-12-11
716 2012-12-12
717 2012-12-13
718 2012-12-14
719 2012-12-15
720 2012-12-16
721 2012-12-17
722 2012-12-18
723 2012-12-19
724 2012-12-20
725 2012-12-21
726 2012-12-22
727 2012-12-23
728 2012-12-24
729 2012-12-25
730 2012-12-26
731 2012-12-27
732 2012-12-28
733 2012-12-29
734 2012-12-30
735 2012-12-31
736 $
737
738 ## dconv.42.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%F' <<EOF
3 2012-001
4 2012-002
5 2012-003
6 2012-004
7 2012-005
8 2012-006
9 2012-007
10 2012-008
11 2012-009
12 2012-010
13 2012-011
14 2012-012
15 2012-013
16 2012-014
17 2012-015
18 2012-016
19 2012-017
20 2012-018
21 2012-019
22 2012-020
23 2012-021
24 2012-022
25 2012-023
26 2012-024
27 2012-025
28 2012-026
29 2012-027
30 2012-028
31 2012-029
32 2012-030
33 2012-031
34 2012-032
35 2012-033
36 2012-034
37 2012-035
38 2012-036
39 2012-037
40 2012-038
41 2012-039
42 2012-040
43 2012-041
44 2012-042
45 2012-043
46 2012-044
47 2012-045
48 2012-046
49 2012-047
50 2012-048
51 2012-049
52 2012-050
53 2012-051
54 2012-052
55 2012-053
56 2012-054
57 2012-055
58 2012-056
59 2012-057
60 2012-058
61 2012-059
62 2012-060
63 2012-061
64 2012-062
65 2012-063
66 2012-064
67 2012-065
68 2012-066
69 2012-067
70 2012-068
71 2012-069
72 2012-070
73 2012-071
74 2012-072
75 2012-073
76 2012-074
77 2012-075
78 2012-076
79 2012-077
80 2012-078
81 2012-079
82 2012-080
83 2012-081
84 2012-082
85 2012-083
86 2012-084
87 2012-085
88 2012-086
89 2012-087
90 2012-088
91 2012-089
92 2012-090
93 2012-091
94 2012-092
95 2012-093
96 2012-094
97 2012-095
98 2012-096
99 2012-097
100 2012-098
101 2012-099
102 2012-100
103 2012-101
104 2012-102
105 2012-103
106 2012-104
107 2012-105
108 2012-106
109 2012-107
110 2012-108
111 2012-109
112 2012-110
113 2012-111
114 2012-112
115 2012-113
116 2012-114
117 2012-115
118 2012-116
119 2012-117
120 2012-118
121 2012-119
122 2012-120
123 2012-121
124 2012-122
125 2012-123
126 2012-124
127 2012-125
128 2012-126
129 2012-127
130 2012-128
131 2012-129
132 2012-130
133 2012-131
134 2012-132
135 2012-133
136 2012-134
137 2012-135
138 2012-136
139 2012-137
140 2012-138
141 2012-139
142 2012-140
143 2012-141
144 2012-142
145 2012-143
146 2012-144
147 2012-145
148 2012-146
149 2012-147
150 2012-148
151 2012-149
152 2012-150
153 2012-151
154 2012-152
155 2012-153
156 2012-154
157 2012-155
158 2012-156
159 2012-157
160 2012-158
161 2012-159
162 2012-160
163 2012-161
164 2012-162
165 2012-163
166 2012-164
167 2012-165
168 2012-166
169 2012-167
170 2012-168
171 2012-169
172 2012-170
173 2012-171
174 2012-172
175 2012-173
176 2012-174
177 2012-175
178 2012-176
179 2012-177
180 2012-178
181 2012-179
182 2012-180
183 2012-181
184 2012-182
185 2012-183
186 2012-184
187 2012-185
188 2012-186
189 2012-187
190 2012-188
191 2012-189
192 2012-190
193 2012-191
194 2012-192
195 2012-193
196 2012-194
197 2012-195
198 2012-196
199 2012-197
200 2012-198
201 2012-199
202 2012-200
203 2012-201
204 2012-202
205 2012-203
206 2012-204
207 2012-205
208 2012-206
209 2012-207
210 2012-208
211 2012-209
212 2012-210
213 2012-211
214 2012-212
215 2012-213
216 2012-214
217 2012-215
218 2012-216
219 2012-217
220 2012-218
221 2012-219
222 2012-220
223 2012-221
224 2012-222
225 2012-223
226 2012-224
227 2012-225
228 2012-226
229 2012-227
230 2012-228
231 2012-229
232 2012-230
233 2012-231
234 2012-232
235 2012-233
236 2012-234
237 2012-235
238 2012-236
239 2012-237
240 2012-238
241 2012-239
242 2012-240
243 2012-241
244 2012-242
245 2012-243
246 2012-244
247 2012-245
248 2012-246
249 2012-247
250 2012-248
251 2012-249
252 2012-250
253 2012-251
254 2012-252
255 2012-253
256 2012-254
257 2012-255
258 2012-256
259 2012-257
260 2012-258
261 2012-259
262 2012-260
263 2012-261
264 2012-262
265 2012-263
266 2012-264
267 2012-265
268 2012-266
269 2012-267
270 2012-268
271 2012-269
272 2012-270
273 2012-271
274 2012-272
275 2012-273
276 2012-274
277 2012-275
278 2012-276
279 2012-277
280 2012-278
281 2012-279
282 2012-280
283 2012-281
284 2012-282
285 2012-283
286 2012-284
287 2012-285
288 2012-286
289 2012-287
290 2012-288
291 2012-289
292 2012-290
293 2012-291
294 2012-292
295 2012-293
296 2012-294
297 2012-295
298 2012-296
299 2012-297
300 2012-298
301 2012-299
302 2012-300
303 2012-301
304 2012-302
305 2012-303
306 2012-304
307 2012-305
308 2012-306
309 2012-307
310 2012-308
311 2012-309
312 2012-310
313 2012-311
314 2012-312
315 2012-313
316 2012-314
317 2012-315
318 2012-316
319 2012-317
320 2012-318
321 2012-319
322 2012-320
323 2012-321
324 2012-322
325 2012-323
326 2012-324
327 2012-325
328 2012-326
329 2012-327
330 2012-328
331 2012-329
332 2012-330
333 2012-331
334 2012-332
335 2012-333
336 2012-334
337 2012-335
338 2012-336
339 2012-337
340 2012-338
341 2012-339
342 2012-340
343 2012-341
344 2012-342
345 2012-343
346 2012-344
347 2012-345
348 2012-346
349 2012-347
350 2012-348
351 2012-349
352 2012-350
353 2012-351
354 2012-352
355 2012-353
356 2012-354
357 2012-355
358 2012-356
359 2012-357
360 2012-358
361 2012-359
362 2012-360
363 2012-361
364 2012-362
365 2012-363
366 2012-364
367 2012-365
368 2012-366
369 EOF
370 2012-01-01
371 2012-01-02
372 2012-01-03
373 2012-01-04
374 2012-01-05
375 2012-01-06
376 2012-01-07
377 2012-01-08
378 2012-01-09
379 2012-01-10
380 2012-01-11
381 2012-01-12
382 2012-01-13
383 2012-01-14
384 2012-01-15
385 2012-01-16
386 2012-01-17
387 2012-01-18
388 2012-01-19
389 2012-01-20
390 2012-01-21
391 2012-01-22
392 2012-01-23
393 2012-01-24
394 2012-01-25
395 2012-01-26
396 2012-01-27
397 2012-01-28
398 2012-01-29
399 2012-01-30
400 2012-01-31
401 2012-02-01
402 2012-02-02
403 2012-02-03
404 2012-02-04
405 2012-02-05
406 2012-02-06
407 2012-02-07
408 2012-02-08
409 2012-02-09
410 2012-02-10
411 2012-02-11
412 2012-02-12
413 2012-02-13
414 2012-02-14
415 2012-02-15
416 2012-02-16
417 2012-02-17
418 2012-02-18
419 2012-02-19
420 2012-02-20
421 2012-02-21
422 2012-02-22
423 2012-02-23
424 2012-02-24
425 2012-02-25
426 2012-02-26
427 2012-02-27
428 2012-02-28
429 2012-02-29
430 2012-03-01
431 2012-03-02
432 2012-03-03
433 2012-03-04
434 2012-03-05
435 2012-03-06
436 2012-03-07
437 2012-03-08
438 2012-03-09
439 2012-03-10
440 2012-03-11
441 2012-03-12
442 2012-03-13
443 2012-03-14
444 2012-03-15
445 2012-03-16
446 2012-03-17
447 2012-03-18
448 2012-03-19
449 2012-03-20
450 2012-03-21
451 2012-03-22
452 2012-03-23
453 2012-03-24
454 2012-03-25
455 2012-03-26
456 2012-03-27
457 2012-03-28
458 2012-03-29
459 2012-03-30
460 2012-03-31
461 2012-04-01
462 2012-04-02
463 2012-04-03
464 2012-04-04
465 2012-04-05
466 2012-04-06
467 2012-04-07
468 2012-04-08
469 2012-04-09
470 2012-04-10
471 2012-04-11
472 2012-04-12
473 2012-04-13
474 2012-04-14
475 2012-04-15
476 2012-04-16
477 2012-04-17
478 2012-04-18
479 2012-04-19
480 2012-04-20
481 2012-04-21
482 2012-04-22
483 2012-04-23
484 2012-04-24
485 2012-04-25
486 2012-04-26
487 2012-04-27
488 2012-04-28
489 2012-04-29
490 2012-04-30
491 2012-05-01
492 2012-05-02
493 2012-05-03
494 2012-05-04
495 2012-05-05
496 2012-05-06
497 2012-05-07
498 2012-05-08
499 2012-05-09
500 2012-05-10
501 2012-05-11
502 2012-05-12
503 2012-05-13
504 2012-05-14
505 2012-05-15
506 2012-05-16
507 2012-05-17
508 2012-05-18
509 2012-05-19
510 2012-05-20
511 2012-05-21
512 2012-05-22
513 2012-05-23
514 2012-05-24
515 2012-05-25
516 2012-05-26
517 2012-05-27
518 2012-05-28
519 2012-05-29
520 2012-05-30
521 2012-05-31
522 2012-06-01
523 2012-06-02
524 2012-06-03
525 2012-06-04
526 2012-06-05
527 2012-06-06
528 2012-06-07
529 2012-06-08
530 2012-06-09
531 2012-06-10
532 2012-06-11
533 2012-06-12
534 2012-06-13
535 2012-06-14
536 2012-06-15
537 2012-06-16
538 2012-06-17
539 2012-06-18
540 2012-06-19
541 2012-06-20
542 2012-06-21
543 2012-06-22
544 2012-06-23
545 2012-06-24
546 2012-06-25
547 2012-06-26
548 2012-06-27
549 2012-06-28
550 2012-06-29
551 2012-06-30
552 2012-07-01
553 2012-07-02
554 2012-07-03
555 2012-07-04
556 2012-07-05
557 2012-07-06
558 2012-07-07
559 2012-07-08
560 2012-07-09
561 2012-07-10
562 2012-07-11
563 2012-07-12
564 2012-07-13
565 2012-07-14
566 2012-07-15
567 2012-07-16
568 2012-07-17
569 2012-07-18
570 2012-07-19
571 2012-07-20
572 2012-07-21
573 2012-07-22
574 2012-07-23
575 2012-07-24
576 2012-07-25
577 2012-07-26
578 2012-07-27
579 2012-07-28
580 2012-07-29
581 2012-07-30
582 2012-07-31
583 2012-08-01
584 2012-08-02
585 2012-08-03
586 2012-08-04
587 2012-08-05
588 2012-08-06
589 2012-08-07
590 2012-08-08
591 2012-08-09
592 2012-08-10
593 2012-08-11
594 2012-08-12
595 2012-08-13
596 2012-08-14
597 2012-08-15
598 2012-08-16
599 2012-08-17
600 2012-08-18
601 2012-08-19
602 2012-08-20
603 2012-08-21
604 2012-08-22
605 2012-08-23
606 2012-08-24
607 2012-08-25
608 2012-08-26
609 2012-08-27
610 2012-08-28
611 2012-08-29
612 2012-08-30
613 2012-08-31
614 2012-09-01
615 2012-09-02
616 2012-09-03
617 2012-09-04
618 2012-09-05
619 2012-09-06
620 2012-09-07
621 2012-09-08
622 2012-09-09
623 2012-09-10
624 2012-09-11
625 2012-09-12
626 2012-09-13
627 2012-09-14
628 2012-09-15
629 2012-09-16
630 2012-09-17
631 2012-09-18
632 2012-09-19
633 2012-09-20
634 2012-09-21
635 2012-09-22
636 2012-09-23
637 2012-09-24
638 2012-09-25
639 2012-09-26
640 2012-09-27
641 2012-09-28
642 2012-09-29
643 2012-09-30
644 2012-10-01
645 2012-10-02
646 2012-10-03
647 2012-10-04
648 2012-10-05
649 2012-10-06
650 2012-10-07
651 2012-10-08
652 2012-10-09
653 2012-10-10
654 2012-10-11
655 2012-10-12
656 2012-10-13
657 2012-10-14
658 2012-10-15
659 2012-10-16
660 2012-10-17
661 2012-10-18
662 2012-10-19
663 2012-10-20
664 2012-10-21
665 2012-10-22
666 2012-10-23
667 2012-10-24
668 2012-10-25
669 2012-10-26
670 2012-10-27
671 2012-10-28
672 2012-10-29
673 2012-10-30
674 2012-10-31
675 2012-11-01
676 2012-11-02
677 2012-11-03
678 2012-11-04
679 2012-11-05
680 2012-11-06
681 2012-11-07
682 2012-11-08
683 2012-11-09
684 2012-11-10
685 2012-11-11
686 2012-11-12
687 2012-11-13
688 2012-11-14
689 2012-11-15
690 2012-11-16
691 2012-11-17
692 2012-11-18
693 2012-11-19
694 2012-11-20
695 2012-11-21
696 2012-11-22
697 2012-11-23
698 2012-11-24
699 2012-11-25
700 2012-11-26
701 2012-11-27
702 2012-11-28
703 2012-11-29
704 2012-11-30
705 2012-12-01
706 2012-12-02
707 2012-12-03
708 2012-12-04
709 2012-12-05
710 2012-12-06
711 2012-12-07
712 2012-12-08
713 2012-12-09
714 2012-12-10
715 2012-12-11
716 2012-12-12
717 2012-12-13
718 2012-12-14
719 2012-12-15
720 2012-12-16
721 2012-12-17
722 2012-12-18
723 2012-12-19
724 2012-12-20
725 2012-12-21
726 2012-12-22
727 2012-12-23
728 2012-12-24
729 2012-12-25
730 2012-12-26
731 2012-12-27
732 2012-12-28
733 2012-12-29
734 2012-12-30
735 2012-12-31
736 $
737
738 ## dconv.42.ctst ends here
+0
-737
test/dconv.043.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%D' <<EOF
3 2011-01-01
4 2011-01-02
5 2011-01-03
6 2011-01-04
7 2011-01-05
8 2011-01-06
9 2011-01-07
10 2011-01-08
11 2011-01-09
12 2011-01-10
13 2011-01-11
14 2011-01-12
15 2011-01-13
16 2011-01-14
17 2011-01-15
18 2011-01-16
19 2011-01-17
20 2011-01-18
21 2011-01-19
22 2011-01-20
23 2011-01-21
24 2011-01-22
25 2011-01-23
26 2011-01-24
27 2011-01-25
28 2011-01-26
29 2011-01-27
30 2011-01-28
31 2011-01-29
32 2011-01-30
33 2011-01-31
34 2011-02-01
35 2011-02-02
36 2011-02-03
37 2011-02-04
38 2011-02-05
39 2011-02-06
40 2011-02-07
41 2011-02-08
42 2011-02-09
43 2011-02-10
44 2011-02-11
45 2011-02-12
46 2011-02-13
47 2011-02-14
48 2011-02-15
49 2011-02-16
50 2011-02-17
51 2011-02-18
52 2011-02-19
53 2011-02-20
54 2011-02-21
55 2011-02-22
56 2011-02-23
57 2011-02-24
58 2011-02-25
59 2011-02-26
60 2011-02-27
61 2011-02-28
62 2011-03-01
63 2011-03-02
64 2011-03-03
65 2011-03-04
66 2011-03-05
67 2011-03-06
68 2011-03-07
69 2011-03-08
70 2011-03-09
71 2011-03-10
72 2011-03-11
73 2011-03-12
74 2011-03-13
75 2011-03-14
76 2011-03-15
77 2011-03-16
78 2011-03-17
79 2011-03-18
80 2011-03-19
81 2011-03-20
82 2011-03-21
83 2011-03-22
84 2011-03-23
85 2011-03-24
86 2011-03-25
87 2011-03-26
88 2011-03-27
89 2011-03-28
90 2011-03-29
91 2011-03-30
92 2011-03-31
93 2011-04-01
94 2011-04-02
95 2011-04-03
96 2011-04-04
97 2011-04-05
98 2011-04-06
99 2011-04-07
100 2011-04-08
101 2011-04-09
102 2011-04-10
103 2011-04-11
104 2011-04-12
105 2011-04-13
106 2011-04-14
107 2011-04-15
108 2011-04-16
109 2011-04-17
110 2011-04-18
111 2011-04-19
112 2011-04-20
113 2011-04-21
114 2011-04-22
115 2011-04-23
116 2011-04-24
117 2011-04-25
118 2011-04-26
119 2011-04-27
120 2011-04-28
121 2011-04-29
122 2011-04-30
123 2011-05-01
124 2011-05-02
125 2011-05-03
126 2011-05-04
127 2011-05-05
128 2011-05-06
129 2011-05-07
130 2011-05-08
131 2011-05-09
132 2011-05-10
133 2011-05-11
134 2011-05-12
135 2011-05-13
136 2011-05-14
137 2011-05-15
138 2011-05-16
139 2011-05-17
140 2011-05-18
141 2011-05-19
142 2011-05-20
143 2011-05-21
144 2011-05-22
145 2011-05-23
146 2011-05-24
147 2011-05-25
148 2011-05-26
149 2011-05-27
150 2011-05-28
151 2011-05-29
152 2011-05-30
153 2011-05-31
154 2011-06-01
155 2011-06-02
156 2011-06-03
157 2011-06-04
158 2011-06-05
159 2011-06-06
160 2011-06-07
161 2011-06-08
162 2011-06-09
163 2011-06-10
164 2011-06-11
165 2011-06-12
166 2011-06-13
167 2011-06-14
168 2011-06-15
169 2011-06-16
170 2011-06-17
171 2011-06-18
172 2011-06-19
173 2011-06-20
174 2011-06-21
175 2011-06-22
176 2011-06-23
177 2011-06-24
178 2011-06-25
179 2011-06-26
180 2011-06-27
181 2011-06-28
182 2011-06-29
183 2011-06-30
184 2011-07-01
185 2011-07-02
186 2011-07-03
187 2011-07-04
188 2011-07-05
189 2011-07-06
190 2011-07-07
191 2011-07-08
192 2011-07-09
193 2011-07-10
194 2011-07-11
195 2011-07-12
196 2011-07-13
197 2011-07-14
198 2011-07-15
199 2011-07-16
200 2011-07-17
201 2011-07-18
202 2011-07-19
203 2011-07-20
204 2011-07-21
205 2011-07-22
206 2011-07-23
207 2011-07-24
208 2011-07-25
209 2011-07-26
210 2011-07-27
211 2011-07-28
212 2011-07-29
213 2011-07-30
214 2011-07-31
215 2011-08-01
216 2011-08-02
217 2011-08-03
218 2011-08-04
219 2011-08-05
220 2011-08-06
221 2011-08-07
222 2011-08-08
223 2011-08-09
224 2011-08-10
225 2011-08-11
226 2011-08-12
227 2011-08-13
228 2011-08-14
229 2011-08-15
230 2011-08-16
231 2011-08-17
232 2011-08-18
233 2011-08-19
234 2011-08-20
235 2011-08-21
236 2011-08-22
237 2011-08-23
238 2011-08-24
239 2011-08-25
240 2011-08-26
241 2011-08-27
242 2011-08-28
243 2011-08-29
244 2011-08-30
245 2011-08-31
246 2011-09-01
247 2011-09-02
248 2011-09-03
249 2011-09-04
250 2011-09-05
251 2011-09-06
252 2011-09-07
253 2011-09-08
254 2011-09-09
255 2011-09-10
256 2011-09-11
257 2011-09-12
258 2011-09-13
259 2011-09-14
260 2011-09-15
261 2011-09-16
262 2011-09-17
263 2011-09-18
264 2011-09-19
265 2011-09-20
266 2011-09-21
267 2011-09-22
268 2011-09-23
269 2011-09-24
270 2011-09-25
271 2011-09-26
272 2011-09-27
273 2011-09-28
274 2011-09-29
275 2011-09-30
276 2011-10-01
277 2011-10-02
278 2011-10-03
279 2011-10-04
280 2011-10-05
281 2011-10-06
282 2011-10-07
283 2011-10-08
284 2011-10-09
285 2011-10-10
286 2011-10-11
287 2011-10-12
288 2011-10-13
289 2011-10-14
290 2011-10-15
291 2011-10-16
292 2011-10-17
293 2011-10-18
294 2011-10-19
295 2011-10-20
296 2011-10-21
297 2011-10-22
298 2011-10-23
299 2011-10-24
300 2011-10-25
301 2011-10-26
302 2011-10-27
303 2011-10-28
304 2011-10-29
305 2011-10-30
306 2011-10-31
307 2011-11-01
308 2011-11-02
309 2011-11-03
310 2011-11-04
311 2011-11-05
312 2011-11-06
313 2011-11-07
314 2011-11-08
315 2011-11-09
316 2011-11-10
317 2011-11-11
318 2011-11-12
319 2011-11-13
320 2011-11-14
321 2011-11-15
322 2011-11-16
323 2011-11-17
324 2011-11-18
325 2011-11-19
326 2011-11-20
327 2011-11-21
328 2011-11-22
329 2011-11-23
330 2011-11-24
331 2011-11-25
332 2011-11-26
333 2011-11-27
334 2011-11-28
335 2011-11-29
336 2011-11-30
337 2011-12-01
338 2011-12-02
339 2011-12-03
340 2011-12-04
341 2011-12-05
342 2011-12-06
343 2011-12-07
344 2011-12-08
345 2011-12-09
346 2011-12-10
347 2011-12-11
348 2011-12-12
349 2011-12-13
350 2011-12-14
351 2011-12-15
352 2011-12-16
353 2011-12-17
354 2011-12-18
355 2011-12-19
356 2011-12-20
357 2011-12-21
358 2011-12-22
359 2011-12-23
360 2011-12-24
361 2011-12-25
362 2011-12-26
363 2011-12-27
364 2011-12-28
365 2011-12-29
366 2011-12-30
367 2011-12-31
368 EOF
369 2011-001
370 2011-002
371 2011-003
372 2011-004
373 2011-005
374 2011-006
375 2011-007
376 2011-008
377 2011-009
378 2011-010
379 2011-011
380 2011-012
381 2011-013
382 2011-014
383 2011-015
384 2011-016
385 2011-017
386 2011-018
387 2011-019
388 2011-020
389 2011-021
390 2011-022
391 2011-023
392 2011-024
393 2011-025
394 2011-026
395 2011-027
396 2011-028
397 2011-029
398 2011-030
399 2011-031
400 2011-032
401 2011-033
402 2011-034
403 2011-035
404 2011-036
405 2011-037
406 2011-038
407 2011-039
408 2011-040
409 2011-041
410 2011-042
411 2011-043
412 2011-044
413 2011-045
414 2011-046
415 2011-047
416 2011-048
417 2011-049
418 2011-050
419 2011-051
420 2011-052
421 2011-053
422 2011-054
423 2011-055
424 2011-056
425 2011-057
426 2011-058
427 2011-059
428 2011-060
429 2011-061
430 2011-062
431 2011-063
432 2011-064
433 2011-065
434 2011-066
435 2011-067
436 2011-068
437 2011-069
438 2011-070
439 2011-071
440 2011-072
441 2011-073
442 2011-074
443 2011-075
444 2011-076
445 2011-077
446 2011-078
447 2011-079
448 2011-080
449 2011-081
450 2011-082
451 2011-083
452 2011-084
453 2011-085
454 2011-086
455 2011-087
456 2011-088
457 2011-089
458 2011-090
459 2011-091
460 2011-092
461 2011-093
462 2011-094
463 2011-095
464 2011-096
465 2011-097
466 2011-098
467 2011-099
468 2011-100
469 2011-101
470 2011-102
471 2011-103
472 2011-104
473 2011-105
474 2011-106
475 2011-107
476 2011-108
477 2011-109
478 2011-110
479 2011-111
480 2011-112
481 2011-113
482 2011-114
483 2011-115
484 2011-116
485 2011-117
486 2011-118
487 2011-119
488 2011-120
489 2011-121
490 2011-122
491 2011-123
492 2011-124
493 2011-125
494 2011-126
495 2011-127
496 2011-128
497 2011-129
498 2011-130
499 2011-131
500 2011-132
501 2011-133
502 2011-134
503 2011-135
504 2011-136
505 2011-137
506 2011-138
507 2011-139
508 2011-140
509 2011-141
510 2011-142
511 2011-143
512 2011-144
513 2011-145
514 2011-146
515 2011-147
516 2011-148
517 2011-149
518 2011-150
519 2011-151
520 2011-152
521 2011-153
522 2011-154
523 2011-155
524 2011-156
525 2011-157
526 2011-158
527 2011-159
528 2011-160
529 2011-161
530 2011-162
531 2011-163
532 2011-164
533 2011-165
534 2011-166
535 2011-167
536 2011-168
537 2011-169
538 2011-170
539 2011-171
540 2011-172
541 2011-173
542 2011-174
543 2011-175
544 2011-176
545 2011-177
546 2011-178
547 2011-179
548 2011-180
549 2011-181
550 2011-182
551 2011-183
552 2011-184
553 2011-185
554 2011-186
555 2011-187
556 2011-188
557 2011-189
558 2011-190
559 2011-191
560 2011-192
561 2011-193
562 2011-194
563 2011-195
564 2011-196
565 2011-197
566 2011-198
567 2011-199
568 2011-200
569 2011-201
570 2011-202
571 2011-203
572 2011-204
573 2011-205
574 2011-206
575 2011-207
576 2011-208
577 2011-209
578 2011-210
579 2011-211
580 2011-212
581 2011-213
582 2011-214
583 2011-215
584 2011-216
585 2011-217
586 2011-218
587 2011-219
588 2011-220
589 2011-221
590 2011-222
591 2011-223
592 2011-224
593 2011-225
594 2011-226
595 2011-227
596 2011-228
597 2011-229
598 2011-230
599 2011-231
600 2011-232
601 2011-233
602 2011-234
603 2011-235
604 2011-236
605 2011-237
606 2011-238
607 2011-239
608 2011-240
609 2011-241
610 2011-242
611 2011-243
612 2011-244
613 2011-245
614 2011-246
615 2011-247
616 2011-248
617 2011-249
618 2011-250
619 2011-251
620 2011-252
621 2011-253
622 2011-254
623 2011-255
624 2011-256
625 2011-257
626 2011-258
627 2011-259
628 2011-260
629 2011-261
630 2011-262
631 2011-263
632 2011-264
633 2011-265
634 2011-266
635 2011-267
636 2011-268
637 2011-269
638 2011-270
639 2011-271
640 2011-272
641 2011-273
642 2011-274
643 2011-275
644 2011-276
645 2011-277
646 2011-278
647 2011-279
648 2011-280
649 2011-281
650 2011-282
651 2011-283
652 2011-284
653 2011-285
654 2011-286
655 2011-287
656 2011-288
657 2011-289
658 2011-290
659 2011-291
660 2011-292
661 2011-293
662 2011-294
663 2011-295
664 2011-296
665 2011-297
666 2011-298
667 2011-299
668 2011-300
669 2011-301
670 2011-302
671 2011-303
672 2011-304
673 2011-305
674 2011-306
675 2011-307
676 2011-308
677 2011-309
678 2011-310
679 2011-311
680 2011-312
681 2011-313
682 2011-314
683 2011-315
684 2011-316
685 2011-317
686 2011-318
687 2011-319
688 2011-320
689 2011-321
690 2011-322
691 2011-323
692 2011-324
693 2011-325
694 2011-326
695 2011-327
696 2011-328
697 2011-329
698 2011-330
699 2011-331
700 2011-332
701 2011-333
702 2011-334
703 2011-335
704 2011-336
705 2011-337
706 2011-338
707 2011-339
708 2011-340
709 2011-341
710 2011-342
711 2011-343
712 2011-344
713 2011-345
714 2011-346
715 2011-347
716 2011-348
717 2011-349
718 2011-350
719 2011-351
720 2011-352
721 2011-353
722 2011-354
723 2011-355
724 2011-356
725 2011-357
726 2011-358
727 2011-359
728 2011-360
729 2011-361
730 2011-362
731 2011-363
732 2011-364
733 2011-365
734 $
735
736 ## dconv.43.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%D' <<EOF
3 2011-01-01
4 2011-01-02
5 2011-01-03
6 2011-01-04
7 2011-01-05
8 2011-01-06
9 2011-01-07
10 2011-01-08
11 2011-01-09
12 2011-01-10
13 2011-01-11
14 2011-01-12
15 2011-01-13
16 2011-01-14
17 2011-01-15
18 2011-01-16
19 2011-01-17
20 2011-01-18
21 2011-01-19
22 2011-01-20
23 2011-01-21
24 2011-01-22
25 2011-01-23
26 2011-01-24
27 2011-01-25
28 2011-01-26
29 2011-01-27
30 2011-01-28
31 2011-01-29
32 2011-01-30
33 2011-01-31
34 2011-02-01
35 2011-02-02
36 2011-02-03
37 2011-02-04
38 2011-02-05
39 2011-02-06
40 2011-02-07
41 2011-02-08
42 2011-02-09
43 2011-02-10
44 2011-02-11
45 2011-02-12
46 2011-02-13
47 2011-02-14
48 2011-02-15
49 2011-02-16
50 2011-02-17
51 2011-02-18
52 2011-02-19
53 2011-02-20
54 2011-02-21
55 2011-02-22
56 2011-02-23
57 2011-02-24
58 2011-02-25
59 2011-02-26
60 2011-02-27
61 2011-02-28
62 2011-03-01
63 2011-03-02
64 2011-03-03
65 2011-03-04
66 2011-03-05
67 2011-03-06
68 2011-03-07
69 2011-03-08
70 2011-03-09
71 2011-03-10
72 2011-03-11
73 2011-03-12
74 2011-03-13
75 2011-03-14
76 2011-03-15
77 2011-03-16
78 2011-03-17
79 2011-03-18
80 2011-03-19
81 2011-03-20
82 2011-03-21
83 2011-03-22
84 2011-03-23
85 2011-03-24
86 2011-03-25
87 2011-03-26
88 2011-03-27
89 2011-03-28
90 2011-03-29
91 2011-03-30
92 2011-03-31
93 2011-04-01
94 2011-04-02
95 2011-04-03
96 2011-04-04
97 2011-04-05
98 2011-04-06
99 2011-04-07
100 2011-04-08
101 2011-04-09
102 2011-04-10
103 2011-04-11
104 2011-04-12
105 2011-04-13
106 2011-04-14
107 2011-04-15
108 2011-04-16
109 2011-04-17
110 2011-04-18
111 2011-04-19
112 2011-04-20
113 2011-04-21
114 2011-04-22
115 2011-04-23
116 2011-04-24
117 2011-04-25
118 2011-04-26
119 2011-04-27
120 2011-04-28
121 2011-04-29
122 2011-04-30
123 2011-05-01
124 2011-05-02
125 2011-05-03
126 2011-05-04
127 2011-05-05
128 2011-05-06
129 2011-05-07
130 2011-05-08
131 2011-05-09
132 2011-05-10
133 2011-05-11
134 2011-05-12
135 2011-05-13
136 2011-05-14
137 2011-05-15
138 2011-05-16
139 2011-05-17
140 2011-05-18
141 2011-05-19
142 2011-05-20
143 2011-05-21
144 2011-05-22
145 2011-05-23
146 2011-05-24
147 2011-05-25
148 2011-05-26
149 2011-05-27
150 2011-05-28
151 2011-05-29
152 2011-05-30
153 2011-05-31
154 2011-06-01
155 2011-06-02
156 2011-06-03
157 2011-06-04
158 2011-06-05
159 2011-06-06
160 2011-06-07
161 2011-06-08
162 2011-06-09
163 2011-06-10
164 2011-06-11
165 2011-06-12
166 2011-06-13
167 2011-06-14
168 2011-06-15
169 2011-06-16
170 2011-06-17
171 2011-06-18
172 2011-06-19
173 2011-06-20
174 2011-06-21
175 2011-06-22
176 2011-06-23
177 2011-06-24
178 2011-06-25
179 2011-06-26
180 2011-06-27
181 2011-06-28
182 2011-06-29
183 2011-06-30
184 2011-07-01
185 2011-07-02
186 2011-07-03
187 2011-07-04
188 2011-07-05
189 2011-07-06
190 2011-07-07
191 2011-07-08
192 2011-07-09
193 2011-07-10
194 2011-07-11
195 2011-07-12
196 2011-07-13
197 2011-07-14
198 2011-07-15
199 2011-07-16
200 2011-07-17
201 2011-07-18
202 2011-07-19
203 2011-07-20
204 2011-07-21
205 2011-07-22
206 2011-07-23
207 2011-07-24
208 2011-07-25
209 2011-07-26
210 2011-07-27
211 2011-07-28
212 2011-07-29
213 2011-07-30
214 2011-07-31
215 2011-08-01
216 2011-08-02
217 2011-08-03
218 2011-08-04
219 2011-08-05
220 2011-08-06
221 2011-08-07
222 2011-08-08
223 2011-08-09
224 2011-08-10
225 2011-08-11
226 2011-08-12
227 2011-08-13
228 2011-08-14
229 2011-08-15
230 2011-08-16
231 2011-08-17
232 2011-08-18
233 2011-08-19
234 2011-08-20
235 2011-08-21
236 2011-08-22
237 2011-08-23
238 2011-08-24
239 2011-08-25
240 2011-08-26
241 2011-08-27
242 2011-08-28
243 2011-08-29
244 2011-08-30
245 2011-08-31
246 2011-09-01
247 2011-09-02
248 2011-09-03
249 2011-09-04
250 2011-09-05
251 2011-09-06
252 2011-09-07
253 2011-09-08
254 2011-09-09
255 2011-09-10
256 2011-09-11
257 2011-09-12
258 2011-09-13
259 2011-09-14
260 2011-09-15
261 2011-09-16
262 2011-09-17
263 2011-09-18
264 2011-09-19
265 2011-09-20
266 2011-09-21
267 2011-09-22
268 2011-09-23
269 2011-09-24
270 2011-09-25
271 2011-09-26
272 2011-09-27
273 2011-09-28
274 2011-09-29
275 2011-09-30
276 2011-10-01
277 2011-10-02
278 2011-10-03
279 2011-10-04
280 2011-10-05
281 2011-10-06
282 2011-10-07
283 2011-10-08
284 2011-10-09
285 2011-10-10
286 2011-10-11
287 2011-10-12
288 2011-10-13
289 2011-10-14
290 2011-10-15
291 2011-10-16
292 2011-10-17
293 2011-10-18
294 2011-10-19
295 2011-10-20
296 2011-10-21
297 2011-10-22
298 2011-10-23
299 2011-10-24
300 2011-10-25
301 2011-10-26
302 2011-10-27
303 2011-10-28
304 2011-10-29
305 2011-10-30
306 2011-10-31
307 2011-11-01
308 2011-11-02
309 2011-11-03
310 2011-11-04
311 2011-11-05
312 2011-11-06
313 2011-11-07
314 2011-11-08
315 2011-11-09
316 2011-11-10
317 2011-11-11
318 2011-11-12
319 2011-11-13
320 2011-11-14
321 2011-11-15
322 2011-11-16
323 2011-11-17
324 2011-11-18
325 2011-11-19
326 2011-11-20
327 2011-11-21
328 2011-11-22
329 2011-11-23
330 2011-11-24
331 2011-11-25
332 2011-11-26
333 2011-11-27
334 2011-11-28
335 2011-11-29
336 2011-11-30
337 2011-12-01
338 2011-12-02
339 2011-12-03
340 2011-12-04
341 2011-12-05
342 2011-12-06
343 2011-12-07
344 2011-12-08
345 2011-12-09
346 2011-12-10
347 2011-12-11
348 2011-12-12
349 2011-12-13
350 2011-12-14
351 2011-12-15
352 2011-12-16
353 2011-12-17
354 2011-12-18
355 2011-12-19
356 2011-12-20
357 2011-12-21
358 2011-12-22
359 2011-12-23
360 2011-12-24
361 2011-12-25
362 2011-12-26
363 2011-12-27
364 2011-12-28
365 2011-12-29
366 2011-12-30
367 2011-12-31
368 EOF
369 2011-001
370 2011-002
371 2011-003
372 2011-004
373 2011-005
374 2011-006
375 2011-007
376 2011-008
377 2011-009
378 2011-010
379 2011-011
380 2011-012
381 2011-013
382 2011-014
383 2011-015
384 2011-016
385 2011-017
386 2011-018
387 2011-019
388 2011-020
389 2011-021
390 2011-022
391 2011-023
392 2011-024
393 2011-025
394 2011-026
395 2011-027
396 2011-028
397 2011-029
398 2011-030
399 2011-031
400 2011-032
401 2011-033
402 2011-034
403 2011-035
404 2011-036
405 2011-037
406 2011-038
407 2011-039
408 2011-040
409 2011-041
410 2011-042
411 2011-043
412 2011-044
413 2011-045
414 2011-046
415 2011-047
416 2011-048
417 2011-049
418 2011-050
419 2011-051
420 2011-052
421 2011-053
422 2011-054
423 2011-055
424 2011-056
425 2011-057
426 2011-058
427 2011-059
428 2011-060
429 2011-061
430 2011-062
431 2011-063
432 2011-064
433 2011-065
434 2011-066
435 2011-067
436 2011-068
437 2011-069
438 2011-070
439 2011-071
440 2011-072
441 2011-073
442 2011-074
443 2011-075
444 2011-076
445 2011-077
446 2011-078
447 2011-079
448 2011-080
449 2011-081
450 2011-082
451 2011-083
452 2011-084
453 2011-085
454 2011-086
455 2011-087
456 2011-088
457 2011-089
458 2011-090
459 2011-091
460 2011-092
461 2011-093
462 2011-094
463 2011-095
464 2011-096
465 2011-097
466 2011-098
467 2011-099
468 2011-100
469 2011-101
470 2011-102
471 2011-103
472 2011-104
473 2011-105
474 2011-106
475 2011-107
476 2011-108
477 2011-109
478 2011-110
479 2011-111
480 2011-112
481 2011-113
482 2011-114
483 2011-115
484 2011-116
485 2011-117
486 2011-118
487 2011-119
488 2011-120
489 2011-121
490 2011-122
491 2011-123
492 2011-124
493 2011-125
494 2011-126
495 2011-127
496 2011-128
497 2011-129
498 2011-130
499 2011-131
500 2011-132
501 2011-133
502 2011-134
503 2011-135
504 2011-136
505 2011-137
506 2011-138
507 2011-139
508 2011-140
509 2011-141
510 2011-142
511 2011-143
512 2011-144
513 2011-145
514 2011-146
515 2011-147
516 2011-148
517 2011-149
518 2011-150
519 2011-151
520 2011-152
521 2011-153
522 2011-154
523 2011-155
524 2011-156
525 2011-157
526 2011-158
527 2011-159
528 2011-160
529 2011-161
530 2011-162
531 2011-163
532 2011-164
533 2011-165
534 2011-166
535 2011-167
536 2011-168
537 2011-169
538 2011-170
539 2011-171
540 2011-172
541 2011-173
542 2011-174
543 2011-175
544 2011-176
545 2011-177
546 2011-178
547 2011-179
548 2011-180
549 2011-181
550 2011-182
551 2011-183
552 2011-184
553 2011-185
554 2011-186
555 2011-187
556 2011-188
557 2011-189
558 2011-190
559 2011-191
560 2011-192
561 2011-193
562 2011-194
563 2011-195
564 2011-196
565 2011-197
566 2011-198
567 2011-199
568 2011-200
569 2011-201
570 2011-202
571 2011-203
572 2011-204
573 2011-205
574 2011-206
575 2011-207
576 2011-208
577 2011-209
578 2011-210
579 2011-211
580 2011-212
581 2011-213
582 2011-214
583 2011-215
584 2011-216
585 2011-217
586 2011-218
587 2011-219
588 2011-220
589 2011-221
590 2011-222
591 2011-223
592 2011-224
593 2011-225
594 2011-226
595 2011-227
596 2011-228
597 2011-229
598 2011-230
599 2011-231
600 2011-232
601 2011-233
602 2011-234
603 2011-235
604 2011-236
605 2011-237
606 2011-238
607 2011-239
608 2011-240
609 2011-241
610 2011-242
611 2011-243
612 2011-244
613 2011-245
614 2011-246
615 2011-247
616 2011-248
617 2011-249
618 2011-250
619 2011-251
620 2011-252
621 2011-253
622 2011-254
623 2011-255
624 2011-256
625 2011-257
626 2011-258
627 2011-259
628 2011-260
629 2011-261
630 2011-262
631 2011-263
632 2011-264
633 2011-265
634 2011-266
635 2011-267
636 2011-268
637 2011-269
638 2011-270
639 2011-271
640 2011-272
641 2011-273
642 2011-274
643 2011-275
644 2011-276
645 2011-277
646 2011-278
647 2011-279
648 2011-280
649 2011-281
650 2011-282
651 2011-283
652 2011-284
653 2011-285
654 2011-286
655 2011-287
656 2011-288
657 2011-289
658 2011-290
659 2011-291
660 2011-292
661 2011-293
662 2011-294
663 2011-295
664 2011-296
665 2011-297
666 2011-298
667 2011-299
668 2011-300
669 2011-301
670 2011-302
671 2011-303
672 2011-304
673 2011-305
674 2011-306
675 2011-307
676 2011-308
677 2011-309
678 2011-310
679 2011-311
680 2011-312
681 2011-313
682 2011-314
683 2011-315
684 2011-316
685 2011-317
686 2011-318
687 2011-319
688 2011-320
689 2011-321
690 2011-322
691 2011-323
692 2011-324
693 2011-325
694 2011-326
695 2011-327
696 2011-328
697 2011-329
698 2011-330
699 2011-331
700 2011-332
701 2011-333
702 2011-334
703 2011-335
704 2011-336
705 2011-337
706 2011-338
707 2011-339
708 2011-340
709 2011-341
710 2011-342
711 2011-343
712 2011-344
713 2011-345
714 2011-346
715 2011-347
716 2011-348
717 2011-349
718 2011-350
719 2011-351
720 2011-352
721 2011-353
722 2011-354
723 2011-355
724 2011-356
725 2011-357
726 2011-358
727 2011-359
728 2011-360
729 2011-361
730 2011-362
731 2011-363
732 2011-364
733 2011-365
734 $
735
736 ## dconv.43.ctst ends here
+0
-739
test/dconv.044.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%D' <<EOF
3 2012-01-01
4 2012-01-02
5 2012-01-03
6 2012-01-04
7 2012-01-05
8 2012-01-06
9 2012-01-07
10 2012-01-08
11 2012-01-09
12 2012-01-10
13 2012-01-11
14 2012-01-12
15 2012-01-13
16 2012-01-14
17 2012-01-15
18 2012-01-16
19 2012-01-17
20 2012-01-18
21 2012-01-19
22 2012-01-20
23 2012-01-21
24 2012-01-22
25 2012-01-23
26 2012-01-24
27 2012-01-25
28 2012-01-26
29 2012-01-27
30 2012-01-28
31 2012-01-29
32 2012-01-30
33 2012-01-31
34 2012-02-01
35 2012-02-02
36 2012-02-03
37 2012-02-04
38 2012-02-05
39 2012-02-06
40 2012-02-07
41 2012-02-08
42 2012-02-09
43 2012-02-10
44 2012-02-11
45 2012-02-12
46 2012-02-13
47 2012-02-14
48 2012-02-15
49 2012-02-16
50 2012-02-17
51 2012-02-18
52 2012-02-19
53 2012-02-20
54 2012-02-21
55 2012-02-22
56 2012-02-23
57 2012-02-24
58 2012-02-25
59 2012-02-26
60 2012-02-27
61 2012-02-28
62 2012-02-29
63 2012-03-01
64 2012-03-02
65 2012-03-03
66 2012-03-04
67 2012-03-05
68 2012-03-06
69 2012-03-07
70 2012-03-08
71 2012-03-09
72 2012-03-10
73 2012-03-11
74 2012-03-12
75 2012-03-13
76 2012-03-14
77 2012-03-15
78 2012-03-16
79 2012-03-17
80 2012-03-18
81 2012-03-19
82 2012-03-20
83 2012-03-21
84 2012-03-22
85 2012-03-23
86 2012-03-24
87 2012-03-25
88 2012-03-26
89 2012-03-27
90 2012-03-28
91 2012-03-29
92 2012-03-30
93 2012-03-31
94 2012-04-01
95 2012-04-02
96 2012-04-03
97 2012-04-04
98 2012-04-05
99 2012-04-06
100 2012-04-07
101 2012-04-08
102 2012-04-09
103 2012-04-10
104 2012-04-11
105 2012-04-12
106 2012-04-13
107 2012-04-14
108 2012-04-15
109 2012-04-16
110 2012-04-17
111 2012-04-18
112 2012-04-19
113 2012-04-20
114 2012-04-21
115 2012-04-22
116 2012-04-23
117 2012-04-24
118 2012-04-25
119 2012-04-26
120 2012-04-27
121 2012-04-28
122 2012-04-29
123 2012-04-30
124 2012-05-01
125 2012-05-02
126 2012-05-03
127 2012-05-04
128 2012-05-05
129 2012-05-06
130 2012-05-07
131 2012-05-08
132 2012-05-09
133 2012-05-10
134 2012-05-11
135 2012-05-12
136 2012-05-13
137 2012-05-14
138 2012-05-15
139 2012-05-16
140 2012-05-17
141 2012-05-18
142 2012-05-19
143 2012-05-20
144 2012-05-21
145 2012-05-22
146 2012-05-23
147 2012-05-24
148 2012-05-25
149 2012-05-26
150 2012-05-27
151 2012-05-28
152 2012-05-29
153 2012-05-30
154 2012-05-31
155 2012-06-01
156 2012-06-02
157 2012-06-03
158 2012-06-04
159 2012-06-05
160 2012-06-06
161 2012-06-07
162 2012-06-08
163 2012-06-09
164 2012-06-10
165 2012-06-11
166 2012-06-12
167 2012-06-13
168 2012-06-14
169 2012-06-15
170 2012-06-16
171 2012-06-17
172 2012-06-18
173 2012-06-19
174 2012-06-20
175 2012-06-21
176 2012-06-22
177 2012-06-23
178 2012-06-24
179 2012-06-25
180 2012-06-26
181 2012-06-27
182 2012-06-28
183 2012-06-29
184 2012-06-30
185 2012-07-01
186 2012-07-02
187 2012-07-03
188 2012-07-04
189 2012-07-05
190 2012-07-06
191 2012-07-07
192 2012-07-08
193 2012-07-09
194 2012-07-10
195 2012-07-11
196 2012-07-12
197 2012-07-13
198 2012-07-14
199 2012-07-15
200 2012-07-16
201 2012-07-17
202 2012-07-18
203 2012-07-19
204 2012-07-20
205 2012-07-21
206 2012-07-22
207 2012-07-23
208 2012-07-24
209 2012-07-25
210 2012-07-26
211 2012-07-27
212 2012-07-28
213 2012-07-29
214 2012-07-30
215 2012-07-31
216 2012-08-01
217 2012-08-02
218 2012-08-03
219 2012-08-04
220 2012-08-05
221 2012-08-06
222 2012-08-07
223 2012-08-08
224 2012-08-09
225 2012-08-10
226 2012-08-11
227 2012-08-12
228 2012-08-13
229 2012-08-14
230 2012-08-15
231 2012-08-16
232 2012-08-17
233 2012-08-18
234 2012-08-19
235 2012-08-20
236 2012-08-21
237 2012-08-22
238 2012-08-23
239 2012-08-24
240 2012-08-25
241 2012-08-26
242 2012-08-27
243 2012-08-28
244 2012-08-29
245 2012-08-30
246 2012-08-31
247 2012-09-01
248 2012-09-02
249 2012-09-03
250 2012-09-04
251 2012-09-05
252 2012-09-06
253 2012-09-07
254 2012-09-08
255 2012-09-09
256 2012-09-10
257 2012-09-11
258 2012-09-12
259 2012-09-13
260 2012-09-14
261 2012-09-15
262 2012-09-16
263 2012-09-17
264 2012-09-18
265 2012-09-19
266 2012-09-20
267 2012-09-21
268 2012-09-22
269 2012-09-23
270 2012-09-24
271 2012-09-25
272 2012-09-26
273 2012-09-27
274 2012-09-28
275 2012-09-29
276 2012-09-30
277 2012-10-01
278 2012-10-02
279 2012-10-03
280 2012-10-04
281 2012-10-05
282 2012-10-06
283 2012-10-07
284 2012-10-08
285 2012-10-09
286 2012-10-10
287 2012-10-11
288 2012-10-12
289 2012-10-13
290 2012-10-14
291 2012-10-15
292 2012-10-16
293 2012-10-17
294 2012-10-18
295 2012-10-19
296 2012-10-20
297 2012-10-21
298 2012-10-22
299 2012-10-23
300 2012-10-24
301 2012-10-25
302 2012-10-26
303 2012-10-27
304 2012-10-28
305 2012-10-29
306 2012-10-30
307 2012-10-31
308 2012-11-01
309 2012-11-02
310 2012-11-03
311 2012-11-04
312 2012-11-05
313 2012-11-06
314 2012-11-07
315 2012-11-08
316 2012-11-09
317 2012-11-10
318 2012-11-11
319 2012-11-12
320 2012-11-13
321 2012-11-14
322 2012-11-15
323 2012-11-16
324 2012-11-17
325 2012-11-18
326 2012-11-19
327 2012-11-20
328 2012-11-21
329 2012-11-22
330 2012-11-23
331 2012-11-24
332 2012-11-25
333 2012-11-26
334 2012-11-27
335 2012-11-28
336 2012-11-29
337 2012-11-30
338 2012-12-01
339 2012-12-02
340 2012-12-03
341 2012-12-04
342 2012-12-05
343 2012-12-06
344 2012-12-07
345 2012-12-08
346 2012-12-09
347 2012-12-10
348 2012-12-11
349 2012-12-12
350 2012-12-13
351 2012-12-14
352 2012-12-15
353 2012-12-16
354 2012-12-17
355 2012-12-18
356 2012-12-19
357 2012-12-20
358 2012-12-21
359 2012-12-22
360 2012-12-23
361 2012-12-24
362 2012-12-25
363 2012-12-26
364 2012-12-27
365 2012-12-28
366 2012-12-29
367 2012-12-30
368 2012-12-31
369 EOF
370 2012-001
371 2012-002
372 2012-003
373 2012-004
374 2012-005
375 2012-006
376 2012-007
377 2012-008
378 2012-009
379 2012-010
380 2012-011
381 2012-012
382 2012-013
383 2012-014
384 2012-015
385 2012-016
386 2012-017
387 2012-018
388 2012-019
389 2012-020
390 2012-021
391 2012-022
392 2012-023
393 2012-024
394 2012-025
395 2012-026
396 2012-027
397 2012-028
398 2012-029
399 2012-030
400 2012-031
401 2012-032
402 2012-033
403 2012-034
404 2012-035
405 2012-036
406 2012-037
407 2012-038
408 2012-039
409 2012-040
410 2012-041
411 2012-042
412 2012-043
413 2012-044
414 2012-045
415 2012-046
416 2012-047
417 2012-048
418 2012-049
419 2012-050
420 2012-051
421 2012-052
422 2012-053
423 2012-054
424 2012-055
425 2012-056
426 2012-057
427 2012-058
428 2012-059
429 2012-060
430 2012-061
431 2012-062
432 2012-063
433 2012-064
434 2012-065
435 2012-066
436 2012-067
437 2012-068
438 2012-069
439 2012-070
440 2012-071
441 2012-072
442 2012-073
443 2012-074
444 2012-075
445 2012-076
446 2012-077
447 2012-078
448 2012-079
449 2012-080
450 2012-081
451 2012-082
452 2012-083
453 2012-084
454 2012-085
455 2012-086
456 2012-087
457 2012-088
458 2012-089
459 2012-090
460 2012-091
461 2012-092
462 2012-093
463 2012-094
464 2012-095
465 2012-096
466 2012-097
467 2012-098
468 2012-099
469 2012-100
470 2012-101
471 2012-102
472 2012-103
473 2012-104
474 2012-105
475 2012-106
476 2012-107
477 2012-108
478 2012-109
479 2012-110
480 2012-111
481 2012-112
482 2012-113
483 2012-114
484 2012-115
485 2012-116
486 2012-117
487 2012-118
488 2012-119
489 2012-120
490 2012-121
491 2012-122
492 2012-123
493 2012-124
494 2012-125
495 2012-126
496 2012-127
497 2012-128
498 2012-129
499 2012-130
500 2012-131
501 2012-132
502 2012-133
503 2012-134
504 2012-135
505 2012-136
506 2012-137
507 2012-138
508 2012-139
509 2012-140
510 2012-141
511 2012-142
512 2012-143
513 2012-144
514 2012-145
515 2012-146
516 2012-147
517 2012-148
518 2012-149
519 2012-150
520 2012-151
521 2012-152
522 2012-153
523 2012-154
524 2012-155
525 2012-156
526 2012-157
527 2012-158
528 2012-159
529 2012-160
530 2012-161
531 2012-162
532 2012-163
533 2012-164
534 2012-165
535 2012-166
536 2012-167
537 2012-168
538 2012-169
539 2012-170
540 2012-171
541 2012-172
542 2012-173
543 2012-174
544 2012-175
545 2012-176
546 2012-177
547 2012-178
548 2012-179
549 2012-180
550 2012-181
551 2012-182
552 2012-183
553 2012-184
554 2012-185
555 2012-186
556 2012-187
557 2012-188
558 2012-189
559 2012-190
560 2012-191
561 2012-192
562 2012-193
563 2012-194
564 2012-195
565 2012-196
566 2012-197
567 2012-198
568 2012-199
569 2012-200
570 2012-201
571 2012-202
572 2012-203
573 2012-204
574 2012-205
575 2012-206
576 2012-207
577 2012-208
578 2012-209
579 2012-210
580 2012-211
581 2012-212
582 2012-213
583 2012-214
584 2012-215
585 2012-216
586 2012-217
587 2012-218
588 2012-219
589 2012-220
590 2012-221
591 2012-222
592 2012-223
593 2012-224
594 2012-225
595 2012-226
596 2012-227
597 2012-228
598 2012-229
599 2012-230
600 2012-231
601 2012-232
602 2012-233
603 2012-234
604 2012-235
605 2012-236
606 2012-237
607 2012-238
608 2012-239
609 2012-240
610 2012-241
611 2012-242
612 2012-243
613 2012-244
614 2012-245
615 2012-246
616 2012-247
617 2012-248
618 2012-249
619 2012-250
620 2012-251
621 2012-252
622 2012-253
623 2012-254
624 2012-255
625 2012-256
626 2012-257
627 2012-258
628 2012-259
629 2012-260
630 2012-261
631 2012-262
632 2012-263
633 2012-264
634 2012-265
635 2012-266
636 2012-267
637 2012-268
638 2012-269
639 2012-270
640 2012-271
641 2012-272
642 2012-273
643 2012-274
644 2012-275
645 2012-276
646 2012-277
647 2012-278
648 2012-279
649 2012-280
650 2012-281
651 2012-282
652 2012-283
653 2012-284
654 2012-285
655 2012-286
656 2012-287
657 2012-288
658 2012-289
659 2012-290
660 2012-291
661 2012-292
662 2012-293
663 2012-294
664 2012-295
665 2012-296
666 2012-297
667 2012-298
668 2012-299
669 2012-300
670 2012-301
671 2012-302
672 2012-303
673 2012-304
674 2012-305
675 2012-306
676 2012-307
677 2012-308
678 2012-309
679 2012-310
680 2012-311
681 2012-312
682 2012-313
683 2012-314
684 2012-315
685 2012-316
686 2012-317
687 2012-318
688 2012-319
689 2012-320
690 2012-321
691 2012-322
692 2012-323
693 2012-324
694 2012-325
695 2012-326
696 2012-327
697 2012-328
698 2012-329
699 2012-330
700 2012-331
701 2012-332
702 2012-333
703 2012-334
704 2012-335
705 2012-336
706 2012-337
707 2012-338
708 2012-339
709 2012-340
710 2012-341
711 2012-342
712 2012-343
713 2012-344
714 2012-345
715 2012-346
716 2012-347
717 2012-348
718 2012-349
719 2012-350
720 2012-351
721 2012-352
722 2012-353
723 2012-354
724 2012-355
725 2012-356
726 2012-357
727 2012-358
728 2012-359
729 2012-360
730 2012-361
731 2012-362
732 2012-363
733 2012-364
734 2012-365
735 2012-366
736 $
737
738 ## dconv.44.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%D' <<EOF
3 2012-01-01
4 2012-01-02
5 2012-01-03
6 2012-01-04
7 2012-01-05
8 2012-01-06
9 2012-01-07
10 2012-01-08
11 2012-01-09
12 2012-01-10
13 2012-01-11
14 2012-01-12
15 2012-01-13
16 2012-01-14
17 2012-01-15
18 2012-01-16
19 2012-01-17
20 2012-01-18
21 2012-01-19
22 2012-01-20
23 2012-01-21
24 2012-01-22
25 2012-01-23
26 2012-01-24
27 2012-01-25
28 2012-01-26
29 2012-01-27
30 2012-01-28
31 2012-01-29
32 2012-01-30
33 2012-01-31
34 2012-02-01
35 2012-02-02
36 2012-02-03
37 2012-02-04
38 2012-02-05
39 2012-02-06
40 2012-02-07
41 2012-02-08
42 2012-02-09
43 2012-02-10
44 2012-02-11
45 2012-02-12
46 2012-02-13
47 2012-02-14
48 2012-02-15
49 2012-02-16
50 2012-02-17
51 2012-02-18
52 2012-02-19
53 2012-02-20
54 2012-02-21
55 2012-02-22
56 2012-02-23
57 2012-02-24
58 2012-02-25
59 2012-02-26
60 2012-02-27
61 2012-02-28
62 2012-02-29
63 2012-03-01
64 2012-03-02
65 2012-03-03
66 2012-03-04
67 2012-03-05
68 2012-03-06
69 2012-03-07
70 2012-03-08
71 2012-03-09
72 2012-03-10
73 2012-03-11
74 2012-03-12
75 2012-03-13
76 2012-03-14
77 2012-03-15
78 2012-03-16
79 2012-03-17
80 2012-03-18
81 2012-03-19
82 2012-03-20
83 2012-03-21
84 2012-03-22
85 2012-03-23
86 2012-03-24
87 2012-03-25
88 2012-03-26
89 2012-03-27
90 2012-03-28
91 2012-03-29
92 2012-03-30
93 2012-03-31
94 2012-04-01
95 2012-04-02
96 2012-04-03
97 2012-04-04
98 2012-04-05
99 2012-04-06
100 2012-04-07
101 2012-04-08
102 2012-04-09
103 2012-04-10
104 2012-04-11
105 2012-04-12
106 2012-04-13
107 2012-04-14
108 2012-04-15
109 2012-04-16
110 2012-04-17
111 2012-04-18
112 2012-04-19
113 2012-04-20
114 2012-04-21
115 2012-04-22
116 2012-04-23
117 2012-04-24
118 2012-04-25
119 2012-04-26
120 2012-04-27
121 2012-04-28
122 2012-04-29
123 2012-04-30
124 2012-05-01
125 2012-05-02
126 2012-05-03
127 2012-05-04
128 2012-05-05
129 2012-05-06
130 2012-05-07
131 2012-05-08
132 2012-05-09
133 2012-05-10
134 2012-05-11
135 2012-05-12
136 2012-05-13
137 2012-05-14
138 2012-05-15
139 2012-05-16
140 2012-05-17
141 2012-05-18
142 2012-05-19
143 2012-05-20
144 2012-05-21
145 2012-05-22
146 2012-05-23
147 2012-05-24
148 2012-05-25
149 2012-05-26
150 2012-05-27
151 2012-05-28
152 2012-05-29
153 2012-05-30
154 2012-05-31
155 2012-06-01
156 2012-06-02
157 2012-06-03
158 2012-06-04
159 2012-06-05
160 2012-06-06
161 2012-06-07
162 2012-06-08
163 2012-06-09
164 2012-06-10
165 2012-06-11
166 2012-06-12
167 2012-06-13
168 2012-06-14
169 2012-06-15
170 2012-06-16
171 2012-06-17
172 2012-06-18
173 2012-06-19
174 2012-06-20
175 2012-06-21
176 2012-06-22
177 2012-06-23
178 2012-06-24
179 2012-06-25
180 2012-06-26
181 2012-06-27
182 2012-06-28
183 2012-06-29
184 2012-06-30
185 2012-07-01
186 2012-07-02
187 2012-07-03
188 2012-07-04
189 2012-07-05
190 2012-07-06
191 2012-07-07
192 2012-07-08
193 2012-07-09
194 2012-07-10
195 2012-07-11
196 2012-07-12
197 2012-07-13
198 2012-07-14
199 2012-07-15
200 2012-07-16
201 2012-07-17
202 2012-07-18
203 2012-07-19
204 2012-07-20
205 2012-07-21
206 2012-07-22
207 2012-07-23
208 2012-07-24
209 2012-07-25
210 2012-07-26
211 2012-07-27
212 2012-07-28
213 2012-07-29
214 2012-07-30
215 2012-07-31
216 2012-08-01
217 2012-08-02
218 2012-08-03
219 2012-08-04
220 2012-08-05
221 2012-08-06
222 2012-08-07
223 2012-08-08
224 2012-08-09
225 2012-08-10
226 2012-08-11
227 2012-08-12
228 2012-08-13
229 2012-08-14
230 2012-08-15
231 2012-08-16
232 2012-08-17
233 2012-08-18
234 2012-08-19
235 2012-08-20
236 2012-08-21
237 2012-08-22
238 2012-08-23
239 2012-08-24
240 2012-08-25
241 2012-08-26
242 2012-08-27
243 2012-08-28
244 2012-08-29
245 2012-08-30
246 2012-08-31
247 2012-09-01
248 2012-09-02
249 2012-09-03
250 2012-09-04
251 2012-09-05
252 2012-09-06
253 2012-09-07
254 2012-09-08
255 2012-09-09
256 2012-09-10
257 2012-09-11
258 2012-09-12
259 2012-09-13
260 2012-09-14
261 2012-09-15
262 2012-09-16
263 2012-09-17
264 2012-09-18
265 2012-09-19
266 2012-09-20
267 2012-09-21
268 2012-09-22
269 2012-09-23
270 2012-09-24
271 2012-09-25
272 2012-09-26
273 2012-09-27
274 2012-09-28
275 2012-09-29
276 2012-09-30
277 2012-10-01
278 2012-10-02
279 2012-10-03
280 2012-10-04
281 2012-10-05
282 2012-10-06
283 2012-10-07
284 2012-10-08
285 2012-10-09
286 2012-10-10
287 2012-10-11
288 2012-10-12
289 2012-10-13
290 2012-10-14
291 2012-10-15
292 2012-10-16
293 2012-10-17
294 2012-10-18
295 2012-10-19
296 2012-10-20
297 2012-10-21
298 2012-10-22
299 2012-10-23
300 2012-10-24
301 2012-10-25
302 2012-10-26
303 2012-10-27
304 2012-10-28
305 2012-10-29
306 2012-10-30
307 2012-10-31
308 2012-11-01
309 2012-11-02
310 2012-11-03
311 2012-11-04
312 2012-11-05
313 2012-11-06
314 2012-11-07
315 2012-11-08
316 2012-11-09
317 2012-11-10
318 2012-11-11
319 2012-11-12
320 2012-11-13
321 2012-11-14
322 2012-11-15
323 2012-11-16
324 2012-11-17
325 2012-11-18
326 2012-11-19
327 2012-11-20
328 2012-11-21
329 2012-11-22
330 2012-11-23
331 2012-11-24
332 2012-11-25
333 2012-11-26
334 2012-11-27
335 2012-11-28
336 2012-11-29
337 2012-11-30
338 2012-12-01
339 2012-12-02
340 2012-12-03
341 2012-12-04
342 2012-12-05
343 2012-12-06
344 2012-12-07
345 2012-12-08
346 2012-12-09
347 2012-12-10
348 2012-12-11
349 2012-12-12
350 2012-12-13
351 2012-12-14
352 2012-12-15
353 2012-12-16
354 2012-12-17
355 2012-12-18
356 2012-12-19
357 2012-12-20
358 2012-12-21
359 2012-12-22
360 2012-12-23
361 2012-12-24
362 2012-12-25
363 2012-12-26
364 2012-12-27
365 2012-12-28
366 2012-12-29
367 2012-12-30
368 2012-12-31
369 EOF
370 2012-001
371 2012-002
372 2012-003
373 2012-004
374 2012-005
375 2012-006
376 2012-007
377 2012-008
378 2012-009
379 2012-010
380 2012-011
381 2012-012
382 2012-013
383 2012-014
384 2012-015
385 2012-016
386 2012-017
387 2012-018
388 2012-019
389 2012-020
390 2012-021
391 2012-022
392 2012-023
393 2012-024
394 2012-025
395 2012-026
396 2012-027
397 2012-028
398 2012-029
399 2012-030
400 2012-031
401 2012-032
402 2012-033
403 2012-034
404 2012-035
405 2012-036
406 2012-037
407 2012-038
408 2012-039
409 2012-040
410 2012-041
411 2012-042
412 2012-043
413 2012-044
414 2012-045
415 2012-046
416 2012-047
417 2012-048
418 2012-049
419 2012-050
420 2012-051
421 2012-052
422 2012-053
423 2012-054
424 2012-055
425 2012-056
426 2012-057
427 2012-058
428 2012-059
429 2012-060
430 2012-061
431 2012-062
432 2012-063
433 2012-064
434 2012-065
435 2012-066
436 2012-067
437 2012-068
438 2012-069
439 2012-070
440 2012-071
441 2012-072
442 2012-073
443 2012-074
444 2012-075
445 2012-076
446 2012-077
447 2012-078
448 2012-079
449 2012-080
450 2012-081
451 2012-082
452 2012-083
453 2012-084
454 2012-085
455 2012-086
456 2012-087
457 2012-088
458 2012-089
459 2012-090
460 2012-091
461 2012-092
462 2012-093
463 2012-094
464 2012-095
465 2012-096
466 2012-097
467 2012-098
468 2012-099
469 2012-100
470 2012-101
471 2012-102
472 2012-103
473 2012-104
474 2012-105
475 2012-106
476 2012-107
477 2012-108
478 2012-109
479 2012-110
480 2012-111
481 2012-112
482 2012-113
483 2012-114
484 2012-115
485 2012-116
486 2012-117
487 2012-118
488 2012-119
489 2012-120
490 2012-121
491 2012-122
492 2012-123
493 2012-124
494 2012-125
495 2012-126
496 2012-127
497 2012-128
498 2012-129
499 2012-130
500 2012-131
501 2012-132
502 2012-133
503 2012-134
504 2012-135
505 2012-136
506 2012-137
507 2012-138
508 2012-139
509 2012-140
510 2012-141
511 2012-142
512 2012-143
513 2012-144
514 2012-145
515 2012-146
516 2012-147
517 2012-148
518 2012-149
519 2012-150
520 2012-151
521 2012-152
522 2012-153
523 2012-154
524 2012-155
525 2012-156
526 2012-157
527 2012-158
528 2012-159
529 2012-160
530 2012-161
531 2012-162
532 2012-163
533 2012-164
534 2012-165
535 2012-166
536 2012-167
537 2012-168
538 2012-169
539 2012-170
540 2012-171
541 2012-172
542 2012-173
543 2012-174
544 2012-175
545 2012-176
546 2012-177
547 2012-178
548 2012-179
549 2012-180
550 2012-181
551 2012-182
552 2012-183
553 2012-184
554 2012-185
555 2012-186
556 2012-187
557 2012-188
558 2012-189
559 2012-190
560 2012-191
561 2012-192
562 2012-193
563 2012-194
564 2012-195
565 2012-196
566 2012-197
567 2012-198
568 2012-199
569 2012-200
570 2012-201
571 2012-202
572 2012-203
573 2012-204
574 2012-205
575 2012-206
576 2012-207
577 2012-208
578 2012-209
579 2012-210
580 2012-211
581 2012-212
582 2012-213
583 2012-214
584 2012-215
585 2012-216
586 2012-217
587 2012-218
588 2012-219
589 2012-220
590 2012-221
591 2012-222
592 2012-223
593 2012-224
594 2012-225
595 2012-226
596 2012-227
597 2012-228
598 2012-229
599 2012-230
600 2012-231
601 2012-232
602 2012-233
603 2012-234
604 2012-235
605 2012-236
606 2012-237
607 2012-238
608 2012-239
609 2012-240
610 2012-241
611 2012-242
612 2012-243
613 2012-244
614 2012-245
615 2012-246
616 2012-247
617 2012-248
618 2012-249
619 2012-250
620 2012-251
621 2012-252
622 2012-253
623 2012-254
624 2012-255
625 2012-256
626 2012-257
627 2012-258
628 2012-259
629 2012-260
630 2012-261
631 2012-262
632 2012-263
633 2012-264
634 2012-265
635 2012-266
636 2012-267
637 2012-268
638 2012-269
639 2012-270
640 2012-271
641 2012-272
642 2012-273
643 2012-274
644 2012-275
645 2012-276
646 2012-277
647 2012-278
648 2012-279
649 2012-280
650 2012-281
651 2012-282
652 2012-283
653 2012-284
654 2012-285
655 2012-286
656 2012-287
657 2012-288
658 2012-289
659 2012-290
660 2012-291
661 2012-292
662 2012-293
663 2012-294
664 2012-295
665 2012-296
666 2012-297
667 2012-298
668 2012-299
669 2012-300
670 2012-301
671 2012-302
672 2012-303
673 2012-304
674 2012-305
675 2012-306
676 2012-307
677 2012-308
678 2012-309
679 2012-310
680 2012-311
681 2012-312
682 2012-313
683 2012-314
684 2012-315
685 2012-316
686 2012-317
687 2012-318
688 2012-319
689 2012-320
690 2012-321
691 2012-322
692 2012-323
693 2012-324
694 2012-325
695 2012-326
696 2012-327
697 2012-328
698 2012-329
699 2012-330
700 2012-331
701 2012-332
702 2012-333
703 2012-334
704 2012-335
705 2012-336
706 2012-337
707 2012-338
708 2012-339
709 2012-340
710 2012-341
711 2012-342
712 2012-343
713 2012-344
714 2012-345
715 2012-346
716 2012-347
717 2012-348
718 2012-349
719 2012-350
720 2012-351
721 2012-352
722 2012-353
723 2012-354
724 2012-355
725 2012-356
726 2012-357
727 2012-358
728 2012-359
729 2012-360
730 2012-361
731 2012-362
732 2012-363
733 2012-364
734 2012-365
735 2012-366
736 $
737
738 ## dconv.44.ctst ends here
+0
-7
test/dconv.045.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-08-28 -f '%Y-%C-%w'
3 2012-35-02
4 $
5
6 ## dconv.45.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-08-28 -f '%Y-%C-%w'
3 2012-35-02
4 $
5
6 ## dconv.45.ctst ends here
+0
-7
test/dconv.046.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-35-02 -i '%Y-%C-%w'
3 2012-W35-2
4 $
5
6 ## dconv.46.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-35-02 -i '%Y-%C-%w'
3 2012-W35-2
4 $
5
6 ## dconv.46.ctst ends here
+0
-7
test/dconv.047.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-35-02 -i '%Y-%C-%w' -f ymd
3 2012-08-28
4 $
5
6 ## dconv.47.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-35-02 -i '%Y-%C-%w' -f ymd
3 2012-08-28
4 $
5
6 ## dconv.47.ctst ends here
+0
-7
test/dconv.048.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-08-28 -f '%Y-%C-%w'
3 2012-35-02
4 $
5
6 ## dconv.48.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-08-28 -f '%Y-%C-%w'
3 2012-35-02
4 $
5
6 ## dconv.48.ctst ends here
+0
-7
test/dconv.049.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-35-02 -i '%Y-%C-%w'
3 2012-W35-2
4 $
5
6 ## dconv.49.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-35-02 -i '%Y-%C-%w'
3 2012-W35-2
4 $
5
6 ## dconv.49.ctst ends here
+0
-7
test/dconv.050.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-35-02 -i '%Y-%C-%w' -f %Y-%m-%d
3 2012-08-28
4 $
5
6 ## dconv.50.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-35-02 -i '%Y-%C-%w' -f %Y-%m-%d
3 2012-08-28
4 $
5
6 ## dconv.50.ctst ends here
+0
-7
test/dconv.051.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -f '%U %a'
3 00 Mon
4 $
5
6 ## dconv.51.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -f '%U %a'
3 00 Mon
4 $
5
6 ## dconv.51.ctst ends here
+0
-7
test/dconv.052.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -f '%V %a'
3 01 Mon
4 $
5
6 ## dconv.52.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -f '%V %a'
3 01 Mon
4 $
5
6 ## dconv.52.ctst ends here
+0
-7
test/dconv.053.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -f '%W %a'
3 01 Mon
4 $
5
6 ## dconv.53.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -f '%W %a'
3 01 Mon
4 $
5
6 ## dconv.53.ctst ends here
+0
-7
test/dconv.054.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -f '%C %a'
3 01 Mon
4 $
5
6 ## dconv.54.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -f '%C %a'
3 01 Mon
4 $
5
6 ## dconv.54.ctst ends here
+0
-7
test/dconv.055.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-01-01 -f '%U %a'
3 00 Tue
4 $
5
6 ## dconv.55.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-01-01 -f '%U %a'
3 00 Tue
4 $
5
6 ## dconv.55.ctst ends here
+0
-7
test/dconv.056.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-01-01 -f '%V %a'
3 01 Tue
4 $
5
6 ## dconv.56.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-01-01 -f '%V %a'
3 01 Tue
4 $
5
6 ## dconv.56.ctst ends here
+0
-7
test/dconv.057.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-01-01 -f '%W %a'
3 00 Tue
4 $
5
6 ## dconv.57.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-01-01 -f '%W %a'
3 00 Tue
4 $
5
6 ## dconv.57.ctst ends here
+0
-7
test/dconv.058.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-01-01 -f '%C %a'
3 01 Tue
4 $
5
6 ## dconv.58.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-01-01 -f '%C %a'
3 01 Tue
4 $
5
6 ## dconv.58.ctst ends here
+0
-7
test/dconv.059.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-01-02 -i '%Y-%C-%w' -f %F
3 2008-01-01
4 $
5
6 ## dconv.59.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-01-02 -i '%Y-%C-%w' -f %F
3 2008-01-01
4 $
5
6 ## dconv.59.ctst ends here
+0
-7
test/dconv.060.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-00-02 -i '%Y-%W-%w' -f %F
3 2008-01-01
4 $
5
6 ## dconv.60.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-00-02 -i '%Y-%W-%w' -f %F
3 2008-01-01
4 $
5
6 ## dconv.60.ctst ends here
+0
-7
test/dconv.061.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-01-02 -i '%Y-%V-%w' -f %F
3 2008-01-01
4 $
5
6 ## dconv.61.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-01-02 -i '%Y-%V-%w' -f %F
3 2008-01-01
4 $
5
6 ## dconv.61.ctst ends here
+0
-7
test/dconv.062.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-00-02 -i '%Y-%U-%w' -f %F
3 2008-01-01
4 $
5
6 ## dconv.62.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-00-02 -i '%Y-%U-%w' -f %F
3 2008-01-01
4 $
5
6 ## dconv.62.ctst ends here
+0
-7
test/dconv.063.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-00-01 -i '%Y-%U-%w' -f %F
3 2007-01-01
4 $
5
6 ## dconv.63.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-00-01 -i '%Y-%U-%w' -f %F
3 2007-01-01
4 $
5
6 ## dconv.63.ctst ends here
+0
-7
test/dconv.064.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%V-%w' -f %F
3 2007-01-01
4 $
5
6 ## dconv.64.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%V-%w' -f %F
3 2007-01-01
4 $
5
6 ## dconv.64.ctst ends here
+0
-7
test/dconv.065.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%W-%w' -f %F
3 2007-01-01
4 $
5
6 ## dconv.65.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%W-%w' -f %F
3 2007-01-01
4 $
5
6 ## dconv.65.ctst ends here
+0
-7
test/dconv.066.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%C-%w' -f %F
3 2007-01-01
4 $
5
6 ## dconv.66.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%C-%w' -f %F
3 2007-01-01
4 $
5
6 ## dconv.66.ctst ends here
+0
-7
test/dconv.067.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-01-Mon -i '%Y-%V-%a'
3 2008-W01-1
4 $
5
6 ## dconv.67.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-01-Mon -i '%Y-%V-%a'
3 2008-W01-1
4 $
5
6 ## dconv.67.ctst ends here
+0
-7
test/dconv.068.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%V-%w'
3 2007-W01-1
4 $
5
6 ## dconv.68.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%V-%w'
3 2007-W01-1
4 $
5
6 ## dconv.68.ctst ends here
+0
-7
test/dconv.069.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2008-01-Mon -i '%Y-%V-%a' -f ymd
3 2007-12-31
4 $
5
6 ## dconv.69.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2008-01-Mon -i '%Y-%V-%a' -f ymd
3 2007-12-31
4 $
5
6 ## dconv.69.ctst ends here
+0
-7
test/dconv.070.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%V-%w' -f ymd
3 2007-01-01
4 $
5
6 ## dconv.70.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-01-01 -i '%Y-%V-%w' -f ymd
3 2007-01-01
4 $
5
6 ## dconv.70.ctst ends here
+0
-7
test/dconv.071.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-W01-1 -i '%Y-W%W-%w'
3 2007-W01-1
4 $
5
6 ## dconv.71.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-W01-1 -i '%Y-W%W-%w'
3 2007-W01-1
4 $
5
6 ## dconv.71.ctst ends here
+0
-7
test/dconv.072.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-W01-1 -i '%Y-W%W-%w' -f ymd
3 2007-01-01
4 $
5
6 ## dconv.72.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-W01-1 -i '%Y-W%W-%w' -f ymd
3 2007-01-01
4 $
5
6 ## dconv.72.ctst ends here
+0
-7
test/dconv.073.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-W01-1 -i '%Y-W%U-%w'
3 2007-W02-1
4 $
5
6 ## dconv.73.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-W01-1 -i '%Y-W%U-%w'
3 2007-W02-1
4 $
5
6 ## dconv.73.ctst ends here
+0
-7
test/dconv.074.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2007-W01-1 -i '%Y-W%U-%w' -f ymd
3 2007-01-08
4 $
5
6 ## dconv.74.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2007-W01-1 -i '%Y-W%U-%w' -f ymd
3 2007-01-08
4 $
5
6 ## dconv.74.ctst ends here
+0
-7
test/dconv.075.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2009-W53-7 -i '%Y-W%V-%w'
3 2009-W53-7
4 $
5
6 ## dconv.75.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2009-W53-7 -i '%Y-W%V-%w'
3 2009-W53-7
4 $
5
6 ## dconv.75.ctst ends here
+0
-7
test/dconv.076.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2009-W53-7 -i '%Y-W%V-%w' -f %F
3 2010-01-03
4 $
5
6 ## dconv.76.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2009-W53-7 -i '%Y-W%V-%w' -f %F
3 2010-01-03
4 $
5
6 ## dconv.76.ctst ends here
+0
-7
test/dconv.077.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-12-31 -f ywd
3 2013-W01-1
4 $
5
6 ## dconv.77.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-12-31 -f ywd
3 2013-W01-1
4 $
5
6 ## dconv.77.ctst ends here
+0
-7
test/dconv.078.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2010-01-01 -f ywd
3 2009-W53-5
4 $
5
6 ## dconv.78.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2010-01-01 -f ywd
3 2009-W53-5
4 $
5
6 ## dconv.78.ctst ends here
+0
-7
test/dconv.079.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2009-W53-7
3 2009-W53-7
4 $
5
6 ## dconv.79.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2009-W53-7
3 2009-W53-7
4 $
5
6 ## dconv.79.ctst ends here
+0
-7
test/dconv.080.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2010-W53-7
3 2010-W52-7
4 $
5
6 ## dconv.80.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2010-W53-7
3 2010-W52-7
4 $
5
6 ## dconv.80.ctst ends here
+0
-119
test/dconv.081.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%C-%w' <<EOF
3 1917-01-01-00
4 1917-01-01-01
5 1917-01-01-02
6 1917-01-01-03
7 1917-01-01-04
8 1917-01-01-05
9 1917-01-01-06
10 1918-01-01-00
11 1918-01-01-01
12 1918-01-01-02
13 1918-01-01-03
14 1918-01-01-04
15 1918-01-01-05
16 1918-01-01-06
17 1919-01-01-00
18 1919-01-01-01
19 1919-01-01-02
20 1919-01-01-03
21 1919-01-01-04
22 1919-01-01-05
23 1919-01-01-06
24 1920-01-01-00
25 1920-01-01-01
26 1920-01-01-02
27 1920-01-01-03
28 1920-01-01-04
29 1920-01-01-05
30 1920-01-01-06
31 1921-01-01-00
32 1921-01-01-01
33 1921-01-01-02
34 1921-01-01-03
35 1921-01-01-04
36 1921-01-01-05
37 1921-01-01-06
38 1922-01-01-00
39 1922-01-01-01
40 1922-01-01-02
41 1922-01-01-03
42 1922-01-01-04
43 1922-01-01-05
44 1922-01-01-06
45 1923-01-01-00
46 1923-01-01-01
47 1923-01-01-02
48 1923-01-01-03
49 1923-01-01-04
50 1923-01-01-05
51 1923-01-01-06
52 1924-01-01-00
53 1924-01-01-01
54 1924-01-01-02
55 1924-01-01-03
56 1924-01-01-04
57 1924-01-01-05
58 1924-01-01-06
59 EOF
60 1917-01-00
61 1917-01-01
62 1917-01-02
63 1917-01-03
64 1917-01-04
65 1917-01-05
66 1917-01-06
67 1918-01-00
68 1918-01-01
69 1918-01-02
70 1918-01-03
71 1918-01-04
72 1918-01-05
73 1918-01-06
74 1919-01-00
75 1919-01-01
76 1919-01-02
77 1919-01-03
78 1919-01-04
79 1919-01-05
80 1919-01-06
81 1920-01-00
82 1920-01-01
83 1920-01-02
84 1920-01-03
85 1920-01-04
86 1920-01-05
87 1920-01-06
88 1921-01-00
89 1921-01-01
90 1921-01-02
91 1921-01-03
92 1921-01-04
93 1921-01-05
94 1921-01-06
95 1922-01-00
96 1922-01-01
97 1922-01-02
98 1922-01-03
99 1922-01-04
100 1922-01-05
101 1922-01-06
102 1923-01-00
103 1923-01-01
104 1923-01-02
105 1923-01-03
106 1923-01-04
107 1923-01-05
108 1923-01-06
109 1924-01-00
110 1924-01-01
111 1924-01-02
112 1924-01-03
113 1924-01-04
114 1924-01-05
115 1924-01-06
116 $
117
118 ## dconv.81.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%C-%w' <<EOF
3 1917-01-01-00
4 1917-01-01-01
5 1917-01-01-02
6 1917-01-01-03
7 1917-01-01-04
8 1917-01-01-05
9 1917-01-01-06
10 1918-01-01-00
11 1918-01-01-01
12 1918-01-01-02
13 1918-01-01-03
14 1918-01-01-04
15 1918-01-01-05
16 1918-01-01-06
17 1919-01-01-00
18 1919-01-01-01
19 1919-01-01-02
20 1919-01-01-03
21 1919-01-01-04
22 1919-01-01-05
23 1919-01-01-06
24 1920-01-01-00
25 1920-01-01-01
26 1920-01-01-02
27 1920-01-01-03
28 1920-01-01-04
29 1920-01-01-05
30 1920-01-01-06
31 1921-01-01-00
32 1921-01-01-01
33 1921-01-01-02
34 1921-01-01-03
35 1921-01-01-04
36 1921-01-01-05
37 1921-01-01-06
38 1922-01-01-00
39 1922-01-01-01
40 1922-01-01-02
41 1922-01-01-03
42 1922-01-01-04
43 1922-01-01-05
44 1922-01-01-06
45 1923-01-01-00
46 1923-01-01-01
47 1923-01-01-02
48 1923-01-01-03
49 1923-01-01-04
50 1923-01-01-05
51 1923-01-01-06
52 1924-01-01-00
53 1924-01-01-01
54 1924-01-01-02
55 1924-01-01-03
56 1924-01-01-04
57 1924-01-01-05
58 1924-01-01-06
59 EOF
60 1917-01-00
61 1917-01-01
62 1917-01-02
63 1917-01-03
64 1917-01-04
65 1917-01-05
66 1917-01-06
67 1918-01-00
68 1918-01-01
69 1918-01-02
70 1918-01-03
71 1918-01-04
72 1918-01-05
73 1918-01-06
74 1919-01-00
75 1919-01-01
76 1919-01-02
77 1919-01-03
78 1919-01-04
79 1919-01-05
80 1919-01-06
81 1920-01-00
82 1920-01-01
83 1920-01-02
84 1920-01-03
85 1920-01-04
86 1920-01-05
87 1920-01-06
88 1921-01-00
89 1921-01-01
90 1921-01-02
91 1921-01-03
92 1921-01-04
93 1921-01-05
94 1921-01-06
95 1922-01-00
96 1922-01-01
97 1922-01-02
98 1922-01-03
99 1922-01-04
100 1922-01-05
101 1922-01-06
102 1923-01-00
103 1923-01-01
104 1923-01-02
105 1923-01-03
106 1923-01-04
107 1923-01-05
108 1923-01-06
109 1924-01-00
110 1924-01-01
111 1924-01-02
112 1924-01-03
113 1924-01-04
114 1924-01-05
115 1924-01-06
116 $
117
118 ## dconv.81.ctst ends here
+0
-119
test/dconv.082.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%C-%w' <<EOF
3 1917-01-02-00
4 1917-01-02-01
5 1917-01-02-02
6 1917-01-02-03
7 1917-01-02-04
8 1917-01-02-05
9 1917-01-02-06
10 1918-01-02-00
11 1918-01-02-01
12 1918-01-02-02
13 1918-01-02-03
14 1918-01-02-04
15 1918-01-02-05
16 1918-01-02-06
17 1919-01-02-00
18 1919-01-02-01
19 1919-01-02-02
20 1919-01-02-03
21 1919-01-02-04
22 1919-01-02-05
23 1919-01-02-06
24 1920-01-02-00
25 1920-01-02-01
26 1920-01-02-02
27 1920-01-02-03
28 1920-01-02-04
29 1920-01-02-05
30 1920-01-02-06
31 1921-01-02-00
32 1921-01-02-01
33 1921-01-02-02
34 1921-01-02-03
35 1921-01-02-04
36 1921-01-02-05
37 1921-01-02-06
38 1922-01-02-00
39 1922-01-02-01
40 1922-01-02-02
41 1922-01-02-03
42 1922-01-02-04
43 1922-01-02-05
44 1922-01-02-06
45 1923-01-02-00
46 1923-01-02-01
47 1923-01-02-02
48 1923-01-02-03
49 1923-01-02-04
50 1923-01-02-05
51 1923-01-02-06
52 1924-01-02-00
53 1924-01-02-01
54 1924-01-02-02
55 1924-01-02-03
56 1924-01-02-04
57 1924-01-02-05
58 1924-01-02-06
59 EOF
60 1917-02-00
61 1917-02-01
62 1917-02-02
63 1917-02-03
64 1917-02-04
65 1917-02-05
66 1917-02-06
67 1918-02-00
68 1918-02-01
69 1918-02-02
70 1918-02-03
71 1918-02-04
72 1918-02-05
73 1918-02-06
74 1919-02-00
75 1919-02-01
76 1919-02-02
77 1919-02-03
78 1919-02-04
79 1919-02-05
80 1919-02-06
81 1920-02-00
82 1920-02-01
83 1920-02-02
84 1920-02-03
85 1920-02-04
86 1920-02-05
87 1920-02-06
88 1921-02-00
89 1921-02-01
90 1921-02-02
91 1921-02-03
92 1921-02-04
93 1921-02-05
94 1921-02-06
95 1922-02-00
96 1922-02-01
97 1922-02-02
98 1922-02-03
99 1922-02-04
100 1922-02-05
101 1922-02-06
102 1923-02-00
103 1923-02-01
104 1923-02-02
105 1923-02-03
106 1923-02-04
107 1923-02-05
108 1923-02-06
109 1924-02-00
110 1924-02-01
111 1924-02-02
112 1924-02-03
113 1924-02-04
114 1924-02-05
115 1924-02-06
116 $
117
118 ## dconv.82.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%C-%w' <<EOF
3 1917-01-02-00
4 1917-01-02-01
5 1917-01-02-02
6 1917-01-02-03
7 1917-01-02-04
8 1917-01-02-05
9 1917-01-02-06
10 1918-01-02-00
11 1918-01-02-01
12 1918-01-02-02
13 1918-01-02-03
14 1918-01-02-04
15 1918-01-02-05
16 1918-01-02-06
17 1919-01-02-00
18 1919-01-02-01
19 1919-01-02-02
20 1919-01-02-03
21 1919-01-02-04
22 1919-01-02-05
23 1919-01-02-06
24 1920-01-02-00
25 1920-01-02-01
26 1920-01-02-02
27 1920-01-02-03
28 1920-01-02-04
29 1920-01-02-05
30 1920-01-02-06
31 1921-01-02-00
32 1921-01-02-01
33 1921-01-02-02
34 1921-01-02-03
35 1921-01-02-04
36 1921-01-02-05
37 1921-01-02-06
38 1922-01-02-00
39 1922-01-02-01
40 1922-01-02-02
41 1922-01-02-03
42 1922-01-02-04
43 1922-01-02-05
44 1922-01-02-06
45 1923-01-02-00
46 1923-01-02-01
47 1923-01-02-02
48 1923-01-02-03
49 1923-01-02-04
50 1923-01-02-05
51 1923-01-02-06
52 1924-01-02-00
53 1924-01-02-01
54 1924-01-02-02
55 1924-01-02-03
56 1924-01-02-04
57 1924-01-02-05
58 1924-01-02-06
59 EOF
60 1917-02-00
61 1917-02-01
62 1917-02-02
63 1917-02-03
64 1917-02-04
65 1917-02-05
66 1917-02-06
67 1918-02-00
68 1918-02-01
69 1918-02-02
70 1918-02-03
71 1918-02-04
72 1918-02-05
73 1918-02-06
74 1919-02-00
75 1919-02-01
76 1919-02-02
77 1919-02-03
78 1919-02-04
79 1919-02-05
80 1919-02-06
81 1920-02-00
82 1920-02-01
83 1920-02-02
84 1920-02-03
85 1920-02-04
86 1920-02-05
87 1920-02-06
88 1921-02-00
89 1921-02-01
90 1921-02-02
91 1921-02-03
92 1921-02-04
93 1921-02-05
94 1921-02-06
95 1922-02-00
96 1922-02-01
97 1922-02-02
98 1922-02-03
99 1922-02-04
100 1922-02-05
101 1922-02-06
102 1923-02-00
103 1923-02-01
104 1923-02-02
105 1923-02-03
106 1923-02-04
107 1923-02-05
108 1923-02-06
109 1924-02-00
110 1924-02-01
111 1924-02-02
112 1924-02-03
113 1924-02-04
114 1924-02-05
115 1924-02-06
116 $
117
118 ## dconv.82.ctst ends here
+0
-63
test/dconv.083.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-01-01-01
4 1917-01-01-02
5 1917-01-01-03
6 1917-01-01-04
7 1917-01-01-05
8 1917-01-01-06
9 1917-01-01-00
10 1917-01-02-01
11 1917-01-02-02
12 1917-01-02-03
13 1917-01-02-04
14 1917-01-02-05
15 1917-01-02-06
16 1917-01-02-00
17 1917-01-03-01
18 1917-01-03-02
19 1917-01-03-03
20 1917-01-03-04
21 1917-01-03-05
22 1917-01-03-06
23 1917-01-03-00
24 1917-01-04-01
25 1917-01-04-02
26 1917-01-04-03
27 1917-01-04-04
28 1917-01-04-05
29 1917-01-04-06
30 1917-01-04-00
31 EOF
32 1917-W01-1
33 1917-W01-2
34 1917-W01-3
35 1917-W01-4
36 1917-W01-5
37 1917-W01-6
38 1917-W01-7
39 1917-W02-1
40 1917-W02-2
41 1917-W02-3
42 1917-W02-4
43 1917-W02-5
44 1917-W02-6
45 1917-W02-7
46 1917-W03-1
47 1917-W03-2
48 1917-W03-3
49 1917-W03-4
50 1917-W03-5
51 1917-W03-6
52 1917-W03-7
53 1917-W04-1
54 1917-W04-2
55 1917-W04-3
56 1917-W04-4
57 1917-W04-5
58 1917-W04-6
59 1917-W04-7
60 $
61
62 ## dconv.83.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-01-01-01
4 1917-01-01-02
5 1917-01-01-03
6 1917-01-01-04
7 1917-01-01-05
8 1917-01-01-06
9 1917-01-01-07
10 1917-01-01-00
11 1917-01-02-01
12 1917-01-02-02
13 1917-01-02-03
14 1917-01-02-04
15 1917-01-02-05
16 1917-01-02-06
17 1917-01-02-07
18 1917-01-02-00
19 1917-01-03-01
20 1917-01-03-02
21 1917-01-03-03
22 1917-01-03-04
23 1917-01-03-05
24 1917-01-03-06
25 1917-01-03-07
26 1917-01-03-00
27 1917-01-04-01
28 1917-01-04-02
29 1917-01-04-03
30 1917-01-04-04
31 1917-01-04-05
32 1917-01-04-06
33 1917-01-04-07
34 1917-01-04-00
35 EOF
36 1917-W01-1
37 1917-W01-2
38 1917-W01-3
39 1917-W01-4
40 1917-W01-5
41 1917-W01-6
42 1917-W01-7
43 1917-W01-0
44 1917-W02-1
45 1917-W02-2
46 1917-W02-3
47 1917-W02-4
48 1917-W02-5
49 1917-W02-6
50 1917-W02-7
51 1917-W02-0
52 1917-W03-1
53 1917-W03-2
54 1917-W03-3
55 1917-W03-4
56 1917-W03-5
57 1917-W03-6
58 1917-W03-7
59 1917-W03-0
60 1917-W04-1
61 1917-W04-2
62 1917-W04-3
63 1917-W04-4
64 1917-W04-5
65 1917-W04-6
66 1917-W04-7
67 1917-W04-0
68 $
69
70 ## dconv.83.ctst ends here
+0
-63
test/dconv.084.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ymcw <<EOF
3 1917-W01-1
4 1917-W01-2
5 1917-W01-3
6 1917-W01-4
7 1917-W01-5
8 1917-W01-6
9 1917-W01-7
10 1917-W02-1
11 1917-W02-2
12 1917-W02-3
13 1917-W02-4
14 1917-W02-5
15 1917-W02-6
16 1917-W02-7
17 1917-W03-1
18 1917-W03-2
19 1917-W03-3
20 1917-W03-4
21 1917-W03-5
22 1917-W03-6
23 1917-W03-7
24 1917-W04-1
25 1917-W04-2
26 1917-W04-3
27 1917-W04-4
28 1917-W04-5
29 1917-W04-6
30 1917-W04-7
31 EOF
32 1917-01-01-01
33 1917-01-01-02
34 1917-01-01-03
35 1917-01-01-04
36 1917-01-01-05
37 1917-01-01-06
38 1917-01-01-00
39 1917-01-02-01
40 1917-01-02-02
41 1917-01-02-03
42 1917-01-02-04
43 1917-01-02-05
44 1917-01-02-06
45 1917-01-02-00
46 1917-01-03-01
47 1917-01-03-02
48 1917-01-03-03
49 1917-01-03-04
50 1917-01-03-05
51 1917-01-03-06
52 1917-01-03-00
53 1917-01-04-01
54 1917-01-04-02
55 1917-01-04-03
56 1917-01-04-04
57 1917-01-04-05
58 1917-01-04-06
59 1917-01-04-00
60 $
61
62 ## dconv.84.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ymcw <<EOF
3 1917-W01
4 1917-W01-1
5 1917-W01-2
6 1917-W01-3
7 1917-W01-4
8 1917-W01-5
9 1917-W01-6
10 1917-W01-7
11 1917-W02-0
12 1917-W02-1
13 1917-W02-2
14 1917-W02-3
15 1917-W02-4
16 1917-W02-5
17 1917-W02-6
18 1917-W02-7
19 1917-W03-0
20 1917-W03-1
21 1917-W03-2
22 1917-W03-3
23 1917-W03-4
24 1917-W03-5
25 1917-W03-6
26 1917-W03-7
27 1917-W04-0
28 1917-W04-1
29 1917-W04-2
30 1917-W04-3
31 1917-W04-4
32 1917-W04-5
33 1917-W04-6
34 1917-W04-7
35 EOF
36 1917-01-01-00
37 1917-01-01-01
38 1917-01-01-02
39 1917-01-01-03
40 1917-01-01-04
41 1917-01-01-05
42 1917-01-01-06
43 1917-01-01-07
44 1917-01-02-00
45 1917-01-02-01
46 1917-01-02-02
47 1917-01-02-03
48 1917-01-02-04
49 1917-01-02-05
50 1917-01-02-06
51 1917-01-02-07
52 1917-01-03-00
53 1917-01-03-01
54 1917-01-03-02
55 1917-01-03-03
56 1917-01-03-04
57 1917-01-03-05
58 1917-01-03-06
59 1917-01-03-07
60 1917-01-04-00
61 1917-01-04-01
62 1917-01-04-02
63 1917-01-04-03
64 1917-01-04-04
65 1917-01-04-05
66 1917-01-04-06
67 1917-01-04-07
68 $
69
70 ## dconv.84.ctst ends here
+0
-63
test/dconv.085.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-03-02-01
4 1917-03-02-02
5 1917-03-02-03
6 1917-03-03-04
7 1917-03-03-05
8 1917-03-03-06
9 1917-03-03-00
10 1917-03-03-01
11 1917-03-03-02
12 1917-03-03-03
13 1917-03-04-04
14 1917-03-04-05
15 1917-03-04-06
16 1917-03-04-00
17 1917-03-04-01
18 1917-03-04-02
19 1917-03-04-03
20 1917-03-05-04
21 1917-03-05-05
22 1917-03-05-06
23 1917-04-01-00
24 1917-04-01-01
25 1917-04-01-02
26 1917-04-01-03
27 1917-04-01-04
28 1917-04-01-05
29 1917-04-01-06
30 1917-04-02-00
31 EOF
32 1917-W11-1
33 1917-W11-2
34 1917-W11-3
35 1917-W11-4
36 1917-W11-5
37 1917-W11-6
38 1917-W11-7
39 1917-W12-1
40 1917-W12-2
41 1917-W12-3
42 1917-W12-4
43 1917-W12-5
44 1917-W12-6
45 1917-W12-7
46 1917-W13-1
47 1917-W13-2
48 1917-W13-3
49 1917-W13-4
50 1917-W13-5
51 1917-W13-6
52 1917-W13-7
53 1917-W14-1
54 1917-W14-2
55 1917-W14-3
56 1917-W14-4
57 1917-W14-5
58 1917-W14-6
59 1917-W14-7
60 $
61
62 ## dconv.85.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-03-02-00
4 1917-03-02-01
5 1917-03-02-02
6 1917-03-02-03
7 1917-03-03-04
8 1917-03-03-05
9 1917-03-03-06
10 1917-03-03-07
11 1917-03-03-00
12 1917-03-03-01
13 1917-03-03-02
14 1917-03-03-03
15 1917-03-04-04
16 1917-03-04-05
17 1917-03-04-06
18 1917-03-04-07
19 1917-03-04-00
20 1917-03-04-01
21 1917-03-04-02
22 1917-03-04-03
23 1917-03-05-04
24 1917-03-05-05
25 1917-03-05-06
26 1917-03-05-07
27 1917-04-01-00
28 1917-04-01-01
29 1917-04-01-02
30 1917-04-01-03
31 1917-04-01-04
32 1917-04-01-05
33 1917-04-01-06
34 EOF
35 1917-W10-0
36 1917-W11-1
37 1917-W11-2
38 1917-W11-3
39 1917-W11-4
40 1917-W11-5
41 1917-W11-6
42 1917-W11-7
43 1917-W11-0
44 1917-W12-1
45 1917-W12-2
46 1917-W12-3
47 1917-W12-4
48 1917-W12-5
49 1917-W12-6
50 1917-W12-7
51 1917-W12-0
52 1917-W13-1
53 1917-W13-2
54 1917-W13-3
55 1917-W13-4
56 1917-W13-5
57 1917-W13-6
58 1917-W12-7
59 1917-W14-0
60 1917-W14-1
61 1917-W14-2
62 1917-W14-3
63 1917-W14-4
64 1917-W14-5
65 1917-W14-6
66 $
67
68 ## dconv.85.ctst ends here
+0
-63
test/dconv.086.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ymcw <<EOF
3 1917-W11-1
4 1917-W11-2
5 1917-W11-3
6 1917-W11-4
7 1917-W11-5
8 1917-W11-6
9 1917-W11-7
10 1917-W12-1
11 1917-W12-2
12 1917-W12-3
13 1917-W12-4
14 1917-W12-5
15 1917-W12-6
16 1917-W12-7
17 1917-W13-1
18 1917-W13-2
19 1917-W13-3
20 1917-W13-4
21 1917-W13-5
22 1917-W13-6
23 1917-W13-7
24 1917-W14-1
25 1917-W14-2
26 1917-W14-3
27 1917-W14-4
28 1917-W14-5
29 1917-W14-6
30 1917-W14-7
31 EOF
32 1917-03-02-01
33 1917-03-02-02
34 1917-03-02-03
35 1917-03-03-04
36 1917-03-03-05
37 1917-03-03-06
38 1917-03-03-00
39 1917-03-03-01
40 1917-03-03-02
41 1917-03-03-03
42 1917-03-04-04
43 1917-03-04-05
44 1917-03-04-06
45 1917-03-04-00
46 1917-03-04-01
47 1917-03-04-02
48 1917-03-04-03
49 1917-03-05-04
50 1917-03-05-05
51 1917-03-05-06
52 1917-04-01-00
53 1917-04-01-01
54 1917-04-01-02
55 1917-04-01-03
56 1917-04-01-04
57 1917-04-01-05
58 1917-04-01-06
59 1917-04-02-00
60 $
61
62 ## dconv.86.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ymcw <<EOF
3 1917-W11-1
4 1917-W11-2
5 1917-W11-3
6 1917-W11-4
7 1917-W11-5
8 1917-W11-6
9 1917-W11-7
10 1917-W12-1
11 1917-W12-2
12 1917-W12-3
13 1917-W12-4
14 1917-W12-5
15 1917-W12-6
16 1917-W12-7
17 1917-W13-1
18 1917-W13-2
19 1917-W13-3
20 1917-W13-4
21 1917-W13-5
22 1917-W13-6
23 1917-W13-7
24 1917-W14-1
25 1917-W14-2
26 1917-W14-3
27 1917-W14-4
28 1917-W14-5
29 1917-W14-6
30 1917-W14-7
31 1916-W01
32 1916-W02
33 1917-W01
34 1917-W02
35 EOF
36 1917-03-02-01
37 1917-03-02-02
38 1917-03-02-03
39 1917-03-03-04
40 1917-03-03-05
41 1917-03-03-06
42 1917-03-03-07
43 1917-03-03-01
44 1917-03-03-02
45 1917-03-03-03
46 1917-03-04-04
47 1917-03-04-05
48 1917-03-04-06
49 1917-03-04-07
50 1917-03-04-01
51 1917-03-04-02
52 1917-03-04-03
53 1917-03-05-04
54 1917-03-05-05
55 1917-03-05-06
56 1917-04-01-07
57 1917-04-01-01
58 1917-04-01-02
59 1917-04-01-03
60 1917-04-01-04
61 1917-04-01-05
62 1917-04-01-06
63 1917-04-02-07
64 1916-01-01-00
65 1916-01-02-00
66 1917-01-01-00
67 1917-01-02-00
68 $
69
70 ## dconv.86.ctst ends here
+0
-19
test/dconv.087.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f daisy <<EOF
3 1917-W01-1
4 1918-W01-1
5 1918-W01-2
6 1919-W01-1
7 1919-W01-2
8 1919-W01-3
9 EOF
10 1917-01-01
11 1917-12-31
12 1918-01-01
13 1918-12-30
14 1918-12-31
15 1919-01-01
16 $
17
18 ## dconv.87.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f daisy <<EOF
3 1917-W01-1
4 1918-W01-1
5 1918-W01-2
6 1919-W01-1
7 1919-W01-2
8 1919-W01-3
9 EOF
10 1917-01-01
11 1917-12-31
12 1918-01-01
13 1918-12-30
14 1918-12-31
15 1919-01-01
16 $
17
18 ## dconv.87.ctst ends here
+0
-21
test/dconv.088.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f daisy <<EOF
3 1920-W53-4
4 1920-W53-5
5 1920-W53-6
6 1920-W53-7
7 1921-W52-5
8 1921-W52-6
9 1921-W52-7
10 EOF
11 1920-12-30
12 1920-12-31
13 1921-01-01
14 1921-01-02
15 1921-12-30
16 1921-12-31
17 1922-01-01
18 $
19
20 ## dconv.88.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f daisy <<EOF
3 1920-W53-4
4 1920-W53-5
5 1920-W53-6
6 1920-W53-7
7 1921-W52-5
8 1921-W52-6
9 1921-W52-7
10 EOF
11 1920-12-30
12 1920-12-31
13 1921-01-01
14 1921-01-02
15 1921-12-30
16 1921-12-31
17 1922-01-01
18 $
19
20 ## dconv.88.ctst ends here
+0
-21
test/dconv.089.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ymd <<EOF
3 1917-01-01b
4 1917-02-06b
5 1917-03-13b
6 1917-12-21b
7 1918-01-01b
8 1918-12-21b
9 1918-12-22b
10 EOF
11 1917-01-01
12 1917-02-08
13 1917-03-19
14 1917-12-31
15 1918-01-01
16 1918-12-30
17 1918-12-31
18 $
19
20 ## dconv.89.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ymd <<EOF
3 1917-01-01b
4 1917-02-06b
5 1917-03-13b
6 1917-12-21b
7 1918-01-01b
8 1918-12-21b
9 1918-12-22b
10 EOF
11 1917-01-01
12 1917-02-08
13 1917-03-19
14 1917-12-31
15 1918-01-01
16 1918-12-30
17 1918-12-31
18 $
19
20 ## dconv.89.ctst ends here
+0
-21
test/dconv.090.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-01-01b
4 1917-02-06b
5 1917-03-13b
6 1917-12-21b
7 1918-01-01b
8 1918-12-21b
9 1918-12-22b
10 EOF
11 1917-W01-1
12 1917-W06-4
13 1917-W12-1
14 1918-W01-1
15 1918-W01-2
16 1919-W01-1
17 1919-W01-2
18 $
19
20 ## dconv.90.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-01-01b
4 1917-02-06b
5 1917-03-13b
6 1917-12-21b
7 1918-01-01b
8 1918-12-21b
9 1918-12-22b
10 EOF
11 1917-W01-1
12 1917-W06-4
13 1917-W12-1
14 1918-W01-1
15 1918-W01-2
16 1919-W01-1
17 1919-W01-2
18 $
19
20 ## dconv.90.ctst ends here
+0
-21
test/dconv.091.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ymcw <<EOF
3 1917-01-01b
4 1917-02-06b
5 1917-03-13b
6 1917-12-21b
7 1918-01-01b
8 1918-12-21b
9 1918-12-22b
10 EOF
11 1917-01-01-01
12 1917-02-02-04
13 1917-03-03-01
14 1917-12-05-01
15 1918-01-01-02
16 1918-12-05-01
17 1918-12-05-02
18 $
19
20 ## dconv.91.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ymcw <<EOF
3 1917-01-01b
4 1917-02-06b
5 1917-03-13b
6 1917-12-21b
7 1918-01-01b
8 1918-12-21b
9 1918-12-22b
10 EOF
11 1917-01-01-01
12 1917-02-02-04
13 1917-03-03-01
14 1917-12-05-01
15 1918-01-01-02
16 1918-12-05-01
17 1918-12-05-02
18 $
19
20 ## dconv.91.ctst ends here
+0
-21
test/dconv.092.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f daisy <<EOF
3 1917-01-01b
4 1917-02-06b
5 1917-03-13b
6 1917-12-21b
7 1918-01-01b
8 1918-12-21b
9 1918-12-22b
10 EOF
11 1917-01-01
12 1917-02-08
13 1917-03-19
14 1917-12-31
15 1918-01-01
16 1918-12-30
17 1918-12-31
18 $
19
20 ## dconv.92.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f daisy <<EOF
3 1917-01-01b
4 1917-02-06b
5 1917-03-13b
6 1917-12-21b
7 1918-01-01b
8 1918-12-21b
9 1918-12-22b
10 EOF
11 1917-01-01
12 1917-02-08
13 1917-03-19
14 1917-12-31
15 1918-01-01
16 1918-12-30
17 1918-12-31
18 $
19
20 ## dconv.92.ctst ends here
+0
-7
test/dconv.093.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-01-01 -f lilian
3 156767
4 $
5
6 ## dconv.93.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-01-01 -f lilian
3 156767
4 $
5
6 ## dconv.93.ctst ends here
+0
-7
test/dconv.094.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 1917-01-01 -f lilian
3 122069
4 $
5
6 ## dconv.94.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 1917-01-01 -f lilian
3 122069
4 $
5
6 ## dconv.94.ctst ends here
+0
-7
test/dconv.095.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-01-01 -f julian
3 2455927.500000
4 $
5
6 ## dconv.95.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-01-01 -f julian
3 2455927.500000
4 $
5
6 ## dconv.95.ctst ends here
+0
-7
test/dconv.096.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 1917-01-01 -f julian
3 2421229.500000
4 $
5
6 ## dconv.96.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 1917-01-01 -f julian
3 2421229.500000
4 $
5
6 ## dconv.96.ctst ends here
+0
-7
test/dconv.097.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 1917-01-01 -f "a somewhat unlikely but most definitely long format string that, I bet, won't occur in practice but %F ya never know innit?"
3 a somewhat unlikely but most definitely long format string that, I bet, won't occur in practice but 1917-01-01 ya never know innit?
4 $
5
6 ## dconv.97.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 1917-01-01 -f "a somewhat unlikely but most definitely long format string that, I bet, won't occur in practice but %F ya never know innit?"
3 a somewhat unlikely but most definitely long format string that, I bet, won't occur in practice but 1917-01-01 ya never know innit?
4 $
5
6 ## dconv.97.ctst ends here
+0
-9
test/dconv.098.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "a somewhat unlikely but most definitely long format string that, I bet, won't occur in practice but %F ya never know innit?" <<EOF
3 a somewhat unlikely but most definitely long format string that, I bet, won't occur in practice but 1917-01-01 ya never know innit?
4 EOF
5 1917-01-01
6 $
7
8 ## dconv.98.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "a somewhat unlikely but most definitely long format string that, I bet, won't occur in practice but %F ya never know innit?" <<EOF
3 a somewhat unlikely but most definitely long format string that, I bet, won't occur in practice but 1917-01-01 ya never know innit?
4 EOF
5 1917-01-01
6 $
7
8 ## dconv.98.ctst ends here
+0
-9
test/dconv.099.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dconv -i '%Y%M%d/%b/%y' -f '%F %T' 20101230
3 $ ?2 dconv -i '%Y%M%d/%b/%y' -f '%F %T' <<EOF
4 20101230
5 EOF
6 $
7
8 ## dconv.99.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dconv -i '%Y%M%d/%b/%y' -f '%F %T' 20101230
3 $ ?2 dconv -i '%Y%M%d/%b/%y' -f '%F %T' <<EOF
4 20101230
5 EOF
6 $
7
8 ## dconv.99.ctst ends here
+0
-9
test/dconv.100.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dconv -i '%d/%b/%y' -f '%F %T' 20101230
3 $ ?2 dconv -i '%d/%b/%y' -f '%F %T' <<EOF
4 20101230
5 EOF
6 $
7
8 ## dconv.100.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dconv -i '%d/%b/%y' -f '%F %T' 20101230
3 $ ?2 dconv -i '%d/%b/%y' -f '%F %T' <<EOF
4 20101230
5 EOF
6 $
7
8 ## dconv.100.ctst ends here
+0
-12
test/dconv.101.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dconv -i "AM %d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-10-02
9 $
10
11 ## dconv.101.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dconv -i "AM %d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-10-02
9 $
10
11 ## dconv.101.ctst ends here
+0
-12
test/dconv.102.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -qi "AM %d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-10-02
9 $
10
11 ## dconv.102.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -qi "AM %d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-10-02
9 $
10
11 ## dconv.102.ctst ends here
+0
-7
test/dconv.103.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "ldn" 157686
3 157686
4 $
5
6 ## dconv.103.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "ldn" 157686
3 157686
4 $
5
6 ## dconv.103.ctst ends here
+0
-7
test/dconv.104.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "ldn" 157686.40
3 157686.400000
4 $
5
6 ## dconv.104.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "ldn" 157686.40
3 157686.400000
4 $
5
6 ## dconv.104.ctst ends here
+0
-7
test/dconv.105.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "jdn" 2456846.5
3 2456846.500000
4 $
5
6 ## dconv.105.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "jdn" 2456846.5
3 2456846.500000
4 $
5
6 ## dconv.105.ctst ends here
+0
-7
test/dconv.106.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "jdn" 2456847
3 2456847.000000
4 $
5
6 ## dconv.106.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "jdn" 2456847
3 2456847.000000
4 $
5
6 ## dconv.106.ctst ends here
+0
-119
test/dconv.107.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%C-%w' <<EOF
3 1917-01-01-07
4 1917-01-01-01
5 1917-01-01-02
6 1917-01-01-03
7 1917-01-01-04
8 1917-01-01-05
9 1917-01-01-06
10 1918-01-01-07
11 1918-01-01-01
12 1918-01-01-02
13 1918-01-01-03
14 1918-01-01-04
15 1918-01-01-05
16 1918-01-01-06
17 1919-01-01-07
18 1919-01-01-01
19 1919-01-01-02
20 1919-01-01-03
21 1919-01-01-04
22 1919-01-01-05
23 1919-01-01-06
24 1920-01-01-07
25 1920-01-01-01
26 1920-01-01-02
27 1920-01-01-03
28 1920-01-01-04
29 1920-01-01-05
30 1920-01-01-06
31 1921-01-01-07
32 1921-01-01-01
33 1921-01-01-02
34 1921-01-01-03
35 1921-01-01-04
36 1921-01-01-05
37 1921-01-01-06
38 1922-01-01-07
39 1922-01-01-01
40 1922-01-01-02
41 1922-01-01-03
42 1922-01-01-04
43 1922-01-01-05
44 1922-01-01-06
45 1923-01-01-07
46 1923-01-01-01
47 1923-01-01-02
48 1923-01-01-03
49 1923-01-01-04
50 1923-01-01-05
51 1923-01-01-06
52 1924-01-01-07
53 1924-01-01-01
54 1924-01-01-02
55 1924-01-01-03
56 1924-01-01-04
57 1924-01-01-05
58 1924-01-01-06
59 EOF
60 1917-01-00
61 1917-01-01
62 1917-01-02
63 1917-01-03
64 1917-01-04
65 1917-01-05
66 1917-01-06
67 1918-01-00
68 1918-01-01
69 1918-01-02
70 1918-01-03
71 1918-01-04
72 1918-01-05
73 1918-01-06
74 1919-01-00
75 1919-01-01
76 1919-01-02
77 1919-01-03
78 1919-01-04
79 1919-01-05
80 1919-01-06
81 1920-01-00
82 1920-01-01
83 1920-01-02
84 1920-01-03
85 1920-01-04
86 1920-01-05
87 1920-01-06
88 1921-01-00
89 1921-01-01
90 1921-01-02
91 1921-01-03
92 1921-01-04
93 1921-01-05
94 1921-01-06
95 1922-01-00
96 1922-01-01
97 1922-01-02
98 1922-01-03
99 1922-01-04
100 1922-01-05
101 1922-01-06
102 1923-01-00
103 1923-01-01
104 1923-01-02
105 1923-01-03
106 1923-01-04
107 1923-01-05
108 1923-01-06
109 1924-01-00
110 1924-01-01
111 1924-01-02
112 1924-01-03
113 1924-01-04
114 1924-01-05
115 1924-01-06
116 $
117
118 ## dconv.107.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%C-%w' <<EOF
3 1917-01-01-07
4 1917-01-01-01
5 1917-01-01-02
6 1917-01-01-03
7 1917-01-01-04
8 1917-01-01-05
9 1917-01-01-06
10 1918-01-01-07
11 1918-01-01-01
12 1918-01-01-02
13 1918-01-01-03
14 1918-01-01-04
15 1918-01-01-05
16 1918-01-01-06
17 1919-01-01-07
18 1919-01-01-01
19 1919-01-01-02
20 1919-01-01-03
21 1919-01-01-04
22 1919-01-01-05
23 1919-01-01-06
24 1920-01-01-07
25 1920-01-01-01
26 1920-01-01-02
27 1920-01-01-03
28 1920-01-01-04
29 1920-01-01-05
30 1920-01-01-06
31 1921-01-01-07
32 1921-01-01-01
33 1921-01-01-02
34 1921-01-01-03
35 1921-01-01-04
36 1921-01-01-05
37 1921-01-01-06
38 1922-01-01-07
39 1922-01-01-01
40 1922-01-01-02
41 1922-01-01-03
42 1922-01-01-04
43 1922-01-01-05
44 1922-01-01-06
45 1923-01-01-07
46 1923-01-01-01
47 1923-01-01-02
48 1923-01-01-03
49 1923-01-01-04
50 1923-01-01-05
51 1923-01-01-06
52 1924-01-01-07
53 1924-01-01-01
54 1924-01-01-02
55 1924-01-01-03
56 1924-01-01-04
57 1924-01-01-05
58 1924-01-01-06
59 EOF
60 1917-01-07
61 1917-01-01
62 1917-01-02
63 1917-01-03
64 1917-01-04
65 1917-01-05
66 1917-01-06
67 1918-01-07
68 1918-01-01
69 1918-01-02
70 1918-01-03
71 1918-01-04
72 1918-01-05
73 1918-01-06
74 1919-01-07
75 1919-01-01
76 1919-01-02
77 1919-01-03
78 1919-01-04
79 1919-01-05
80 1919-01-06
81 1920-01-07
82 1920-01-01
83 1920-01-02
84 1920-01-03
85 1920-01-04
86 1920-01-05
87 1920-01-06
88 1921-01-07
89 1921-01-01
90 1921-01-02
91 1921-01-03
92 1921-01-04
93 1921-01-05
94 1921-01-06
95 1922-01-07
96 1922-01-01
97 1922-01-02
98 1922-01-03
99 1922-01-04
100 1922-01-05
101 1922-01-06
102 1923-01-07
103 1923-01-01
104 1923-01-02
105 1923-01-03
106 1923-01-04
107 1923-01-05
108 1923-01-06
109 1924-01-07
110 1924-01-01
111 1924-01-02
112 1924-01-03
113 1924-01-04
114 1924-01-05
115 1924-01-06
116 $
117
118 ## dconv.107.ctst ends here
+0
-119
test/dconv.108.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%C-%w' <<EOF
3 1917-01-02-07
4 1917-01-02-01
5 1917-01-02-02
6 1917-01-02-03
7 1917-01-02-04
8 1917-01-02-05
9 1917-01-02-06
10 1918-01-02-07
11 1918-01-02-01
12 1918-01-02-02
13 1918-01-02-03
14 1918-01-02-04
15 1918-01-02-05
16 1918-01-02-06
17 1919-01-02-07
18 1919-01-02-01
19 1919-01-02-02
20 1919-01-02-03
21 1919-01-02-04
22 1919-01-02-05
23 1919-01-02-06
24 1920-01-02-07
25 1920-01-02-01
26 1920-01-02-02
27 1920-01-02-03
28 1920-01-02-04
29 1920-01-02-05
30 1920-01-02-06
31 1921-01-02-07
32 1921-01-02-01
33 1921-01-02-02
34 1921-01-02-03
35 1921-01-02-04
36 1921-01-02-05
37 1921-01-02-06
38 1922-01-02-07
39 1922-01-02-01
40 1922-01-02-02
41 1922-01-02-03
42 1922-01-02-04
43 1922-01-02-05
44 1922-01-02-06
45 1923-01-02-07
46 1923-01-02-01
47 1923-01-02-02
48 1923-01-02-03
49 1923-01-02-04
50 1923-01-02-05
51 1923-01-02-06
52 1924-01-02-07
53 1924-01-02-01
54 1924-01-02-02
55 1924-01-02-03
56 1924-01-02-04
57 1924-01-02-05
58 1924-01-02-06
59 EOF
60 1917-02-00
61 1917-02-01
62 1917-02-02
63 1917-02-03
64 1917-02-04
65 1917-02-05
66 1917-02-06
67 1918-02-00
68 1918-02-01
69 1918-02-02
70 1918-02-03
71 1918-02-04
72 1918-02-05
73 1918-02-06
74 1919-02-00
75 1919-02-01
76 1919-02-02
77 1919-02-03
78 1919-02-04
79 1919-02-05
80 1919-02-06
81 1920-02-00
82 1920-02-01
83 1920-02-02
84 1920-02-03
85 1920-02-04
86 1920-02-05
87 1920-02-06
88 1921-02-00
89 1921-02-01
90 1921-02-02
91 1921-02-03
92 1921-02-04
93 1921-02-05
94 1921-02-06
95 1922-02-00
96 1922-02-01
97 1922-02-02
98 1922-02-03
99 1922-02-04
100 1922-02-05
101 1922-02-06
102 1923-02-00
103 1923-02-01
104 1923-02-02
105 1923-02-03
106 1923-02-04
107 1923-02-05
108 1923-02-06
109 1924-02-00
110 1924-02-01
111 1924-02-02
112 1924-02-03
113 1924-02-04
114 1924-02-05
115 1924-02-06
116 $
117
118 ## dconv.108.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%Y-%C-%w' <<EOF
3 1917-01-02-07
4 1917-01-02-01
5 1917-01-02-02
6 1917-01-02-03
7 1917-01-02-04
8 1917-01-02-05
9 1917-01-02-06
10 1918-01-02-07
11 1918-01-02-01
12 1918-01-02-02
13 1918-01-02-03
14 1918-01-02-04
15 1918-01-02-05
16 1918-01-02-06
17 1919-01-02-07
18 1919-01-02-01
19 1919-01-02-02
20 1919-01-02-03
21 1919-01-02-04
22 1919-01-02-05
23 1919-01-02-06
24 1920-01-02-07
25 1920-01-02-01
26 1920-01-02-02
27 1920-01-02-03
28 1920-01-02-04
29 1920-01-02-05
30 1920-01-02-06
31 1921-01-02-07
32 1921-01-02-01
33 1921-01-02-02
34 1921-01-02-03
35 1921-01-02-04
36 1921-01-02-05
37 1921-01-02-06
38 1922-01-02-07
39 1922-01-02-01
40 1922-01-02-02
41 1922-01-02-03
42 1922-01-02-04
43 1922-01-02-05
44 1922-01-02-06
45 1923-01-02-07
46 1923-01-02-01
47 1923-01-02-02
48 1923-01-02-03
49 1923-01-02-04
50 1923-01-02-05
51 1923-01-02-06
52 1924-01-02-07
53 1924-01-02-01
54 1924-01-02-02
55 1924-01-02-03
56 1924-01-02-04
57 1924-01-02-05
58 1924-01-02-06
59 EOF
60 1917-02-07
61 1917-02-01
62 1917-02-02
63 1917-02-03
64 1917-02-04
65 1917-02-05
66 1917-02-06
67 1918-02-07
68 1918-02-01
69 1918-02-02
70 1918-02-03
71 1918-02-04
72 1918-02-05
73 1918-02-06
74 1919-02-07
75 1919-02-01
76 1919-02-02
77 1919-02-03
78 1919-02-04
79 1919-02-05
80 1919-02-06
81 1920-02-07
82 1920-02-01
83 1920-02-02
84 1920-02-03
85 1920-02-04
86 1920-02-05
87 1920-02-06
88 1921-02-07
89 1921-02-01
90 1921-02-02
91 1921-02-03
92 1921-02-04
93 1921-02-05
94 1921-02-06
95 1922-02-07
96 1922-02-01
97 1922-02-02
98 1922-02-03
99 1922-02-04
100 1922-02-05
101 1922-02-06
102 1923-02-07
103 1923-02-01
104 1923-02-02
105 1923-02-03
106 1923-02-04
107 1923-02-05
108 1923-02-06
109 1924-02-07
110 1924-02-01
111 1924-02-02
112 1924-02-03
113 1924-02-04
114 1924-02-05
115 1924-02-06
116 $
117
118 ## dconv.108.ctst ends here
+0
-63
test/dconv.109.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-01-01-01
4 1917-01-01-02
5 1917-01-01-03
6 1917-01-01-04
7 1917-01-01-05
8 1917-01-01-06
9 1917-01-01-07
10 1917-01-02-01
11 1917-01-02-02
12 1917-01-02-03
13 1917-01-02-04
14 1917-01-02-05
15 1917-01-02-06
16 1917-01-02-07
17 1917-01-03-01
18 1917-01-03-02
19 1917-01-03-03
20 1917-01-03-04
21 1917-01-03-05
22 1917-01-03-06
23 1917-01-03-07
24 1917-01-04-01
25 1917-01-04-02
26 1917-01-04-03
27 1917-01-04-04
28 1917-01-04-05
29 1917-01-04-06
30 1917-01-04-07
31 EOF
32 1917-W01-1
33 1917-W01-2
34 1917-W01-3
35 1917-W01-4
36 1917-W01-5
37 1917-W01-6
38 1917-W01-7
39 1917-W02-1
40 1917-W02-2
41 1917-W02-3
42 1917-W02-4
43 1917-W02-5
44 1917-W02-6
45 1917-W02-7
46 1917-W03-1
47 1917-W03-2
48 1917-W03-3
49 1917-W03-4
50 1917-W03-5
51 1917-W03-6
52 1917-W03-7
53 1917-W04-1
54 1917-W04-2
55 1917-W04-3
56 1917-W04-4
57 1917-W04-5
58 1917-W04-6
59 1917-W04-7
60 $
61
62 ## dconv.109.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-01-01-01
4 1917-01-01-02
5 1917-01-01-03
6 1917-01-01-04
7 1917-01-01-05
8 1917-01-01-06
9 1917-01-01-07
10 1917-01-02-01
11 1917-01-02-02
12 1917-01-02-03
13 1917-01-02-04
14 1917-01-02-05
15 1917-01-02-06
16 1917-01-02-07
17 1917-01-03-01
18 1917-01-03-02
19 1917-01-03-03
20 1917-01-03-04
21 1917-01-03-05
22 1917-01-03-06
23 1917-01-03-07
24 1917-01-04-01
25 1917-01-04-02
26 1917-01-04-03
27 1917-01-04-04
28 1917-01-04-05
29 1917-01-04-06
30 1917-01-04-07
31 EOF
32 1917-W01-1
33 1917-W01-2
34 1917-W01-3
35 1917-W01-4
36 1917-W01-5
37 1917-W01-6
38 1917-W01-7
39 1917-W02-1
40 1917-W02-2
41 1917-W02-3
42 1917-W02-4
43 1917-W02-5
44 1917-W02-6
45 1917-W02-7
46 1917-W03-1
47 1917-W03-2
48 1917-W03-3
49 1917-W03-4
50 1917-W03-5
51 1917-W03-6
52 1917-W03-7
53 1917-W04-1
54 1917-W04-2
55 1917-W04-3
56 1917-W04-4
57 1917-W04-5
58 1917-W04-6
59 1917-W04-7
60 $
61
62 ## dconv.109.ctst ends here
+0
-63
test/dconv.110.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-03-02-01
4 1917-03-02-02
5 1917-03-02-03
6 1917-03-03-04
7 1917-03-03-05
8 1917-03-03-06
9 1917-03-03-07
10 1917-03-03-01
11 1917-03-03-02
12 1917-03-03-03
13 1917-03-04-04
14 1917-03-04-05
15 1917-03-04-06
16 1917-03-04-07
17 1917-03-04-01
18 1917-03-04-02
19 1917-03-04-03
20 1917-03-05-04
21 1917-03-05-05
22 1917-03-05-06
23 1917-04-01-07
24 1917-04-01-01
25 1917-04-01-02
26 1917-04-01-03
27 1917-04-01-04
28 1917-04-01-05
29 1917-04-01-06
30 1917-04-02-07
31 EOF
32 1917-W11-1
33 1917-W11-2
34 1917-W11-3
35 1917-W11-4
36 1917-W11-5
37 1917-W11-6
38 1917-W11-7
39 1917-W12-1
40 1917-W12-2
41 1917-W12-3
42 1917-W12-4
43 1917-W12-5
44 1917-W12-6
45 1917-W12-7
46 1917-W13-1
47 1917-W13-2
48 1917-W13-3
49 1917-W13-4
50 1917-W13-5
51 1917-W13-6
52 1917-W13-7
53 1917-W14-1
54 1917-W14-2
55 1917-W14-3
56 1917-W14-4
57 1917-W14-5
58 1917-W14-6
59 1917-W14-7
60 $
61
62 ## dconv.110.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f ywd <<EOF
3 1917-03-02-01
4 1917-03-02-02
5 1917-03-02-03
6 1917-03-03-04
7 1917-03-03-05
8 1917-03-03-06
9 1917-03-03-07
10 1917-03-03-01
11 1917-03-03-02
12 1917-03-03-03
13 1917-03-04-04
14 1917-03-04-05
15 1917-03-04-06
16 1917-03-04-07
17 1917-03-04-01
18 1917-03-04-02
19 1917-03-04-03
20 1917-03-05-04
21 1917-03-05-05
22 1917-03-05-06
23 1917-04-01-07
24 1917-04-01-01
25 1917-04-01-02
26 1917-04-01-03
27 1917-04-01-04
28 1917-04-01-05
29 1917-04-01-06
30 1917-04-02-07
31 EOF
32 1917-W11-1
33 1917-W11-2
34 1917-W11-3
35 1917-W11-4
36 1917-W11-5
37 1917-W11-6
38 1917-W11-7
39 1917-W12-1
40 1917-W12-2
41 1917-W12-3
42 1917-W12-4
43 1917-W12-5
44 1917-W12-6
45 1917-W12-7
46 1917-W13-1
47 1917-W13-2
48 1917-W13-3
49 1917-W13-4
50 1917-W13-5
51 1917-W13-6
52 1917-W13-7
53 1917-W14-1
54 1917-W14-2
55 1917-W14-3
56 1917-W14-4
57 1917-W14-5
58 1917-W14-6
59 1917-W14-7
60 $
61
62 ## dconv.110.ctst ends here
+0
-11
test/dconv.111.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn <<EOF
3 157729
4 157730
5 EOF
6 157729
7 157730
8 $
9
10 ## dconv.111.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn <<EOF
3 157729
4 157730
5 EOF
6 157729
7 157730
8 $
9
10 ## dconv.111.ctst ends here
+0
-11
test/dconv.112.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn <<EOF
3 157729.0
4 157730.0
5 EOF
6 157729.000000
7 157730.000000
8 $
9
10 ## dconv.112.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn <<EOF
3 157729.0
4 157730.0
5 EOF
6 157729.000000
7 157730.000000
8 $
9
10 ## dconv.112.ctst ends here
+0
-11
test/dconv.113.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn -f ymd <<EOF
3 157729
4 157730
5 EOF
6 2014-08-20
7 2014-08-21
8 $
9
10 ## dconv.113.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn -f ymd <<EOF
3 157729
4 157730
5 EOF
6 2014-08-20
7 2014-08-21
8 $
9
10 ## dconv.113.ctst ends here
+0
-11
test/dconv.114.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn -f ymd <<EOF
3 157729.0
4 157730.0
5 EOF
6 2014-08-20T00:00:00
7 2014-08-21T00:00:00
8 $
9
10 ## dconv.114.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn -f ymd <<EOF
3 157729.0
4 157730.0
5 EOF
6 2014-08-20T00:00:00
7 2014-08-21T00:00:00
8 $
9
10 ## dconv.114.ctst ends here
+0
-12
test/dconv.115.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ ?2 dconv 2013-02-29
4 2013-02-28
5 $ ?2 dconv 2013-09-31
6 2013-09-30
7 $ ?2 dconv 2012-02-30
8 2012-02-29
9 $
10
11 ## dconv.115.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ ?2 dconv 2013-02-29
4 2013-02-28
5 $ ?2 dconv 2013-09-31
6 2013-09-30
7 $ ?2 dconv 2012-02-30
8 2012-02-29
9 $
10
11 ## dconv.115.ctst ends here
+0
-13
test/dconv.116.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates and reports no error back
3 $ dconv -q 2013-02-29
4 2013-02-28
5 $ dconv -q 2013-09-31
6 2013-09-30
7 $ dconv -q 2012-02-30
8 2012-02-29
9 $ dconv -q 2012-03-32
10 $
11
12 ## dconv.116.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates and reports no error back
3 $ dconv -q 2013-02-29
4 2013-02-28
5 $ dconv -q 2013-09-31
6 2013-09-30
7 $ dconv -q 2012-02-30
8 2012-02-29
9 $ dconv -q 2012-03-32
10 $
11
12 ## dconv.116.ctst ends here
+0
-18
test/dconv.117.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ ?2 dconv <<EOF
4 2013-02-29
5 EOF
6 2013-02-28
7 $ ?2 dconv <<EOF
8 2013-09-31
9 EOF
10 2013-09-30
11 $ ?2 dconv <<EOF
12 2012-02-30
13 EOF
14 2012-02-29
15 $
16
17 ## dconv.117.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ ?2 dconv <<EOF
4 2013-02-29
5 EOF
6 2013-02-28
7 $ ?2 dconv <<EOF
8 2013-09-31
9 EOF
10 2013-09-30
11 $ ?2 dconv <<EOF
12 2012-02-30
13 EOF
14 2012-02-29
15 $
16
17 ## dconv.117.ctst ends here
+0
-21
test/dconv.118.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates and reports no error back
3 $ dconv -q <<EOF
4 2013-02-29
5 EOF
6 2013-02-28
7 $ dconv -q <<EOF
8 2013-09-31
9 EOF
10 2013-09-30
11 $ dconv -q <<EOF
12 2012-02-30
13 EOF
14 2012-02-29
15 $ dconv -q <<EOF
16 2012-03-32
17 EOF
18 $
19
20 ## dconv.118.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates and reports no error back
3 $ dconv -q <<EOF
4 2013-02-29
5 EOF
6 2013-02-28
7 $ dconv -q <<EOF
8 2013-09-31
9 EOF
10 2013-09-30
11 $ dconv -q <<EOF
12 2012-02-30
13 EOF
14 2012-02-29
15 $ dconv -q <<EOF
16 2012-03-32
17 EOF
18 $
19
20 ## dconv.118.ctst ends here
+0
-6
test/dconv.119.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ! echo "2015-2015-00-12-12" | dconv
3 $
4
5 ## dconv.119.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ! echo "2015-2015-00-12-12" | dconv
3 $
4
5 ## dconv.119.ctst ends here
+0
-6
test/dconv.120.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ! dconv "2015-2015-00-12-12"
3 $
4
5 ## dconv.120.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ! dconv "2015-2015-00-12-12"
3 $
4
5 ## dconv.120.ctst ends here
+0
-7
test/dconv.121.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn 12345678 -f ymd
3 0000-00-00
4 $
5
6 ## dconv.121.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn 12345678 -f ymd
3 0000-00-00
4 $
5
6 ## dconv.121.ctst ends here
+0
-10
test/dconv.122.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## this one would be 4095-12-31 but we cut off earlier than that
3 $ dconv -i ldn 917932 -f ymd
4 0000-00-00
5 $ dconv -i ldn 917933 -f ymd
6 0000-00-00
7 $
8
9 ## dconv.122.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## this one would be 4095-12-31 but we cut off earlier than that
3 $ dconv -i ldn 917932 -f ymd
4 0000-00-00
5 $ dconv -i ldn 917933 -f ymd
6 0000-00-00
7 $
8
9 ## dconv.122.ctst ends here
+0
-9
test/dconv.123.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%y-%m-%d' 21-01-01
3 2021-01-01
4 $ dconv -i '%y-%m-%d' 98-01-01
5 1998-01-01
6 $
7
8 ## dconv.123.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%y-%m-%d' 21-01-01
3 2021-01-01
4 $ dconv -i '%y-%m-%d' 98-01-01
5 1998-01-01
6 $
7
8 ## dconv.123.ctst ends here
+0
-9
test/dconv.124.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -b 1970-01-01 -i '%y-%m-%d' 21-01-01
3 1921-01-01
4 $ dconv -b 1970-01-01 -i '%y-%m-%d' 98-01-01
5 1998-01-01
6 $
7
8 ## dconv.124.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -b 1970-01-01 -i '%y-%m-%d' 21-01-01
3 1921-01-01
4 $ dconv -b 1970-01-01 -i '%y-%m-%d' 98-01-01
5 1998-01-01
6 $
7
8 ## dconv.124.ctst ends here
+0
-9
test/dconv.125.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f '%_b%_y' 2015-05
3 K5
4 $ dconv -f '%_b%_y' 2022-12
5 Z2
6 $
7
8 ## dconv.125.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f '%_b%_y' 2015-05
3 K5
4 $ dconv -f '%_b%_y' 2022-12
5 Z2
6 $
7
8 ## dconv.125.ctst ends here
+0
-9
test/dconv.126.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%_b%_y' K7 -f '%Y-%m' -b 2016-01-01
3 2017-05
4 $ dconv -i '%_b%_y' Z2 -f '%Y-%m' -b 2016-01-01
5 2022-12
6 $
7
8 ## dconv.126.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%_b%_y' K7 -f '%Y-%m' -b 2016-01-01
3 2017-05
4 $ dconv -i '%_b%_y' Z2 -f '%Y-%m' -b 2016-01-01
5 2022-12
6 $
7
8 ## dconv.126.ctst ends here
+0
-7
test/dconv.127.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i %G%V%u 20155306 -f '%G%V%u %Y%m%d' 20160101 2015534
3 2015536 20160102
4 2016011 20160104
5 2015534 20151231
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i %G%V%u 20155306 -f '%G%V%u %Y%m%d' 20160101 2015534
3 2015536 20160102
4 2016011 20160104
5 2015534 20151231
6 $
+0
-7
test/dconv.128.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2016-01-02 -f '%G%V%u %Y%m%d' 2016-01-04 2015-12-31
3 2015536 20160102
4 2016011 20160104
5 2015534 20151231
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2016-01-02 -f '%G%V%u %Y%m%d' 2016-01-04 2015-12-31
3 2015536 20160102
4 2016011 20160104
5 2015534 20151231
6 $
+0
-9
test/dconv.129.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-locale it_IT -i '%b %Y' 'gen 2016'
3 2016-01-00
4 $ dconv --from-locale it_IT -i '%d %B %Y' '06 maggio 2016'
5 2016-05-06
6 $
7
8 ## dconv.127.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-locale it_IT -i '%b %Y' 'gen 2016'
3 2016-01-00
4 $ dconv --from-locale it_IT -i '%d %B %Y' '06 maggio 2016'
5 2016-05-06
6 $
7
8 ## dconv.127.ctst ends here
+0
-9
test/dconv.130.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --locale it_IT -f '%b %Y' 2016-01-00
3 gen 2016
4 $ dconv --locale it_IT -f '%a %d %B %Y' 2016-05-05
5 gio 05 maggio 2016
6 $
7
8 ## dconv.130.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --locale it_IT -f '%b %Y' 2016-01-00
3 gen 2016
4 $ dconv --locale it_IT -f '%a %d %B %Y' 2016-05-05
5 gio 05 maggio 2016
6 $
7
8 ## dconv.130.ctst ends here
+0
-7
test/dconv.131.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ echo 'R19052016' | dconv -i '%_a%d%m%Y'
3 2016-05-19
4 $
5
6 ## dconv.131.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ echo 'R19052016' | dconv -i '%_a%d%m%Y'
3 2016-05-19
4 $
5
6 ## dconv.131.ctst ends here
+0
-7
test/dconv.132.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ echo 'M2016' | dconv -i '%_b%Y'
3 2016-06-00
4 $
5
6 ## dconv.132.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ echo 'M2016' | dconv -i '%_b%Y'
3 2016-06-00
4 $
5
6 ## dconv.132.ctst ends here
+0
-9
test/dconv.133.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -b 2016-01-01 --input-format "%b %d %H:%M:%S" --format "%F %T" "Oct 1 12:05:00"
3 2016-10-01 12:05:00
4 $ dconv -b 2016-01-01 --input-format "%b %d %H:%M:%S" --format "%F %T" "Oct 1 12:05:00"
5 2016-10-01 12:05:00
6 $
7
8 ## dconv.133.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -b 2016-01-01 --input-format "%b %d %H:%M:%S" --format "%F %T" "Oct 1 12:05:00"
3 2016-10-01 12:05:00
4 $ dconv -b 2016-01-01 --input-format "%b %d %H:%M:%S" --format "%F %T" "Oct 1 12:05:00"
5 2016-10-01 12:05:00
6 $
7
8 ## dconv.133.ctst ends here
+0
-8
test/dconv.134.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -b 2016-01-01 --input-format "%b %d %H:%M:%S" --format "%F %T" "Oct 10 12:05:00"
3 2016-10-10 12:05:00
4 $ ! dconv -b 2016-01-01 --input-format "%b %d %H:%M:%S" --format "%F %T" "Oct 10 12:05:00"
5 $
6
7 ## dconv.134.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -b 2016-01-01 --input-format "%b %d %H:%M:%S" --format "%F %T" "Oct 10 12:05:00"
3 2016-10-10 12:05:00
4 $ ! dconv -b 2016-01-01 --input-format "%b %d %H:%M:%S" --format "%F %T" "Oct 10 12:05:00"
5 $
6
7 ## dconv.134.ctst ends here
+0
-13
test/dconv.135.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "mdn" 734576
3 734576
4 $ dconv -i "matlab" 734576
5 734576
6 $ dconv -i "mdn" 734576 -f '%F'
7 2011-03-14
8 $ dconv -i "matlab" 734576 -f '%F'
9 2011-03-14
10 $
11
12 ## dconv.135.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "mdn" 734576
3 734576
4 $ dconv -i "matlab" 734576
5 734576
6 $ dconv -i "mdn" 734576 -f '%F'
7 2011-03-14
8 $ dconv -i "matlab" 734576 -f '%F'
9 2011-03-14
10 $
11
12 ## dconv.135.ctst ends here
+0
-13
test/dconv.136.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "mdn" 734576.25
3 734576.250000
4 $ dconv -i "matlab" 734576.25
5 734576.250000
6 $ dconv -i "mdn" 734576.25 -f '%FT%T'
7 2011-03-14T06:00:00
8 $ dconv -i "matlab" 734576.25 -f '%FT%T'
9 2011-03-14T06:00:00
10 $
11
12 ## dconv.136.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "mdn" 734576.25
3 734576.250000
4 $ dconv -i "matlab" 734576.25
5 734576.250000
6 $ dconv -i "mdn" 734576.25 -f '%FT%T'
7 2011-03-14T06:00:00
8 $ dconv -i "matlab" 734576.25 -f '%FT%T'
9 2011-03-14T06:00:00
10 $
11
12 ## dconv.136.ctst ends here
+0
-9
test/dconv.137.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2011-03-14 -f "mdn"
3 734576
4 $ dconv -f matlab 2011-03-14
5 734576
6 $
7
8 ## dconv.137.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2011-03-14 -f "mdn"
3 734576
4 $ dconv -f matlab 2011-03-14
5 734576
6 $
7
8 ## dconv.137.ctst ends here
+0
-9
test/dconv.138.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -f "mdn" 2011-03-14T06:00:00
3 734576.250000
4 $ dconv 2011-03-14T06:00:00 -f "matlab"
5 734576.250000
6 $
7
8 ## dconv.138.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -f "mdn" 2011-03-14T06:00:00
3 734576.250000
4 $ dconv 2011-03-14T06:00:00 -f "matlab"
5 734576.250000
6 $
7
8 ## dconv.138.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "%Y-W%V" 2000-W45
3 2000-W45-0
4 $
5
6 ## dconv.139.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "%Y-W%W" 2000-W45
3 2000-W46-0
4 $
5
6 ## dconv.140.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -Ef "mdn" <<EOF
3 2011-03-14T06:00:00
4 2011-03-14
5 2011-03-14
6 X2011-03-14
7 2011/03/14
8 EOF
9 734576.250000
10 734576
11
12
13
14 $
15
16 ## dconv.141.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dconv 2000-004b
3 $
4
5 ## dconv.142.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -SE <<EOF
3 2022-02-01 valid
4 20- invalid
5 EOF
6 2022-02-01 valid
7
8 $
9
10 ## dconv.143.ctst ends here
+0
-7
test/ddiff.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02 2012-03-02
3 0
4 $
5
6 ## ddiff.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02 2012-03-02
3 0
4 $
5
6 ## ddiff.1.ctst ends here
+0
-7
test/ddiff.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02 2012-03-12
3 10
4 $
5
6 ## ddiff.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02 2012-03-12
3 10
4 $
5
6 ## ddiff.2.ctst ends here
+0
-7
test/ddiff.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02 2012-04-12
3 41
4 $
5
6 ## ddiff.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02 2012-04-12
3 41
4 $
5
6 ## ddiff.3.ctst ends here
+0
-7
test/ddiff.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-12 2012-04-02
3 21
4 $
5
6 ## ddiff.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-12 2012-04-02
3 21
4 $
5
6 ## ddiff.4.ctst ends here
+0
-7
test/ddiff.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-04-02 2012-03-12
3 -21
4 $
5
6 ## ddiff.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-04-02 2012-03-12
3 -21
4 $
5
6 ## ddiff.5.ctst ends here
+0
-7
test/ddiff.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-01-02 2012-02-29 -f '%dd'
3 58d
4 $
5
6 ## ddiff.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-01-02 2012-02-29 -f '%dd'
3 58d
4 $
5
6 ## ddiff.6.ctst ends here
+0
-7
test/ddiff.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-01-02 2012-02-29 -f '%ww'
3 8w
4 $
5
6 ## ddiff.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-01-02 2012-02-29 -f '%ww'
3 8w
4 $
5
6 ## ddiff.7.ctst ends here
+0
-7
test/ddiff.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-01-02 2012-02-29 -f '%ww %dd'
3 8w 2d
4 $
5
6 ## ddiff.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-01-02 2012-02-29 -f '%ww %dd'
3 8w 2d
4 $
5
6 ## ddiff.8.ctst ends here
+0
-7
test/ddiff.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2001-02-08 2001-03-02
3 22
4 $
5
6 ## ddiff.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2001-02-08 2001-03-02
3 22
4 $
5
6 ## ddiff.9.ctst ends here
+0
-7
test/ddiff.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2001-02-08 2001-03-09 -f "%m month and %d day"
3 1 month and 1 day
4 $
5
6 ## ddiff.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2001-02-08 2001-03-09 -f "%m month and %d day"
3 1 month and 1 day
4 $
5
6 ## ddiff.10.ctst ends here
+0
-7
test/ddiff.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-05-01 2012-05-10 -f '%db'
3 7b
4 $
5
6 ## ddiff.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-05-01 2012-05-10 -f '%db'
3 7b
4 $
5
6 ## ddiff.11.ctst ends here
+0
-7
test/ddiff.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-05-10 2012-05-01 -f '%db'
3 -7b
4 $
5
6 ## ddiff.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-05-10 2012-05-01 -f '%db'
3 -7b
4 $
5
6 ## ddiff.12.ctst ends here
+0
-33
test/ddiff.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-05-01 -f '%db' <<EOF
3 2012-05-01
4 2012-05-02
5 2012-05-03
6 2012-05-04
7 2012-05-05
8 2012-05-06
9 2012-05-07
10 2012-05-08
11 2012-05-09
12 2012-05-10
13 2012-05-11
14 2012-05-12
15 2012-05-13
16 EOF
17 0b
18 1b
19 2b
20 3b
21 3b
22 3b
23 4b
24 5b
25 6b
26 7b
27 8b
28 8b
29 8b
30 $
31
32 ## ddiff.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-05-01 -f '%db' <<EOF
3 2012-05-01
4 2012-05-02
5 2012-05-03
6 2012-05-04
7 2012-05-05
8 2012-05-06
9 2012-05-07
10 2012-05-08
11 2012-05-09
12 2012-05-10
13 2012-05-11
14 2012-05-12
15 2012-05-13
16 EOF
17 0b
18 1b
19 2b
20 3b
21 3b
22 3b
23 4b
24 5b
25 6b
26 7b
27 8b
28 8b
29 8b
30 $
31
32 ## ddiff.13.ctst ends here
+0
-33
test/ddiff.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-05-13 -f '%db' <<EOF
3 2012-05-01
4 2012-05-02
5 2012-05-03
6 2012-05-04
7 2012-05-05
8 2012-05-06
9 2012-05-07
10 2012-05-08
11 2012-05-09
12 2012-05-10
13 2012-05-11
14 2012-05-12
15 2012-05-13
16 EOF
17 -8b
18 -7b
19 -6b
20 -5b
21 -5b
22 -5b
23 -4b
24 -3b
25 -2b
26 -1b
27 0b
28 0b
29 0b
30 $
31
32 ## ddiff.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-05-13 -f '%db' <<EOF
3 2012-05-01
4 2012-05-02
5 2012-05-03
6 2012-05-04
7 2012-05-05
8 2012-05-06
9 2012-05-07
10 2012-05-08
11 2012-05-09
12 2012-05-10
13 2012-05-11
14 2012-05-12
15 2012-05-13
16 EOF
17 -8b
18 -7b
19 -6b
20 -5b
21 -5b
22 -5b
23 -4b
24 -3b
25 -2b
26 -1b
27 0b
28 0b
29 0b
30 $
31
32 ## ddiff.14.ctst ends here
+0
-39
test/ddiff.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-05-05 -f '%db' <<EOF
3 2012-05-01
4 2012-05-02
5 2012-05-03
6 2012-05-04
7 2012-05-05
8 2012-05-06
9 2012-05-07
10 2012-05-08
11 2012-05-09
12 2012-05-10
13 2012-05-11
14 2012-05-12
15 2012-05-13
16 2012-05-14
17 2012-05-15
18 2012-05-16
19 EOF
20 -3b
21 -2b
22 -1b
23 0b
24 0b
25 0b
26 1b
27 2b
28 3b
29 4b
30 5b
31 5b
32 5b
33 6b
34 7b
35 8b
36 $
37
38 ## ddiff.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-05-05 -f '%db' <<EOF
3 2012-05-01
4 2012-05-02
5 2012-05-03
6 2012-05-04
7 2012-05-05
8 2012-05-06
9 2012-05-07
10 2012-05-08
11 2012-05-09
12 2012-05-10
13 2012-05-11
14 2012-05-12
15 2012-05-13
16 2012-05-14
17 2012-05-15
18 2012-05-16
19 EOF
20 -3b
21 -2b
22 -1b
23 0b
24 0b
25 0b
26 1b
27 2b
28 3b
29 4b
30 5b
31 5b
32 5b
33 6b
34 7b
35 8b
36 $
37
38 ## ddiff.15.ctst ends here
+0
-39
test/ddiff.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-05-11 -f '%db' <<EOF
3 2012-05-01
4 2012-05-02
5 2012-05-03
6 2012-05-04
7 2012-05-05
8 2012-05-06
9 2012-05-07
10 2012-05-08
11 2012-05-09
12 2012-05-10
13 2012-05-11
14 2012-05-12
15 2012-05-13
16 2012-05-14
17 2012-05-15
18 2012-05-16
19 EOF
20 -8b
21 -7b
22 -6b
23 -5b
24 -5b
25 -5b
26 -4b
27 -3b
28 -2b
29 -1b
30 0b
31 0b
32 0b
33 1b
34 2b
35 3b
36 $
37
38 ## ddiff.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-05-11 -f '%db' <<EOF
3 2012-05-01
4 2012-05-02
5 2012-05-03
6 2012-05-04
7 2012-05-05
8 2012-05-06
9 2012-05-07
10 2012-05-08
11 2012-05-09
12 2012-05-10
13 2012-05-11
14 2012-05-12
15 2012-05-13
16 2012-05-14
17 2012-05-15
18 2012-05-16
19 EOF
20 -8b
21 -7b
22 -6b
23 -5b
24 -5b
25 -5b
26 -4b
27 -3b
28 -2b
29 -1b
30 0b
31 0b
32 0b
33 1b
34 2b
35 3b
36 $
37
38 ## ddiff.16.ctst ends here
+0
-7
test/ddiff.017.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-29 -f '%yy %mm %dd'
3 1y 0m 0d
4 $
5
6 ## ddiff.017.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-29 -f '%yy %mm %dd'
3 1y 0m 0d
4 $
5
6 ## ddiff.017.ctst ends here
+0
-7
test/ddiff.018.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-29 -f '%yy'
3 1y
4 $
5
6 ## ddiff.018.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-29 -f '%yy'
3 1y
4 $
5
6 ## ddiff.018.ctst ends here
+0
-7
test/ddiff.019.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-07-31 2009-07-31 -f '%yy %mm %dd'
3 1y 0m 0d
4 $
5
6 ## ddiff.019.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-07-31 2009-07-31 -f '%yy %mm %dd'
3 1y 0m 0d
4 $
5
6 ## ddiff.019.ctst ends here
+0
-7
test/ddiff.020.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-07-31 2009-07-31 -f '%yy'
3 1y
4 $
5
6 ## ddiff.020.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-07-31 2009-07-31 -f '%yy'
3 1y
4 $
5
6 ## ddiff.020.ctst ends here
+0
-7
test/ddiff.021.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-29 -f '%y-%0m-%0d'
3 1-00-00
4 $
5
6 ## ddiff.021.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-29 -f '%y-%0m-%0d'
3 1-00-00
4 $
5
6 ## ddiff.021.ctst ends here
+0
-7
test/ddiff.022.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
3 0-11-03
4 $
5
6 ## ddiff.022.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
3 0-11-03
4 $
5
6 ## ddiff.022.ctst ends here
+0
-7
test/ddiff.023.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
3 0-11-03
4 $
5
6 ## ddiff.023.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-%0m-%0d'
3 0-11-03
4 $
5
6 ## ddiff.023.ctst ends here
+0
-7
test/ddiff.024.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-%0d'
3 0-337
4 $
5
6 ## ddiff.024.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-%0d'
3 0-337
4 $
5
6 ## ddiff.024.ctst ends here
+0
-7
test/ddiff.025.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-30 -f '%y-%0d'
3 1-001
4 $
5
6 ## ddiff.025.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-30 -f '%y-%0d'
3 1-001
4 $
5
6 ## ddiff.025.ctst ends here
+0
-7
test/ddiff.026.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-29 -f '%y-% m-% d'
3 1- 0- 0
4 $
5
6 ## ddiff.026.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-29 -f '%y-% m-% d'
3 1- 0- 0
4 $
5
6 ## ddiff.026.ctst ends here
+0
-7
test/ddiff.027.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
3 0-11- 3
4 $
5
6 ## ddiff.027.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
3 0-11- 3
4 $
5
6 ## ddiff.027.ctst ends here
+0
-7
test/ddiff.028.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
3 0-11- 3
4 $
5
6 ## ddiff.028.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-% m-% d'
3 0-11- 3
4 $
5
6 ## ddiff.028.ctst ends here
+0
-7
test/ddiff.029.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-% d'
3 0-337
4 $
5
6 ## ddiff.029.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-01 -f '%y-% d'
3 0-337
4 $
5
6 ## ddiff.029.ctst ends here
+0
-7
test/ddiff.030.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-30 -f '%y-% d'
3 1- 1
4 $
5
6 ## ddiff.030.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-06-29 2009-06-30 -f '%y-% d'
3 1- 1
4 $
5
6 ## ddiff.030.ctst ends here
+0
-7
test/ddiff.031.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-01-30 2012-01-30 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.031.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-01-30 2012-01-30 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.031.ctst ends here
+0
-7
test/ddiff.032.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-01-30 2010-01-30 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.032.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-01-30 2010-01-30 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.032.ctst ends here
+0
-7
test/ddiff.033.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2009-01-30 2011-01-30 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.033.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2009-01-30 2011-01-30 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.033.ctst ends here
+0
-7
test/ddiff.034.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-01-30 2012-01-30 -f '%Y %d'
3 4 0
4 $
5
6 ## ddiff.034.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-01-30 2012-01-30 -f '%Y %d'
3 4 0
4 $
5
6 ## ddiff.034.ctst ends here
+0
-7
test/ddiff.035.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-03-31 2010-03-31 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.035.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-03-31 2010-03-31 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.035.ctst ends here
+0
-7
test/ddiff.036.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-03-31 2012-03-31 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.036.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-03-31 2012-03-31 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.036.ctst ends here
+0
-7
test/ddiff.037.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2009-03-31 2011-03-31 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.037.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2009-03-31 2011-03-31 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.037.ctst ends here
+0
-7
test/ddiff.038.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-03-31 2012-03-31 -f '%Y %d'
3 4 0
4 $
5
6 ## ddiff.038.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-03-31 2012-03-31 -f '%Y %d'
3 4 0
4 $
5
6 ## ddiff.038.ctst ends here
+0
-7
test/ddiff.039.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-01-30 2010-03-31 -f '%Y %d'
3 2 60
4 $
5
6 ## ddiff.039.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-01-30 2010-03-31 -f '%Y %d'
3 2 60
4 $
5
6 ## ddiff.039.ctst ends here
+0
-7
test/ddiff.040.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-01-30 2012-03-31 -f '%Y %d'
3 2 61
4 $
5
6 ## ddiff.040.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-01-30 2012-03-31 -f '%Y %d'
3 2 61
4 $
5
6 ## ddiff.040.ctst ends here
+0
-7
test/ddiff.041.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2009-01-30 2011-03-31 -f '%Y %d'
3 2 60
4 $
5
6 ## ddiff.041.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2009-01-30 2011-03-31 -f '%Y %d'
3 2 60
4 $
5
6 ## ddiff.041.ctst ends here
+0
-7
test/ddiff.042.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-01-30 2012-03-31 -f '%Y %d'
3 4 61
4 $
5
6 ## ddiff.042.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-01-30 2012-03-31 -f '%Y %d'
3 4 61
4 $
5
6 ## ddiff.042.ctst ends here
+0
-7
test/ddiff.043.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-03-31 2010-01-30 -f '%Y %d'
3 1 305
4 $
5
6 ## ddiff.043.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-03-31 2010-01-30 -f '%Y %d'
3 1 305
4 $
5
6 ## ddiff.043.ctst ends here
+0
-7
test/ddiff.044.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-03-31 2012-01-30 -f '%Y %d'
3 1 305
4 $
5
6 ## ddiff.044.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-03-31 2012-01-30 -f '%Y %d'
3 1 305
4 $
5
6 ## ddiff.044.ctst ends here
+0
-7
test/ddiff.045.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2009-03-31 2011-01-30 -f '%Y %d'
3 1 305
4 $
5
6 ## ddiff.045.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2009-03-31 2011-01-30 -f '%Y %d'
3 1 305
4 $
5
6 ## ddiff.045.ctst ends here
+0
-7
test/ddiff.046.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-03-31 2012-01-30 -f '%Y %d'
3 3 305
4 $
5
6 ## ddiff.046.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-03-31 2012-01-30 -f '%Y %d'
3 3 305
4 $
5
6 ## ddiff.046.ctst ends here
+0
-7
test/ddiff.047.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-02-28 2012-02-29 -f '%Y %d'
3 2 1
4 $
5
6 ## ddiff.047.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-02-28 2012-02-29 -f '%Y %d'
3 2 1
4 $
5
6 ## ddiff.047.ctst ends here
+0
-7
test/ddiff.048.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-02-29 2010-03-01 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.048.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-02-29 2010-03-01 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.048.ctst ends here
+0
-7
test/ddiff.049.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-02-28 2010-03-01 -f '%Y %d'
3 2 1
4 $
5
6 ## ddiff.049.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-02-28 2010-03-01 -f '%Y %d'
3 2 1
4 $
5
6 ## ddiff.049.ctst ends here
+0
-7
test/ddiff.050.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-02-29 -f '%Y %d'
3 1 365
4 $
5
6 ## ddiff.050.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-02-29 -f '%Y %d'
3 1 365
4 $
5
6 ## ddiff.050.ctst ends here
+0
-7
test/ddiff.051.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-03-01 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.051.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-03-01 -f '%Y %d'
3 2 0
4 $
5
6 ## ddiff.051.ctst ends here
+0
-7
test/ddiff.052.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-02-29 2012-03-01 -f '%Y %d'
3 4 1
4 $
5
6 ## ddiff.052.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-02-29 2012-03-01 -f '%Y %d'
3 4 1
4 $
5
6 ## ddiff.052.ctst ends here
+0
-7
test/ddiff.053.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-03-01 -f '%Y %w %d'
3 2 0 3
4 $
5
6 ## ddiff.053.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-03-01 -f '%Y %w %d'
3 2 0 3
4 $
5
6 ## ddiff.053.ctst ends here
+0
-7
test/ddiff.054.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-02-27 -f '%Y %w %d'
3 2 0 0
4 $
5
6 ## ddiff.054.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-02-27 -f '%Y %w %d'
3 2 0 0
4 $
5
6 ## ddiff.054.ctst ends here
+0
-7
test/ddiff.055.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-02-26 -f '%Y %w %d'
3 1 51 6
4 $
5
6 ## ddiff.055.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2010-03-01 2012-02-26 -f '%Y %w %d'
3 1 51 6
4 $
5
6 ## ddiff.055.ctst ends here
+0
-7
test/ddiff.056.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2014-04-01 2014-04-15 -f '%Y %w %d'
3 0 2 0
4 $
5
6 ## ddiff.056.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2014-04-01 2014-04-15 -f '%Y %w %d'
3 0 2 0
4 $
5
6 ## ddiff.056.ctst ends here
+0
-7
test/ddiff.057.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2009-W52-4 2010-W01-04 -f '%Y %w %d'
3 0 2 0
4 $
5
6 ## ddiff.057.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2009-W52-4 2010-W01-04 -f '%Y %w %d'
3 0 2 0
4 $
5
6 ## ddiff.057.ctst ends here
+0
-7
test/ddiff.058.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-4 2010-W01-04 -f '%Y %w %d'
3 1 2 0
4 $
5
6 ## ddiff.058.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-4 2010-W01-04 -f '%Y %w %d'
3 1 2 0
4 $
5
6 ## ddiff.058.ctst ends here
+0
-7
test/ddiff.059.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2009-W52-4 2011-W01-04 -f '%Y %w %d'
3 1 1 0
4 $
5
6 ## ddiff.059.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2009-W52-4 2011-W01-04 -f '%Y %w %d'
3 1 1 0
4 $
5
6 ## ddiff.059.ctst ends here
+0
-7
test/ddiff.060.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7 2009-W01-07 -f '%Y %w %d'
3 0 1 0
4 $
5
6 ## ddiff.060.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7 2009-W01-07 -f '%Y %w %d'
3 0 1 0
4 $
5
6 ## ddiff.060.ctst ends here
+0
-7
test/ddiff.061.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7 2009-W01-07 -f ywd
3 0-W01-0
4 $
5
6 ## ddiff.061.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7 2009-W01-07 -f ywd
3 0-W01-0
4 $
5
6 ## ddiff.061.ctst ends here
+0
-7
test/ddiff.062.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7 2009-W01-07 -f daisy
3 7
4 $
5
6 ## ddiff.062.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7 2009-W01-07 -f daisy
3 7
4 $
5
6 ## ddiff.062.ctst ends here
+0
-5
test/ddiff.063.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2014-09-15T17:00:00 2014-09-15T11:20:00 -f '%H:%0M:%0S'
3 -5:40:00
4 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2014-09-15T17:00:00 2014-09-15T11:20:00 -f '%H:%0M:%0S'
3 -5:40:00
4 $
+0
-5
test/ddiff.064.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 17:00:00 11:20:00 -f '%H:%0M:%0S'
3 -5:40:00
4 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 17:00:00 11:20:00 -f '%H:%0M:%0S'
3 -5:40:00
4 $
+0
-5
test/ddiff.065.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2014-09-15T17:00:00 2014-09-15T11:20:00 -f '%H %S'
3 -5 2400
4 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2014-09-15T17:00:00 2014-09-15T11:20:00 -f '%H %S'
3 -5 2400
4 $
+0
-5
test/ddiff.066.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 17:00:00 11:19:20 -f '%H %S'
3 -5 2440
4 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 17:00:00 11:19:20 -f '%H %S'
3 -5 2440
4 $
+0
-7
test/ddiff.067.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2014-09-13T16:20:00 2014-09-15T17:00:00 -f '%d %S'
3 2 2400
4 $ ddiff 2014-09-15T17:00:00 2014-09-13T16:20:00 -f '%d %S'
5 -2 2400
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2014-09-13T16:20:00 2014-09-15T17:00:00 -f '%d %S'
3 2 2400
4 $ ddiff 2014-09-15T17:00:00 2014-09-13T16:20:00 -f '%d %S'
5 -2 2400
6 $
+0
-7
test/ddiff.068.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2014-09-07T16:20:00 2014-09-15T17:00:00 -f '%w %d %S'
3 1 1 2400
4 $ ddiff 2014-09-15T17:00:00 2014-09-07T16:20:00 -f '%w %d %S'
5 -1 1 2400
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2014-09-07T16:20:00 2014-09-15T17:00:00 -f '%w %d %S'
3 1 1 2400
4 $ ddiff 2014-09-15T17:00:00 2014-09-07T16:20:00 -f '%w %d %S'
5 -1 1 2400
6 $
+0
-12
test/ddiff.069.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff -qS 2012-03-02 < "${srcdir}/some-dates-and-other-stuff.csv"
3 673
4 703
5 732
6
7 799
8
9 $
10
11 ## ddiff.069.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff -qS 2012-03-02 < "${srcdir}/some-dates-and-other-stuff.csv"
3 673
4 703
5 732
6
7 799
8
9 $
10
11 ## ddiff.069.ctst ends here
+0
-12
test/ddiff.070.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff -qS 2012-03-02T00:00:00 < "${srcdir}/some-dates-and-other-stuff.csv"
3 58176420s
4 60771600s
5 732
6
7 69069600s
8
9 $
10
11 ## ddiff.070.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff -qS 2012-03-02T00:00:00 < "${srcdir}/some-dates-and-other-stuff.csv"
3 58176420s
4 60771600s
5 732
6
7 69069600s
8
9 $
10
11 ## ddiff.070.ctst ends here
+0
-7
test/ddiff.071.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff -i '%d %B %y' --from-locale an_ES '12 abril 2016' '10 mayo 2016'
3 28
4 $
5
6 ## ddiff.071.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff -i '%d %B %y' --from-locale an_ES '12 abril 2016' '10 mayo 2016'
3 28
4 $
5
6 ## ddiff.071.ctst ends here
+0
-10
test/ddiff.072.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## regression case corresponding to bug/70
3 $ ddiff 2018-01-01T17:20:00 2018-02-03T18:20:00 -f "%m months, %w weeks & %d days"
4 1 months, 0 weeks & 2 days
5 $ ddiff 2018-01-01T17:20:00 2018-02-03T18:20:00 -f "%m months, %d days"
6 1 months, 2 days
7 $
8
9 ## ddiff.072.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## regression case corresponding to bug/70
3 $ ddiff 2018-01-01T17:20:00 2018-02-03T18:20:00 -f "%m months, %w weeks & %d days"
4 1 months, 0 weeks & 2 days
5 $ ddiff 2018-01-01T17:20:00 2018-02-03T18:20:00 -f "%m months, %d days"
6 1 months, 2 days
7 $
8
9 ## ddiff.072.ctst ends here
+0
-12
test/dgrep.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep 2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-01
9 $
10
11 ## dgrep.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep 2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-01
9 $
10
11 ## dgrep.1.ctst ends here
+0
-13
test/dgrep.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01' <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 $
11
12 ## dgrep.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01' <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 $
11
12 ## dgrep.2.ctst ends here
+0
-14
test/dgrep.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep \<=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 2012-03-01
11 $
12
13 ## dgrep.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep \<=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 2012-03-01
11 $
12
13 ## dgrep.3.ctst ends here
+0
-12
test/dgrep.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep \>2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-02
9 $
10
11 ## dgrep.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep \>2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-02
9 $
10
11 ## dgrep.4.ctst ends here
+0
-13
test/dgrep.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep \>=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-01
9 2012-03-02
10 $
11
12 ## dgrep.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep \>=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-01
9 2012-03-02
10 $
11
12 ## dgrep.5.ctst ends here
+0
-14
test/dgrep.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep \!=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 2012-03-02
11 $
12
13 ## dgrep.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep \!=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 2012-03-02
11 $
12
13 ## dgrep.6.ctst ends here
+0
-12
test/dgrep.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep =2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Mar 2012-03-01
9 $
10
11 ## dgrep.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep =2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Mar 2012-03-01
9 $
10
11 ## dgrep.7.ctst ends here
+0
-13
test/dgrep.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -o \<2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 $
11
12 ## dgrep.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -o \<2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 $
11
12 ## dgrep.8.ctst ends here
+0
-13
test/dgrep.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep --ge 2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Mar 2012-03-01
9 Mar 2012-03-02
10 $
11
12 ## dgrep.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep --ge 2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Mar 2012-03-01
9 Mar 2012-03-02
10 $
11
12 ## dgrep.9.ctst ends here
+0
-13
test/dgrep.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep --ge '2012-03-01' <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Mar 2012-03-01
9 Mar 2012-03-02
10 $
11
12 ## dgrep.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep --ge '2012-03-01' <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Mar 2012-03-01
9 Mar 2012-03-02
10 $
11
12 ## dgrep.10.ctst ends here
+0
-13
test/dgrep.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep --ge 2012-03-01 <<EOF
3 Feb,2012-02-28
4 Feb,2012-02-29 leap day
5 Mar,2012-03-01
6 Mar,2012-03-02
7 EOF
8 Mar,2012-03-01
9 Mar,2012-03-02
10 $
11
12 ## dgrep.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep --ge 2012-03-01 <<EOF
3 Feb,2012-02-28
4 Feb,2012-02-29 leap day
5 Mar,2012-03-01
6 Mar,2012-03-02
7 EOF
8 Mar,2012-03-01
9 Mar,2012-03-02
10 $
11
12 ## dgrep.11.ctst ends here
+0
-16
test/dgrep.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## Testing grep atoms, here it should look for / and various offsets
3 $ dgrep --ge May/03/99 -i "%B/%d/%y" <<EOF
4 fileF,February/28/2012
5 fileF,February/29/2012 leap day
6 fileM,March/01/2012
7 fileM,March/02/2012
8 EOF
9 fileF,February/28/2012
10 fileF,February/29/2012 leap day
11 fileM,March/01/2012
12 fileM,March/02/2012
13 $
14
15 ## dgrep.012.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## Testing grep atoms, here it should look for / and various offsets
3 $ dgrep --ge May/03/99 -i "%B/%d/%y" <<EOF
4 fileF,February/28/2012
5 fileF,February/29/2012 leap day
6 fileM,March/01/2012
7 fileM,March/02/2012
8 EOF
9 fileF,February/28/2012
10 fileF,February/29/2012 leap day
11 fileM,March/01/2012
12 fileM,March/02/2012
13 $
14
15 ## dgrep.012.ctst ends here
+0
-10
test/dgrep.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -i "%Y%m%d" -i "%F" 2012-03-03 <<EOF
3 this line was created on 20120303 and should match
4 whereas this line is as of 20120304 and shouldn't
5 EOF
6 this line was created on 20120303 and should match
7 $
8
9 ## dgrep.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -i "%Y%m%d" -i "%F" 2012-03-03 <<EOF
3 this line was created on 20120303 and should match
4 whereas this line is as of 20120304 and shouldn't
5 EOF
6 this line was created on 20120303 and should match
7 $
8
9 ## dgrep.13.ctst ends here
+0
-10
test/dgrep.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## Show only matching bit
3 $ dgrep -i '%Y%m%d-00' 20120303-00 -o <<EOF
4 - <- illegal 20120303-00
5 EOF
6 20120303-00
7 $
8
9 ## dgrep.014.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## Show only matching bit
3 $ dgrep -i '%Y%m%d-00' 20120303-00 -o <<EOF
4 - <- illegal 20120303-00
5 EOF
6 20120303-00
7 $
8
9 ## dgrep.014.ctst ends here
+0
-15
test/dgrep.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep --ge 1999-05-03 -i "%B/%d/%y" <<EOF
3 fileF,February/28/2012
4 fileF,February/29/2012 leap day
5 fileM,March/01/2012
6 fileM,March/02/2012
7 EOF
8 fileF,February/28/2012
9 fileF,February/29/2012 leap day
10 fileM,March/01/2012
11 fileM,March/02/2012
12 $
13
14 ## dgrep.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep --ge 1999-05-03 -i "%B/%d/%y" <<EOF
3 fileF,February/28/2012
4 fileF,February/29/2012 leap day
5 fileM,March/01/2012
6 fileM,March/02/2012
7 EOF
8 fileF,February/28/2012
9 fileF,February/29/2012 leap day
10 fileM,March/01/2012
11 fileM,March/02/2012
12 $
13
14 ## dgrep.15.ctst ends here
+0
-9
test/dgrep.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -i '%Y%m%d-00' 2012-03-03 -o <<EOF
3 - <- illegal 20120303-00
4 EOF
5 20120303-00
6 $
7
8 ## dgrep.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -i '%Y%m%d-00' 2012-03-03 -o <<EOF
3 - <- illegal 20120303-00
4 EOF
5 20120303-00
6 $
7
8 ## dgrep.16.ctst ends here
+0
-15
test/dgrep.017.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep --ge May/03/99 -i "%B/%d/%y" <<EOF
3 fileF,February/28/12
4 fileF,February/29/12 leap day
5 fileM,March/01/12
6 fileM,March/02/12
7 EOF
8 fileF,February/28/12
9 fileF,February/29/12 leap day
10 fileM,March/01/12
11 fileM,March/02/12
12 $
13
14 ## dgrep.17.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep --ge May/03/99 -i "%B/%d/%y" <<EOF
3 fileF,February/28/12
4 fileF,February/29/12 leap day
5 fileM,March/01/12
6 fileM,March/02/12
7 EOF
8 fileF,February/28/12
9 fileF,February/29/12 leap day
10 fileM,March/01/12
11 fileM,March/02/12
12 $
13
14 ## dgrep.17.ctst ends here
+0
-15
test/dgrep.018.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<today' -i "%B/%d/%y" <<EOF
3 fileF,February/28/12
4 fileF,February/29/12 leap day
5 fileM,March/01/12
6 fileM,March/02/12
7 EOF
8 fileF,February/28/12
9 fileF,February/29/12 leap day
10 fileM,March/01/12
11 fileM,March/02/12
12 $
13
14 ## dgrep.18.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<today' -i "%B/%d/%y" <<EOF
3 fileF,February/28/12
4 fileF,February/29/12 leap day
5 fileM,March/01/12
6 fileM,March/02/12
7 EOF
8 fileF,February/28/12
9 fileF,February/29/12 leap day
10 fileM,March/01/12
11 fileM,March/02/12
12 $
13
14 ## dgrep.18.ctst ends here
+0
-17
test/dgrep.019.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '>=2012-11-01' -i "%B/%d/%y" <<EOF
3 fileF,September/28/12,October/12/12
4 fileF,September/29/12,November/01/12
5 fileM,October/01/12,October/31/12
6 fileM,October/02/12,November/30/12
7 fileX,November/01/12,November/30/12
8 fileX,November/02/12,October/31/12
9 EOF
10 fileF,September/29/12,November/01/12
11 fileM,October/02/12,November/30/12
12 fileX,November/01/12,November/30/12
13 fileX,November/02/12,October/31/12
14 $
15
16 ## dgrep.19.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '>=2012-11-01' -i "%B/%d/%y" <<EOF
3 fileF,September/28/12,October/12/12
4 fileF,September/29/12,November/01/12
5 fileM,October/01/12,October/31/12
6 fileM,October/02/12,November/30/12
7 fileX,November/01/12,November/30/12
8 fileX,November/02/12,October/31/12
9 EOF
10 fileF,September/29/12,November/01/12
11 fileM,October/02/12,November/30/12
12 fileX,November/01/12,November/30/12
13 fileX,November/02/12,October/31/12
14 $
15
16 ## dgrep.19.ctst ends here
+0
-18
test/dgrep.020.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<2012-11-01' -i "%B/%d/%y" <<EOF
3 fileF,September/28/12,October/12/12
4 fileF,September/29/12,November/01/12
5 fileM,October/01/12,October/31/12
6 fileM,October/02/12,November/30/12
7 fileX,November/01/12,November/30/12
8 fileX,November/02/12,October/31/12
9 EOF
10 fileF,September/28/12,October/12/12
11 fileF,September/29/12,November/01/12
12 fileM,October/01/12,October/31/12
13 fileM,October/02/12,November/30/12
14 fileX,November/02/12,October/31/12
15 $
16
17 ## dgrep.20.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<2012-11-01' -i "%B/%d/%y" <<EOF
3 fileF,September/28/12,October/12/12
4 fileF,September/29/12,November/01/12
5 fileM,October/01/12,October/31/12
6 fileM,October/02/12,November/30/12
7 fileX,November/01/12,November/30/12
8 fileX,November/02/12,October/31/12
9 EOF
10 fileF,September/28/12,October/12/12
11 fileF,September/29/12,November/01/12
12 fileM,October/01/12,October/31/12
13 fileM,October/02/12,November/30/12
14 fileX,November/02/12,October/31/12
15 $
16
17 ## dgrep.20.ctst ends here
+0
-14
test/dgrep.021.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v 2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 2012-03-02
11 $
12
13 ## dgrep.021.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v 2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 2012-03-02
11 $
12
13 ## dgrep.021.ctst ends here
+0
-13
test/dgrep.022.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v '<2012-03-01' <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-01
9 2012-03-02
10 $
11
12 ## dgrep.022.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v '<2012-03-01' <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-01
9 2012-03-02
10 $
11
12 ## dgrep.022.ctst ends here
+0
-12
test/dgrep.023.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v \<=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-02
9 $
10
11 ## dgrep.023.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v \<=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-02
9 $
10
11 ## dgrep.023.ctst ends here
+0
-14
test/dgrep.024.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v \>2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 2012-03-01
11 $
12
13 ## dgrep.024.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v \>2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 2012-03-01
11 $
12
13 ## dgrep.024.ctst ends here
+0
-13
test/dgrep.025.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v \>=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 $
11
12 ## dgrep.025.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v \>=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-02-28
9 2012-02-29
10 $
11
12 ## dgrep.025.ctst ends here
+0
-12
test/dgrep.026.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v \!=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-01
9 $
10
11 ## dgrep.026.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v \!=2012-03-01 <<EOF
3 2012-02-28
4 2012-02-29
5 2012-03-01
6 2012-03-02
7 EOF
8 2012-03-01
9 $
10
11 ## dgrep.026.ctst ends here
+0
-14
test/dgrep.027.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v =2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Feb 2012-02-28
9 Feb 2012-02-29 leap day
10 Mar 2012-03-02
11 $
12
13 ## dgrep.027.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v =2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Feb 2012-02-28
9 Feb 2012-02-29 leap day
10 Mar 2012-03-02
11 $
12
13 ## dgrep.027.ctst ends here
+0
-13
test/dgrep.028.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v -o \<2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 2012-03-01
9 2012-03-02
10 $
11
12 ## dgrep.028.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v -o \<2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 2012-03-01
9 2012-03-02
10 $
11
12 ## dgrep.028.ctst ends here
+0
-13
test/dgrep.029.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v --ge 2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Feb 2012-02-28
9 Feb 2012-02-29 leap day
10 $
11
12 ## dgrep.029.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v --ge 2012-03-01 <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Feb 2012-02-28
9 Feb 2012-02-29 leap day
10 $
11
12 ## dgrep.029.ctst ends here
+0
-13
test/dgrep.030.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v --ge '2012-03-01' <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Feb 2012-02-28
9 Feb 2012-02-29 leap day
10 $
11
12 ## dgrep.030.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v --ge '2012-03-01' <<EOF
3 Feb 2012-02-28
4 Feb 2012-02-29 leap day
5 Mar 2012-03-01
6 Mar 2012-03-02
7 EOF
8 Feb 2012-02-28
9 Feb 2012-02-29 leap day
10 $
11
12 ## dgrep.030.ctst ends here
+0
-13
test/dgrep.031.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v --ge 2012-03-01 <<EOF
3 Feb,2012-02-28
4 Feb,2012-02-29 leap day
5 Mar,2012-03-01
6 Mar,2012-03-02
7 EOF
8 Feb,2012-02-28
9 Feb,2012-02-29 leap day
10 $
11
12 ## dgrep.031.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v --ge 2012-03-01 <<EOF
3 Feb,2012-02-28
4 Feb,2012-02-29 leap day
5 Mar,2012-03-01
6 Mar,2012-03-02
7 EOF
8 Feb,2012-02-28
9 Feb,2012-02-29 leap day
10 $
11
12 ## dgrep.031.ctst ends here
+0
-12
test/dgrep.032.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## Testing grep atoms, here it should look for / and various offsets
3 $ dgrep -v --ge May/03/99 -i "%B/%d/%y" <<EOF
4 fileF,February/28/2012
5 fileF,February/29/2012 leap day
6 fileM,March/01/2012
7 fileM,March/02/2012
8 EOF
9 $
10
11 ## dgrep.032.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## Testing grep atoms, here it should look for / and various offsets
3 $ dgrep -v --ge May/03/99 -i "%B/%d/%y" <<EOF
4 fileF,February/28/2012
5 fileF,February/29/2012 leap day
6 fileM,March/01/2012
7 fileM,March/02/2012
8 EOF
9 $
10
11 ## dgrep.032.ctst ends here
+0
-10
test/dgrep.033.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v -i "%Y%m%d" -i "%F" 2012-03-03 <<EOF
3 this line was created on 20120303 and should match
4 whereas this line is as of 20120304 and shouldn't
5 EOF
6 whereas this line is as of 20120304 and shouldn't
7 $
8
9 ## dgrep.033.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v -i "%Y%m%d" -i "%F" 2012-03-03 <<EOF
3 this line was created on 20120303 and should match
4 whereas this line is as of 20120304 and shouldn't
5 EOF
6 whereas this line is as of 20120304 and shouldn't
7 $
8
9 ## dgrep.033.ctst ends here
+0
-9
test/dgrep.034.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## Show only matching bit
3 $ dgrep -v -i '%Y%m%d-00' 20120303-00 -o <<EOF
4 - <- illegal 20120303-00
5 EOF
6 $
7
8 ## dgrep.034.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## Show only matching bit
3 $ dgrep -v -i '%Y%m%d-00' 20120303-00 -o <<EOF
4 - <- illegal 20120303-00
5 EOF
6 $
7
8 ## dgrep.034.ctst ends here
+0
-11
test/dgrep.035.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v --ge 1999-05-03 -i "%B/%d/%y" <<EOF
3 fileF,February/28/2012
4 fileF,February/29/2012 leap day
5 fileM,March/01/2012
6 fileM,March/02/2012
7 EOF
8 $
9
10 ## dgrep.035.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v --ge 1999-05-03 -i "%B/%d/%y" <<EOF
3 fileF,February/28/2012
4 fileF,February/29/2012 leap day
5 fileM,March/01/2012
6 fileM,March/02/2012
7 EOF
8 $
9
10 ## dgrep.035.ctst ends here
+0
-8
test/dgrep.036.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v -i '%Y%m%d-00' 2012-03-03 -o <<EOF
3 - <- illegal 20120303-00
4 EOF
5 $
6
7 ## dgrep.036.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v -i '%Y%m%d-00' 2012-03-03 -o <<EOF
3 - <- illegal 20120303-00
4 EOF
5 $
6
7 ## dgrep.036.ctst ends here
+0
-11
test/dgrep.037.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v --ge May/03/99 -i "%B/%d/%y" <<EOF
3 fileF,February/28/12
4 fileF,February/29/12 leap day
5 fileM,March/01/12
6 fileM,March/02/12
7 EOF
8 $
9
10 ## dgrep.037.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v --ge May/03/99 -i "%B/%d/%y" <<EOF
3 fileF,February/28/12
4 fileF,February/29/12 leap day
5 fileM,March/01/12
6 fileM,March/02/12
7 EOF
8 $
9
10 ## dgrep.037.ctst ends here
+0
-11
test/dgrep.038.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v '<today' -i "%B/%d/%y" <<EOF
3 fileF,February/28/12
4 fileF,February/29/12 leap day
5 fileM,March/01/12
6 fileM,March/02/12
7 EOF
8 $
9
10 ## dgrep.038.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v '<today' -i "%B/%d/%y" <<EOF
3 fileF,February/28/12
4 fileF,February/29/12 leap day
5 fileM,March/01/12
6 fileM,March/02/12
7 EOF
8 $
9
10 ## dgrep.038.ctst ends here
+0
-15
test/dgrep.039.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v '>=2012-11-01' -i "%B/%d/%y" <<EOF
3 fileF,September/28/12,October/12/12
4 fileF,September/29/12,November/01/12
5 fileM,October/01/12,October/31/12
6 fileM,October/02/12,November/30/12
7 fileX,November/01/12,November/30/12
8 fileX,November/02/12,October/31/12
9 EOF
10 fileF,September/28/12,October/12/12
11 fileM,October/01/12,October/31/12
12 $
13
14 ## dgrep.039.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v '>=2012-11-01' -i "%B/%d/%y" <<EOF
3 fileF,September/28/12,October/12/12
4 fileF,September/29/12,November/01/12
5 fileM,October/01/12,October/31/12
6 fileM,October/02/12,November/30/12
7 fileX,November/01/12,November/30/12
8 fileX,November/02/12,October/31/12
9 EOF
10 fileF,September/28/12,October/12/12
11 fileM,October/01/12,October/31/12
12 $
13
14 ## dgrep.039.ctst ends here
+0
-14
test/dgrep.040.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v '<2012-11-01' -i "%B/%d/%y" <<EOF
3 fileF,September/28/12,October/12/12
4 fileF,September/29/12,November/01/12
5 fileM,October/01/12,October/31/12
6 fileM,October/02/12,November/30/12
7 fileX,November/01/12,November/30/12
8 fileX,November/02/12,October/31/12
9 EOF
10 fileX,November/01/12,November/30/12
11 $
12
13 ## dgrep.040.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v '<2012-11-01' -i "%B/%d/%y" <<EOF
3 fileF,September/28/12,October/12/12
4 fileF,September/29/12,November/01/12
5 fileM,October/01/12,October/31/12
6 fileM,October/02/12,November/30/12
7 fileX,November/01/12,November/30/12
8 fileX,November/02/12,October/31/12
9 EOF
10 fileX,November/01/12,November/30/12
11 $
12
13 ## dgrep.040.ctst ends here
+0
-14
test/dgrep.041.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -v '<2012-11-01' -i "%B/%d/%y" --from-locale xh_ZA <<EOF
3 fileF,eyoMsintsi/28/12,eyeDwarha/12/12
4 fileF,eyoMsintsi/29/12,eyeNkanga/01/12
5 fileM,eyeDwarha/01/12,eyeDwarha/31/12
6 fileM,eyeDwarha/02/12,eyeNkanga/30/12
7 fileX,eyeNkanga/01/12,eyeNkanga/30/12
8 fileX,eyeNkanga/02/12,eyeDwarha/31/12
9 EOF
10 fileX,eyeNkanga/01/12,eyeNkanga/30/12
11 $
12
13 ## dgrep.041.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -v '<2012-11-01' -i "%B/%d/%y" --from-locale xh_ZA <<EOF
3 fileF,eyoMsintsi/28/12,eyeDwarha/12/12
4 fileF,eyoMsintsi/29/12,eyeNkanga/01/12
5 fileM,eyeDwarha/01/12,eyeDwarha/31/12
6 fileM,eyeDwarha/02/12,eyeNkanga/30/12
7 fileX,eyeNkanga/01/12,eyeNkanga/30/12
8 fileX,eyeNkanga/02/12,eyeDwarha/31/12
9 EOF
10 fileX,eyeNkanga/01/12,eyeNkanga/30/12
11 $
12
13 ## dgrep.041.ctst ends here
+0
-20
test/dgrep.042.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2018-03-05 2018-05-15 -f '%F %a %c %u' | dgrep '%c=04'
3 2018-03-22 Thu 04 4
4 2018-03-23 Fri 04 5
5 2018-03-24 Sat 04 6
6 2018-03-25 Sun 04 7
7 2018-03-26 Mon 04 1
8 2018-03-27 Tue 04 2
9 2018-03-28 Wed 04 3
10 2018-04-22 Sun 04 7
11 2018-04-23 Mon 04 1
12 2018-04-24 Tue 04 2
13 2018-04-25 Wed 04 3
14 2018-04-26 Thu 04 4
15 2018-04-27 Fri 04 5
16 2018-04-28 Sat 04 6
17 $
18
19 ## dgrep.042.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2018-03-05 2018-05-15 -f '%F %a %c %u' | dgrep '%c=04'
3 2018-03-22 Thu 04 4
4 2018-03-23 Fri 04 5
5 2018-03-24 Sat 04 6
6 2018-03-25 Sun 04 7
7 2018-03-26 Mon 04 1
8 2018-03-27 Tue 04 2
9 2018-03-28 Wed 04 3
10 2018-04-22 Sun 04 7
11 2018-04-23 Mon 04 1
12 2018-04-24 Tue 04 2
13 2018-04-25 Wed 04 3
14 2018-04-26 Thu 04 4
15 2018-04-27 Fri 04 5
16 2018-04-28 Sat 04 6
17 $
18
19 ## dgrep.042.ctst ends here
+0
-16
test/dgrep.043.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2018-03-05 2018-05-15 -f '%F %a %c %u' | dgrep '%u=04'
3 2018-03-08 Thu 02 4
4 2018-03-15 Thu 03 4
5 2018-03-22 Thu 04 4
6 2018-03-29 Thu 05 4
7 2018-04-05 Thu 01 4
8 2018-04-12 Thu 02 4
9 2018-04-19 Thu 03 4
10 2018-04-26 Thu 04 4
11 2018-05-03 Thu 01 4
12 2018-05-10 Thu 02 4
13 $
14
15 ## dgrep.043.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2018-03-05 2018-05-15 -f '%F %a %c %u' | dgrep '%u=04'
3 2018-03-08 Thu 02 4
4 2018-03-15 Thu 03 4
5 2018-03-22 Thu 04 4
6 2018-03-29 Thu 05 4
7 2018-04-05 Thu 01 4
8 2018-04-12 Thu 02 4
9 2018-04-19 Thu 03 4
10 2018-04-26 Thu 04 4
11 2018-05-03 Thu 01 4
12 2018-05-10 Thu 02 4
13 $
14
15 ## dgrep.043.ctst ends here
+0
-7
test/dround.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-01 1
3 2012-03-01
4 $
5
6 ## dround.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-01 1
3 2012-03-01
4 $
5
6 ## dround.1.ctst ends here
+0
-7
test/dround.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-01 2
3 2012-03-02
4 $
5
6 ## dround.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-01 2
3 2012-03-02
4 $
5
6 ## dround.2.ctst ends here
+0
-7
test/dround.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 1
3 2012-04-01
4 $
5
6 ## dround.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 1
3 2012-04-01
4 $
5
6 ## dround.3.ctst ends here
+0
-7
test/dround.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 2
3 2012-03-02
4 $
5
6 ## dround.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 2
3 2012-03-02
4 $
5
6 ## dround.4.ctst ends here
+0
-7
test/dround.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-01 Sat
3 2012-03-03
4 $
5
6 ## dround.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-01 Sat
3 2012-03-03
4 $
5
6 ## dround.5.ctst ends here
+0
-7
test/dround.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-01 Thu
3 2012-03-01
4 $
5
6 ## dround.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-01 Thu
3 2012-03-01
4 $
5
6 ## dround.6.ctst ends here
+0
-7
test/dround.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 Thu
3 2012-03-08
4 $
5
6 ## dround.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 Thu
3 2012-03-08
4 $
5
6 ## dround.7.ctst ends here
+0
-7
test/dround.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 Sat
3 2012-03-03
4 $
5
6 ## dround.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 Sat
3 2012-03-03
4 $
5
6 ## dround.8.ctst ends here
+0
-7
test/dround.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-01 -- -Thu
3 2012-03-01
4 $
5
6 ## dround.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-01 -- -Thu
3 2012-03-01
4 $
5
6 ## dround.9.ctst ends here
+0
-7
test/dround.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 -- -Thu
3 2012-02-23
4 $
5
6 ## dround.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 -- -Thu
3 2012-02-23
4 $
5
6 ## dround.10.ctst ends here
+0
-7
test/dround.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-01 -- -Sat
3 2012-02-25
4 $
5
6 ## dround.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-01 -- -Sat
3 2012-02-25
4 $
5
6 ## dround.11.ctst ends here
+0
-7
test/dround.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 -- -Sat
3 2012-02-25
4 $
5
6 ## dround.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 -- -Sat
3 2012-02-25
4 $
5
6 ## dround.12.ctst ends here
+0
-7
test/dround.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-01 Mar
3 2012-03-01
4 $
5
6 ## dround.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-01 Mar
3 2012-03-01
4 $
5
6 ## dround.13.ctst ends here
+0
-7
test/dround.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 Mar
3 2013-03-01
4 $
5
6 ## dround.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 Mar
3 2013-03-01
4 $
5
6 ## dround.14.ctst ends here
+0
-7
test/dround.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-01 Sep
3 2012-09-01
4 $
5
6 ## dround.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-01 Sep
3 2012-09-01
4 $
5
6 ## dround.15.ctst ends here
+0
-7
test/dround.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 Sep
3 2012-09-01
4 $
5
6 ## dround.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-01 Sep
3 2012-09-01
4 $
5
6 ## dround.16.ctst ends here
+0
-7
test/dround.017.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04 -- -Mar
3 2012-03-04
4 $
5
6 ## dround.17.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04 -- -Mar
3 2012-03-04
4 $
5
6 ## dround.17.ctst ends here
+0
-7
test/dround.018.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-04 -- -Mar
3 2011-03-04
4 $
5
6 ## dround.18.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-04 -- -Mar
3 2011-03-04
4 $
5
6 ## dround.18.ctst ends here
+0
-7
test/dround.019.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04 -- -Sep
3 2011-09-04
4 $
5
6 ## dround.19.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04 -- -Sep
3 2011-09-04
4 $
5
6 ## dround.19.ctst ends here
+0
-7
test/dround.020.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 2012-03-04 -- -Sep
3 2011-09-04
4 $
5
6 ## dround.20.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 2012-03-04 -- -Sep
3 2011-09-04
4 $
5
6 ## dround.20.ctst ends here
+0
-15
test/dround.021.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -S -n 1 <<EOF
3 pay cable 2012-02-28
4 pay gas 2012-02-29
5 pay rent 2012-03-01
6 redeem loan 2012-03-02
7 EOF
8 pay cable 2012-03-01
9 pay gas 2012-03-01
10 pay rent 2012-04-01
11 redeem loan 2012-04-01
12 $
13
14 ## dround.21.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -S -n 1 <<EOF
3 pay cable 2012-02-28
4 pay gas 2012-02-29
5 pay rent 2012-03-01
6 redeem loan 2012-03-02
7 EOF
8 pay cable 2012-03-01
9 pay gas 2012-03-01
10 pay rent 2012-04-01
11 redeem loan 2012-04-01
12 $
13
14 ## dround.21.ctst ends here
+0
-15
test/dround.022.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -S -1 <<EOF
3 pay cable 2012-02-28
4 pay gas 2012-02-29
5 pay rent 2012-03-01
6 redeem loan 2012-03-02
7 EOF
8 pay cable 2012-02-01
9 pay gas 2012-02-01
10 pay rent 2012-03-01
11 redeem loan 2012-03-01
12 $
13
14 ## dround.22.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -S -1 <<EOF
3 pay cable 2012-02-28
4 pay gas 2012-02-29
5 pay rent 2012-03-01
6 redeem loan 2012-03-02
7 EOF
8 pay cable 2012-02-01
9 pay gas 2012-02-01
10 pay rent 2012-03-01
11 redeem loan 2012-03-01
12 $
13
14 ## dround.22.ctst ends here
+0
-13
test/dround.023.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -q 1d -i "%d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-11-01
9 2013-11-01
10 $
11
12 ## dround.23.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -q 1d -i "%d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-11-01
9 2013-11-01
10 $
11
12 ## dround.23.ctst ends here
+0
-13
test/dround.024.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -q 1d -i "%d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-11-01
9 2013-11-01
10 $
11
12 ## dround.24.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -q 1d -i "%d.%m.%Y" <<EOF
3 FOLGENDE WERTPAPIERE WERDEN AM 02.10.2013 EX DIVIDENDE GEHANDELT.
4 THE EX-DIVIDEND DAY OF THE FOLLOWING SHARES WILL BE 02.10.2013.
5
6 INSTR EXCH ISIN INSTRUMENT NAME REF.PRC ADJUST
7 EOF
8 2013-11-01
9 2013-11-01
10 $
11
12 ## dround.24.ctst ends here
+0
-15
test/dround.025.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dround -S -n 1 <<EOF
3 pay cable 2012-02-28
4 pay gas 2012-02-29
5 pay rent 2012-02-30
6 redeem loan 2012-02-31
7 EOF
8 pay cable 2012-03-01
9 pay gas 2012-03-01
10 pay rent 2012-03-01
11 redeem loan 2012-03-01
12 $
13
14 ## dround.025.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dround -S -n 1 <<EOF
3 pay cable 2012-02-28
4 pay gas 2012-02-29
5 pay rent 2012-02-30
6 redeem loan 2012-02-31
7 EOF
8 pay cable 2012-03-01
9 pay gas 2012-03-01
10 pay rent 2012-03-01
11 redeem loan 2012-03-01
12 $
13
14 ## dround.025.ctst ends here
+0
-15
test/dround.026.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -q -S -n 1 <<EOF
3 pay cable 2012-02-28
4 pay gas 2012-02-29
5 pay rent 2012-02-30
6 redeem loan 2012-02-31
7 EOF
8 pay cable 2012-03-01
9 pay gas 2012-03-01
10 pay rent 2012-03-01
11 redeem loan 2012-03-01
12 $
13
14 ## dround.026.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -q -S -n 1 <<EOF
3 pay cable 2012-02-28
4 pay gas 2012-02-29
5 pay rent 2012-02-30
6 redeem loan 2012-02-31
7 EOF
8 pay cable 2012-03-01
9 pay gas 2012-03-01
10 pay rent 2012-03-01
11 redeem loan 2012-03-01
12 $
13
14 ## dround.026.ctst ends here
+0
-7
test/dround.027.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dround -n 2012-02-30 Thu
3 2012-03-01
4 $
5
6 ## dround.027.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dround -n 2012-02-30 Thu
3 2012-03-01
4 $
5
6 ## dround.027.ctst ends here
+0
-7
test/dround.028.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -qn 2012-02-30 Thu
3 2012-03-01
4 $
5
6 ## dround.028.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -qn 2012-02-30 Thu
3 2012-03-01
4 $
5
6 ## dround.028.ctst ends here
+0
-14
test/dround.029.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## round ywd dates
3 $ dround 2012-W02-5 Thu
4 2012-W03-4
5 $ dround 2012-W02-5 -- -Thu
6 2012-W02-4
7 $ dround 2012-W02-5 Mon
8 2012-W03-1
9 $ dround 2012-W02-5 -- -Sun
10 2012-W01-7
11 $
12
13 ## dround.029.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## round ywd dates
3 $ dround 2012-W02-5 Thu
4 2012-W03-4
5 $ dround 2012-W02-5 -- -Thu
6 2012-W02-4
7 $ dround 2012-W02-5 Mon
8 2012-W03-1
9 $ dround 2012-W02-5 -- -Sun
10 2012-W01-7
11 $
12
13 ## dround.029.ctst ends here
+0
-14
test/dround.030.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## round ywd dates
3 $ dround 2012-W02-5 -1w
4 2012-W01-5
5 $ dround 2012-W02-5 +1w
6 2013-W01-5
7 $ dround 2012-W02-5 14w
8 2012-W14-5
9 $ dround 2012-W02-5 -14w
10 2011-W14-5
11 $
12
13 ## dround.030.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## round ywd dates
3 $ dround 2012-W02-5 -1w
4 2012-W01-5
5 $ dround 2012-W02-5 +1w
6 2013-W01-5
7 $ dround 2012-W02-5 14w
8 2012-W14-5
9 $ dround 2012-W02-5 -14w
10 2011-W14-5
11 $
12
13 ## dround.030.ctst ends here
+0
-9
test/dround.031.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ echo '2016-01-01 12:12:12' | dround -i '%F %T' /15s
3 2016-01-01T12:12:15
4 $ echo '2016-01-01 12:12:12' | dconv -f '%s' | dround -i %s /15s
5 2016-01-01T12:12:15
6 $
7
8 ## dround.031.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ echo '2016-01-01 12:12:12' | dround -i '%F %T' /15s
3 2016-01-01T12:12:15
4 $ echo '2016-01-01 12:12:12' | dconv -f '%s' | dround -i %s /15s
5 2016-01-01T12:12:15
6 $
7
8 ## dround.031.ctst ends here
+0
-11
test/dround.032.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround --from-locale fo_FO -i '%d/%b/%Y' +1d <<EOF
3 10/des/2015
4 10/mai/2016
5 EOF
6 2016-01-01
7 2016-06-01
8 $
9
10 ## dround.032.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround --from-locale fo_FO -i '%d/%b/%Y' +1d <<EOF
3 10/des/2015
4 10/mai/2016
5 EOF
6 2016-01-01
7 2016-06-01
8 $
9
10 ## dround.032.ctst ends here
+0
-11
test/dround.033.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround --locale fo_FO -f '%d/%b/%Y' -31d <<EOF
3 2016-01-01
4 2016-06-01
5 EOF
6 31/des/2015
7 31/mai/2016
8 $
9
10 ## dround.033.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround --locale fo_FO -f '%d/%b/%Y' -31d <<EOF
3 2016-01-01
4 2016-06-01
5 EOF
6 31/des/2015
7 31/mai/2016
8 $
9
10 ## dround.033.ctst ends here
+0
-7
test/dround.034.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2016-07-07T12:19:44 +0s30m2h --from-zone Europe/Berlin
3 2016-07-08T00:30:00
4 $
5
6 ## dround.034.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2016-07-07T12:19:44 +0s30m2h --from-zone Europe/Berlin
3 2016-07-08T00:30:00
4 $
5
6 ## dround.034.ctst ends here
+0
-7
test/dround.035.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2016-07-07T12:19:44 +0s30m2h --zone Europe/Berlin
3 2016-07-08T04:30:00
4 $
5
6 ## dround.035.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2016-07-07T12:19:44 +0s30m2h --zone Europe/Berlin
3 2016-07-08T04:30:00
4 $
5
6 ## dround.035.ctst ends here
+0
-8
test/dround.036.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## valid roundspec as date
3 $ dround -i '%b %d %y' 'Jul 4 17' -1
4 2017-07-01
5 $
6
7 ## dround.036.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## valid roundspec as date
3 $ dround -i '%b %d %y' 'Jul 4 17' -1
4 2017-07-01
5 $
6
7 ## dround.036.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## whitespace at the beginning is ok, at the end is not
3 $ dround -Ei '%b %d %y' -1 <<EOF
4 Jul 4 17
5 Jul 8 17
6 Jul 4 17
7 EOF
8 2017-07-01
9
10
11 $
12
13 ## dround.037.ctst ends here
+0
-36
test/dseq.01.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-02-01 2012-03-01
3 2012-02-01
4 2012-02-02
5 2012-02-03
6 2012-02-04
7 2012-02-05
8 2012-02-06
9 2012-02-07
10 2012-02-08
11 2012-02-09
12 2012-02-10
13 2012-02-11
14 2012-02-12
15 2012-02-13
16 2012-02-14
17 2012-02-15
18 2012-02-16
19 2012-02-17
20 2012-02-18
21 2012-02-19
22 2012-02-20
23 2012-02-21
24 2012-02-22
25 2012-02-23
26 2012-02-24
27 2012-02-25
28 2012-02-26
29 2012-02-27
30 2012-02-28
31 2012-02-29
32 2012-03-01
33 $
34
35 ## dseq.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-02-01 2012-03-01
3 2012-02-01
4 2012-02-02
5 2012-02-03
6 2012-02-04
7 2012-02-05
8 2012-02-06
9 2012-02-07
10 2012-02-08
11 2012-02-09
12 2012-02-10
13 2012-02-11
14 2012-02-12
15 2012-02-13
16 2012-02-14
17 2012-02-15
18 2012-02-16
19 2012-02-17
20 2012-02-18
21 2012-02-19
22 2012-02-20
23 2012-02-21
24 2012-02-22
25 2012-02-23
26 2012-02-24
27 2012-02-25
28 2012-02-26
29 2012-02-27
30 2012-02-28
31 2012-02-29
32 2012-03-01
33 $
34
35 ## dseq.1.ctst ends here
+0
-30
test/dseq.02.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 2001-03-03 --skip sat -f "%F %a"
3 2001-02-04 Sun
4 2001-02-05 Mon
5 2001-02-06 Tue
6 2001-02-07 Wed
7 2001-02-08 Thu
8 2001-02-09 Fri
9 2001-02-11 Sun
10 2001-02-12 Mon
11 2001-02-13 Tue
12 2001-02-14 Wed
13 2001-02-15 Thu
14 2001-02-16 Fri
15 2001-02-18 Sun
16 2001-02-19 Mon
17 2001-02-20 Tue
18 2001-02-21 Wed
19 2001-02-22 Thu
20 2001-02-23 Fri
21 2001-02-25 Sun
22 2001-02-26 Mon
23 2001-02-27 Tue
24 2001-02-28 Wed
25 2001-03-01 Thu
26 2001-03-02 Fri
27 $
28
29 ## dseq.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 2001-03-03 --skip sat -f "%F %a"
3 2001-02-04 Sun
4 2001-02-05 Mon
5 2001-02-06 Tue
6 2001-02-07 Wed
7 2001-02-08 Thu
8 2001-02-09 Fri
9 2001-02-11 Sun
10 2001-02-12 Mon
11 2001-02-13 Tue
12 2001-02-14 Wed
13 2001-02-15 Thu
14 2001-02-16 Fri
15 2001-02-18 Sun
16 2001-02-19 Mon
17 2001-02-20 Tue
18 2001-02-21 Wed
19 2001-02-22 Thu
20 2001-02-23 Fri
21 2001-02-25 Sun
22 2001-02-26 Mon
23 2001-02-27 Tue
24 2001-02-28 Wed
25 2001-03-01 Thu
26 2001-03-02 Fri
27 $
28
29 ## dseq.2.ctst ends here
+0
-30
test/dseq.03.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-02-03 1 2001-03-03 --skip sat -f "%F %a"
3 2001-02-04 Sun
4 2001-02-05 Mon
5 2001-02-06 Tue
6 2001-02-07 Wed
7 2001-02-08 Thu
8 2001-02-09 Fri
9 2001-02-11 Sun
10 2001-02-12 Mon
11 2001-02-13 Tue
12 2001-02-14 Wed
13 2001-02-15 Thu
14 2001-02-16 Fri
15 2001-02-18 Sun
16 2001-02-19 Mon
17 2001-02-20 Tue
18 2001-02-21 Wed
19 2001-02-22 Thu
20 2001-02-23 Fri
21 2001-02-25 Sun
22 2001-02-26 Mon
23 2001-02-27 Tue
24 2001-02-28 Wed
25 2001-03-01 Thu
26 2001-03-02 Fri
27 $
28
29 ## dseq.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-02-03 1 2001-03-03 --skip sat -f "%F %a"
3 2001-02-04 Sun
4 2001-02-05 Mon
5 2001-02-06 Tue
6 2001-02-07 Wed
7 2001-02-08 Thu
8 2001-02-09 Fri
9 2001-02-11 Sun
10 2001-02-12 Mon
11 2001-02-13 Tue
12 2001-02-14 Wed
13 2001-02-15 Thu
14 2001-02-16 Fri
15 2001-02-18 Sun
16 2001-02-19 Mon
17 2001-02-20 Tue
18 2001-02-21 Wed
19 2001-02-22 Thu
20 2001-02-23 Fri
21 2001-02-25 Sun
22 2001-02-26 Mon
23 2001-02-27 Tue
24 2001-02-28 Wed
25 2001-03-01 Thu
26 2001-03-02 Fri
27 $
28
29 ## dseq.3.ctst ends here
+0
-12
test/dseq.04.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 3 2001-03-03 --skip sat,fri -f "%F %a"
3 2001-02-06 Tue
4 2001-02-12 Mon
5 2001-02-15 Thu
6 2001-02-18 Sun
7 2001-02-21 Wed
8 2001-02-27 Tue
9 $
10
11 ## dseq.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 3 2001-03-03 --skip sat,fri -f "%F %a"
3 2001-02-06 Tue
4 2001-02-12 Mon
5 2001-02-15 Thu
6 2001-02-18 Sun
7 2001-02-21 Wed
8 2001-02-27 Tue
9 $
10
11 ## dseq.4.ctst ends here
+0
-13
test/dseq.05.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-02-03 3 2001-03-03 --skip sat,fri -f "%F %a"
3 2001-02-04 Sun
4 2001-02-07 Wed
5 2001-02-13 Tue
6 2001-02-19 Mon
7 2001-02-22 Thu
8 2001-02-25 Sun
9 2001-02-28 Wed
10 $
11
12 ## dseq.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-02-03 3 2001-03-03 --skip sat,fri -f "%F %a"
3 2001-02-04 Sun
4 2001-02-07 Wed
5 2001-02-13 Tue
6 2001-02-19 Mon
7 2001-02-22 Thu
8 2001-02-25 Sun
9 2001-02-28 Wed
10 $
11
12 ## dseq.5.ctst ends here
+0
-13
test/dseq.06.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-02-05 4 2001-03-04 -f "%F %a"
3 2001-02-05 Mon
4 2001-02-09 Fri
5 2001-02-13 Tue
6 2001-02-17 Sat
7 2001-02-21 Wed
8 2001-02-25 Sun
9 2001-03-01 Thu
10 $
11
12 ## dseq.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-02-05 4 2001-03-04 -f "%F %a"
3 2001-02-05 Mon
4 2001-02-09 Fri
5 2001-02-13 Tue
6 2001-02-17 Sat
7 2001-02-21 Wed
8 2001-02-25 Sun
9 2001-03-01 Thu
10 $
11
12 ## dseq.6.ctst ends here
+0
-13
test/dseq.07.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-02-05 4 2001-03-04 -f "%F %a"
3 2001-02-08 Thu
4 2001-02-12 Mon
5 2001-02-16 Fri
6 2001-02-20 Tue
7 2001-02-24 Sat
8 2001-02-28 Wed
9 2001-03-04 Sun
10 $
11
12 ## dseq.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-02-05 4 2001-03-04 -f "%F %a"
3 2001-02-08 Thu
4 2001-02-12 Mon
5 2001-02-16 Fri
6 2001-02-20 Tue
7 2001-02-24 Sat
8 2001-02-28 Wed
9 2001-03-04 Sun
10 $
11
12 ## dseq.7.ctst ends here
+0
-14
test/dseq.08.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --alt-inc 1d 2001-02-03 3 2001-03-03 --skip sat,fri -f "%F %a"
3 2001-02-04 Sun
4 2001-02-07 Wed
5 2001-02-11 Sun
6 2001-02-14 Wed
7 2001-02-18 Sun
8 2001-02-21 Wed
9 2001-02-25 Sun
10 2001-02-28 Wed
11 $
12
13 ## dseq.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --alt-inc 1d 2001-02-03 3 2001-03-03 --skip sat,fri -f "%F %a"
3 2001-02-04 Sun
4 2001-02-07 Wed
5 2001-02-11 Sun
6 2001-02-14 Wed
7 2001-02-18 Sun
8 2001-02-21 Wed
9 2001-02-25 Sun
10 2001-02-28 Wed
11 $
12
13 ## dseq.8.ctst ends here
+0
-14
test/dseq.09.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --compute-from-last --alt-inc 1d 2001-02-03 3 2001-03-03 --skip sat,fri -f "%F %a"
3 2001-02-04 Sun
4 2001-02-07 Wed
5 2001-02-11 Sun
6 2001-02-14 Wed
7 2001-02-18 Sun
8 2001-02-21 Wed
9 2001-02-25 Sun
10 2001-02-28 Wed
11 $
12
13 ## dseq.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --compute-from-last --alt-inc 1d 2001-02-03 3 2001-03-03 --skip sat,fri -f "%F %a"
3 2001-02-04 Sun
4 2001-02-07 Wed
5 2001-02-11 Sun
6 2001-02-14 Wed
7 2001-02-18 Sun
8 2001-02-21 Wed
9 2001-02-25 Sun
10 2001-02-28 Wed
11 $
12
13 ## dseq.9.ctst ends here
+0
-10
test/dseq.10.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-01-01 2d 2001-01-08
3 2001-01-01
4 2001-01-03
5 2001-01-05
6 2001-01-07
7 $
8
9 ## dseq.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-01-01 2d 2001-01-08
3 2001-01-01
4 2001-01-03
5 2001-01-05
6 2001-01-07
7 $
8
9 ## dseq.10.ctst ends here
+0
-10
test/dseq.11.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-01-01 2d 2001-01-08
3 2001-01-02
4 2001-01-04
5 2001-01-06
6 2001-01-08
7 $
8
9 ## dseq.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-01-01 2d 2001-01-08
3 2001-01-02
4 2001-01-04
5 2001-01-06
6 2001-01-08
7 $
8
9 ## dseq.11.ctst ends here
+0
-10
test/dseq.12.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-01-08 -2d 2001-01-01
3 2001-01-08
4 2001-01-06
5 2001-01-04
6 2001-01-02
7 $
8
9 ## dseq.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-01-08 -2d 2001-01-01
3 2001-01-08
4 2001-01-06
5 2001-01-04
6 2001-01-02
7 $
8
9 ## dseq.12.ctst ends here
+0
-10
test/dseq.13.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-01-08 -2d 2001-01-01
3 2001-01-07
4 2001-01-05
5 2001-01-03
6 2001-01-01
7 $
8
9 ## dseq.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 2001-01-08 -2d 2001-01-01
3 2001-01-07
4 2001-01-05
5 2001-01-03
6 2001-01-01
7 $
8
9 ## dseq.13.ctst ends here
+0
-6
test/dseq.14.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 -1 2001-03-03 --skip sat -f "%F %a"
3 $
4
5 ## dseq.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 -1 2001-03-03 --skip sat -f "%F %a"
3 $
4
5 ## dseq.14.ctst ends here
+0
-6
test/dseq.15.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 -3 2001-03-03 --skip sat,fri -f "%F %a"
3 $
4
5 ## dseq.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 -3 2001-03-03 --skip sat,fri -f "%F %a"
3 $
4
5 ## dseq.15.ctst ends here
+0
-7
test/dseq.16.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 -1 2001-02-03 -f "%F %a"
3 2001-02-03 Sat
4 $
5
6 ## dseq.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-02-03 -1 2001-02-03 -f "%F %a"
3 2001-02-03 Sat
4 $
5
6 ## dseq.16.ctst ends here
+0
-7
test/dseq.17.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-02-05 -4 2001-02-05 -f "%F %a"
3 2001-02-05 Mon
4 $
5
6 ## dseq.17.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-02-05 -4 2001-02-05 -f "%F %a"
3 2001-02-05 Mon
4 $
5
6 ## dseq.17.ctst ends here
+0
-7
test/dseq.18.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-01-08 2d 2001-01-08
3 2001-01-08
4 $
5
6 ## dseq.18.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-01-08 2d 2001-01-08
3 2001-01-08
4 $
5
6 ## dseq.18.ctst ends here
+0
-8
test/dseq.19.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%rY-%V'
3 2014-02
4 2014-03
5 $
6
7 ## dseq.19.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%rY-%V'
3 2014-02
4 2014-03
5 $
6
7 ## dseq.19.ctst ends here
+0
-8
test/dseq.20.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%rY-%W'
3 2014-01
4 2014-02
5 $
6
7 ## dseq.20.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%rY-%W'
3 2014-01
4 2014-02
5 $
6
7 ## dseq.20.ctst ends here
+0
-8
test/dseq.21.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%rY-%U'
3 2014-02
4 2014-02
5 $
6
7 ## dseq.21.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%rY-%U'
3 2014-02
4 2014-02
5 $
6
7 ## dseq.21.ctst ends here
+0
-8
test/dseq.22.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%G-%V'
3 2014-02
4 2014-03
5 $
6
7 ## dseq.22.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%G-%V'
3 2014-02
4 2014-03
5 $
6
7 ## dseq.22.ctst ends here
+0
-8
test/dseq.23.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%G-%W'
3 2014-01
4 2014-02
5 $
6
7 ## dseq.23.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%G-%W'
3 2014-01
4 2014-02
5 $
6
7 ## dseq.23.ctst ends here
+0
-8
test/dseq.24.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%G-%U'
3 2014-02
4 2014-02
5 $
6
7 ## dseq.24.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2014-01-12 2014-01-13 -f '%G-%U'
3 2014-02
4 2014-02
5 $
6
7 ## dseq.24.ctst ends here
+0
-14
test/dseq.25.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2014-08-18 2014-08-25 -f ywd
3 2014-W34-1
4 2014-W34-2
5 2014-W34-3
6 2014-W34-4
7 2014-W34-5
8 2014-W34-6
9 2014-W34-7
10 2014-W35-1
11 $
12
13 ## dseq.25.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2014-08-18 2014-08-25 -f ywd
3 2014-W34-1
4 2014-W34-2
5 2014-W34-3
6 2014-W34-4
7 2014-W34-5
8 2014-W34-6
9 2014-W34-7
10 2014-W35-1
11 $
12
13 ## dseq.25.ctst ends here
+0
-14
test/dseq.26.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2014-08-18 2014-08-25 -f ymcw
3 2014-08-03-01
4 2014-08-03-02
5 2014-08-03-03
6 2014-08-03-04
7 2014-08-04-05
8 2014-08-04-06
9 2014-08-04-00
10 2014-08-04-01
11 $
12
13 ## dseq.26.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2014-08-18 2014-08-25 -f ymcw
3 2014-08-03-01
4 2014-08-03-02
5 2014-08-03-03
6 2014-08-03-04
7 2014-08-04-05
8 2014-08-04-06
9 2014-08-04-07
10 2014-08-04-01
11 $
12
13 ## dseq.26.ctst ends here
+0
-7
test/dseq.27.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## range is empty
3 $ dseq 2001-02-03 2001-02-01
4 $
5
6 ## dseq.27.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## range is empty
3 $ dseq 2001-02-03 2001-02-01
4 $
5
6 ## dseq.27.ctst ends here
+0
-7
test/dseq.28.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## range is empty
3 $ dseq 2001-02-01 -1 2001-02-04
4 $
5
6 ## dseq.28.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## range is empty
3 $ dseq 2001-02-01 -1 2001-02-04
4 $
5
6 ## dseq.28.ctst ends here
+0
-14
test/dseq.29.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-02 2012-09 -i '%Y-%m'
3 2012-02-00
4 2012-03-00
5 2012-04-00
6 2012-05-00
7 2012-06-00
8 2012-07-00
9 2012-08-00
10 2012-09-00
11 $
12
13 ## dseq.29.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-02 2012-09 -i '%Y-%m'
3 2012-02-00
4 2012-03-00
5 2012-04-00
6 2012-05-00
7 2012-06-00
8 2012-07-00
9 2012-08-00
10 2012-09-00
11 $
12
13 ## dseq.29.ctst ends here
+0
-14
test/dseq.30.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-02-00 2012-09-00
3 2012-02-00
4 2012-03-00
5 2012-04-00
6 2012-05-00
7 2012-06-00
8 2012-07-00
9 2012-08-00
10 2012-09-00
11 $
12
13 ## dseq.30.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-02-00 2012-09-00
3 2012-02-00
4 2012-03-00
5 2012-04-00
6 2012-05-00
7 2012-06-00
8 2012-07-00
9 2012-08-00
10 2012-09-00
11 $
12
13 ## dseq.30.ctst ends here
+0
-10
test/dseq.31.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012 2015 -i '%Y'
3 2012-00-00
4 2013-00-00
5 2014-00-00
6 2015-00-00
7 $
8
9 ## dseq.31.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012 2015 -i '%Y'
3 2012-00-00
4 2013-00-00
5 2014-00-00
6 2015-00-00
7 $
8
9 ## dseq.31.ctst ends here
+0
-10
test/dseq.32.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-00-00 2015-00-00
3 2012-00-00
4 2013-00-00
5 2014-00-00
6 2015-00-00
7 $
8
9 ## dseq.32.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-00-00 2015-00-00
3 2012-00-00
4 2013-00-00
5 2014-00-00
6 2015-00-00
7 $
8
9 ## dseq.32.ctst ends here
+0
-9
test/dseq.33.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2018-01-01 2018-12-30 -f ywd > "dseq.33.ref"
3 $ dseq 2018-W01-1 2018-W52-07
4 < dseq.33.ref
5 $ rm -f -- "dseq.33.ref"
6 $
7
8 ## dseq.33.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2018-01-01 2018-12-30 -f ywd > "dseq.33.ref"
3 $ dseq 2018-W01-1 2018-W52-07
4 < dseq.33.ref
5 $ rm -f -- "dseq.33.ref"
6 $
7
8 ## dseq.33.ctst ends here
+0
-9
test/dseq.34.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2018-01-01 2018-12-30 | dconv -f ywd > "dseq.34.ref"
3 $ dseq 2018-W01-1 2018-W52-07
4 < dseq.34.ref
5 $ rm -f -- "dseq.34.ref"
6 $
7
8 ## dseq.34.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2018-01-01 2018-12-30 | dconv -f ywd > "dseq.34.ref"
3 $ dseq 2018-W01-1 2018-W52-07
4 < dseq.34.ref
5 $ rm -f -- "dseq.34.ref"
6 $
7
8 ## dseq.34.ctst ends here
+0
-9
test/dseq.35.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2018-W01-1 2018-W52-07 -f ymd > "dseq.35.ref"
3 $ dseq 2018-01-01 2018-12-30
4 < dseq.35.ref
5 $ rm -f -- "dseq.35.ref"
6 $
7
8 ## dseq.35.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2018-W01-1 2018-W52-07 -f ymd > "dseq.35.ref"
3 $ dseq 2018-01-01 2018-12-30
4 < dseq.35.ref
5 $ rm -f -- "dseq.35.ref"
6 $
7
8 ## dseq.35.ctst ends here
+0
-9
test/dseq.36.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2018-W01-1 2018-W52-07 | dconv -f ymd > "dseq.36.ref"
3 $ dseq 2018-01-01 2018-12-30
4 < dseq.36.ref
5 $ rm -f -- "dseq.36.ref"
6 $
7
8 ## dseq.36.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2018-W01-1 2018-W52-07 | dconv -f ymd > "dseq.36.ref"
3 $ dseq 2018-01-01 2018-12-30
4 < dseq.36.ref
5 $ rm -f -- "dseq.36.ref"
6 $
7
8 ## dseq.36.ctst ends here
+0
-9
test/dseq.37.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2016-01-01 2017-01-01 -f ywd > "dseq.37.ref"
3 $ dseq 2015-W53-5 2016-W52-07
4 < dseq.37.ref
5 $ rm -f -- "dseq.37.ref"
6 $
7
8 ## dseq.37.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2016-01-01 2017-01-01 -f ywd > "dseq.37.ref"
3 $ dseq 2015-W53-5 2016-W52-07
4 < dseq.37.ref
5 $ rm -f -- "dseq.37.ref"
6 $
7
8 ## dseq.37.ctst ends here
+0
-9
test/dseq.38.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2016-01-01 2017-01-01 | dconv -f ywd > "dseq.38.ref"
3 $ dseq 2015-W53-5 2016-W52-07
4 < dseq.38.ref
5 $ rm -f -- "dseq.38.ref"
6 $
7
8 ## dseq.38.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2016-01-01 2017-01-01 | dconv -f ywd > "dseq.38.ref"
3 $ dseq 2015-W53-5 2016-W52-07
4 < dseq.38.ref
5 $ rm -f -- "dseq.38.ref"
6 $
7
8 ## dseq.38.ctst ends here
+0
-9
test/dseq.39.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2015-W53-5 2016-W52-07 -f ymd > "dseq.39.ref"
3 $ dseq 2016-01-01 2017-01-01
4 < dseq.39.ref
5 $ rm -f -- "dseq.39.ref"
6 $
7
8 ## dseq.39.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2015-W53-5 2016-W52-07 -f ymd > "dseq.39.ref"
3 $ dseq 2016-01-01 2017-01-01
4 < dseq.39.ref
5 $ rm -f -- "dseq.39.ref"
6 $
7
8 ## dseq.39.ctst ends here
+0
-9
test/dseq.40.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2015-W53-5 2016-W52-07 | dconv -f ymd > "dseq.40.ref"
3 $ dseq 2016-01-01 2017-01-01
4 < dseq.40.ref
5 $ rm -f -- "dseq.40.ref"
6 $
7
8 ## dseq.40.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2015-W53-5 2016-W52-07 | dconv -f ymd > "dseq.40.ref"
3 $ dseq 2016-01-01 2017-01-01
4 < dseq.40.ref
5 $ rm -f -- "dseq.40.ref"
6 $
7
8 ## dseq.40.ctst ends here
+0
-18
test/dseq.41.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq Jan Dec -i '%b' -f '%b'
3 Jan
4 Feb
5 Mar
6 Apr
7 May
8 Jun
9 Jul
10 Aug
11 Sep
12 Oct
13 Nov
14 Dec
15 $
16
17 ## dseq.41.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq Jan Dec -i '%b' -f '%b'
3 Jan
4 Feb
5 Mar
6 Apr
7 May
8 Jun
9 Jul
10 Aug
11 Sep
12 Oct
13 Nov
14 Dec
15 $
16
17 ## dseq.41.ctst ends here
+0
-18
test/dseq.42.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq Jan +1mo Dec -i '%b' -f '%b'
3 Jan
4 Feb
5 Mar
6 Apr
7 May
8 Jun
9 Jul
10 Aug
11 Sep
12 Oct
13 Nov
14 Dec
15 $
16
17 ## dseq.42.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq Jan +1mo Dec -i '%b' -f '%b'
3 Jan
4 Feb
5 Mar
6 Apr
7 May
8 Jun
9 Jul
10 Aug
11 Sep
12 Oct
13 Nov
14 Dec
15 $
16
17 ## dseq.42.ctst ends here
+0
-13
test/dseq.43.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## Frank O'Carroll's report
3 $ dseq 2015-06-01 2015-06-07 --skip sun-sat
4 $ dseq 2015-06-01 2015-06-07 --skip mon-sun
5 $ dseq 2015-06-01 2015-06-07 --skip tue-mon
6 $ dseq 2015-06-01 2015-06-07 --skip wed-tue
7 $ dseq 2015-06-01 2015-06-07 --skip thu-wed
8 $ dseq 2015-06-01 2015-06-07 --skip fri-thu
9 $ dseq 2015-06-01 2015-06-07 --skip sat-fri
10 $
11
12 ## dseq.43.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## Frank O'Carroll's report
3 $ dseq 2015-06-01 2015-06-07 --skip sun-sat
4 $ dseq 2015-06-01 2015-06-07 --skip mon-sun
5 $ dseq 2015-06-01 2015-06-07 --skip tue-mon
6 $ dseq 2015-06-01 2015-06-07 --skip wed-tue
7 $ dseq 2015-06-01 2015-06-07 --skip thu-wed
8 $ dseq 2015-06-01 2015-06-07 --skip fri-thu
9 $ dseq 2015-06-01 2015-06-07 --skip sat-fri
10 $
11
12 ## dseq.43.ctst ends here
+0
-32
test/dseq.44.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq -i %rY%V%u -f '%Y %m %d %G %V %u' 20160101 20160407
3 2016 01 04 2016 01 1
4 2016 01 05 2016 01 2
5 2016 01 06 2016 01 3
6 2016 01 07 2016 01 4
7 2016 01 08 2016 01 5
8 2016 01 09 2016 01 6
9 2016 01 10 2016 01 7
10 2016 01 11 2016 02 1
11 2016 01 12 2016 02 2
12 2016 01 13 2016 02 3
13 2016 01 14 2016 02 4
14 2016 01 15 2016 02 5
15 2016 01 16 2016 02 6
16 2016 01 17 2016 02 7
17 2016 01 18 2016 03 1
18 2016 01 19 2016 03 2
19 2016 01 20 2016 03 3
20 2016 01 21 2016 03 4
21 2016 01 22 2016 03 5
22 2016 01 23 2016 03 6
23 2016 01 24 2016 03 7
24 2016 01 25 2016 04 1
25 2016 01 26 2016 04 2
26 2016 01 27 2016 04 3
27 2016 01 28 2016 04 4
28 2016 01 29 2016 04 5
29 2016 01 30 2016 04 6
30 2016 01 31 2016 04 7
31 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq -i %rY%V%u -f '%Y %m %d %G %V %u' 20160101 20160407
3 2016 01 04 2016 01 1
4 2016 01 05 2016 01 2
5 2016 01 06 2016 01 3
6 2016 01 07 2016 01 4
7 2016 01 08 2016 01 5
8 2016 01 09 2016 01 6
9 2016 01 10 2016 01 7
10 2016 01 11 2016 02 1
11 2016 01 12 2016 02 2
12 2016 01 13 2016 02 3
13 2016 01 14 2016 02 4
14 2016 01 15 2016 02 5
15 2016 01 16 2016 02 6
16 2016 01 17 2016 02 7
17 2016 01 18 2016 03 1
18 2016 01 19 2016 03 2
19 2016 01 20 2016 03 3
20 2016 01 21 2016 03 4
21 2016 01 22 2016 03 5
22 2016 01 23 2016 03 6
23 2016 01 24 2016 03 7
24 2016 01 25 2016 04 1
25 2016 01 26 2016 04 2
26 2016 01 27 2016 04 3
27 2016 01 28 2016 04 4
28 2016 01 29 2016 04 5
29 2016 01 30 2016 04 6
30 2016 01 31 2016 04 7
31 $
+0
-35
test/dseq.45.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq -i %Y%m%d -f '%Y %m %d %G %V %u' 20160101 20160131
3 2016 01 01 2015 53 5
4 2016 01 02 2015 53 6
5 2016 01 03 2015 53 7
6 2016 01 04 2016 01 1
7 2016 01 05 2016 01 2
8 2016 01 06 2016 01 3
9 2016 01 07 2016 01 4
10 2016 01 08 2016 01 5
11 2016 01 09 2016 01 6
12 2016 01 10 2016 01 7
13 2016 01 11 2016 02 1
14 2016 01 12 2016 02 2
15 2016 01 13 2016 02 3
16 2016 01 14 2016 02 4
17 2016 01 15 2016 02 5
18 2016 01 16 2016 02 6
19 2016 01 17 2016 02 7
20 2016 01 18 2016 03 1
21 2016 01 19 2016 03 2
22 2016 01 20 2016 03 3
23 2016 01 21 2016 03 4
24 2016 01 22 2016 03 5
25 2016 01 23 2016 03 6
26 2016 01 24 2016 03 7
27 2016 01 25 2016 04 1
28 2016 01 26 2016 04 2
29 2016 01 27 2016 04 3
30 2016 01 28 2016 04 4
31 2016 01 29 2016 04 5
32 2016 01 30 2016 04 6
33 2016 01 31 2016 04 7
34 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq -i %Y%m%d -f '%Y %m %d %G %V %u' 20160101 20160131
3 2016 01 01 2015 53 5
4 2016 01 02 2015 53 6
5 2016 01 03 2015 53 7
6 2016 01 04 2016 01 1
7 2016 01 05 2016 01 2
8 2016 01 06 2016 01 3
9 2016 01 07 2016 01 4
10 2016 01 08 2016 01 5
11 2016 01 09 2016 01 6
12 2016 01 10 2016 01 7
13 2016 01 11 2016 02 1
14 2016 01 12 2016 02 2
15 2016 01 13 2016 02 3
16 2016 01 14 2016 02 4
17 2016 01 15 2016 02 5
18 2016 01 16 2016 02 6
19 2016 01 17 2016 02 7
20 2016 01 18 2016 03 1
21 2016 01 19 2016 03 2
22 2016 01 20 2016 03 3
23 2016 01 21 2016 03 4
24 2016 01 22 2016 03 5
25 2016 01 23 2016 03 6
26 2016 01 24 2016 03 7
27 2016 01 25 2016 04 1
28 2016 01 26 2016 04 2
29 2016 01 27 2016 04 3
30 2016 01 28 2016 04 4
31 2016 01 29 2016 04 5
32 2016 01 30 2016 04 6
33 2016 01 31 2016 04 7
34 $
+0
-15
test/dseq.46.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq Dzi +1mo N\'w --from-locale ts_ZA -i '%b' -f '%b'
3 Apr
4 May
5 Jun
6 Jul
7 Aug
8 Sep
9 Oct
10 Nov
11 Dec
12 $
13
14 ## dseq.46.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq Dzi +1mo N\'w --from-locale ts_ZA -i '%b' -f '%b'
3 Apr
4 May
5 Jun
6 Jul
7 Aug
8 Sep
9 Oct
10 Nov
11 Dec
12 $
13
14 ## dseq.46.ctst ends here
+0
-15
test/dseq.47.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq Apr +1mo Dec --locale ts_ZA -i '%b' -f '%b'
3 Dzi
4 Mud
5 Kho
6 Maw
7 Mha
8 Ndz
9 Nhl
10 Huk
11 N'w
12 $
13
14 ## dseq.47.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq Apr +1mo Dec --locale ts_ZA -i '%b' -f '%b'
3 Dzi
4 Mud
5 Kho
6 Maw
7 Mha
8 Ndz
9 Nhl
10 Huk
11 N'w
12 $
13
14 ## dseq.47.ctst ends here
+0
-11
test/dseq.48.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2010-01-31 +1mo 2010-05-31
3 2010-01-31
4 2010-02-28
5 2010-03-31
6 2010-04-30
7 2010-05-31
8 $
9
10 ## dseq.48.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2010-01-31 +1mo 2010-05-31
3 2010-01-31
4 2010-02-28
5 2010-03-31
6 2010-04-30
7 2010-05-31
8 $
9
10 ## dseq.48.ctst ends here
+0
-15
test/dseq.49.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2008-02-29 +1y 2016-02-29
3 2008-02-29
4 2009-02-28
5 2010-02-28
6 2011-02-28
7 2012-02-29
8 2013-02-28
9 2014-02-28
10 2015-02-28
11 2016-02-29
12 $
13
14 ## dseq.49.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2008-02-29 +1y 2016-02-29
3 2008-02-29
4 2009-02-28
5 2010-02-28
6 2011-02-28
7 2012-02-29
8 2013-02-28
9 2014-02-28
10 2015-02-28
11 2016-02-29
12 $
13
14 ## dseq.49.ctst ends here
+0
-15
test/dseq.50.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2008-366 +1y 2016-366
3 2008-366
4 2009-365
5 2010-365
6 2011-365
7 2012-366
8 2013-365
9 2014-365
10 2015-365
11 2016-366
12 $
13
14 ## dseq.50.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2008-366 +1y 2016-366
3 2008-366
4 2009-365
5 2010-365
6 2011-365
7 2012-366
8 2013-365
9 2014-365
10 2015-365
11 2016-366
12 $
13
14 ## dseq.50.ctst ends here
+0
-13
test/dseq.51.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2009-W53-1 +1y 2015-W53-1
3 2009-W53-1
4 2010-W52-1
5 2011-W52-1
6 2012-W52-1
7 2013-W52-1
8 2014-W52-1
9 2015-W53-1
10 $
11
12 ## dseq.51.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2009-W53-1 +1y 2015-W53-1
3 2009-W53-1
4 2010-W52-1
5 2011-W52-1
6 2012-W52-1
7 2013-W52-1
8 2014-W52-1
9 2015-W53-1
10 $
11
12 ## dseq.51.ctst ends here
+0
-11
test/dseq.52.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2016-01-05-00 +1mo 2016-05-05-00
3 2016-01-05-00
4 2016-02-04-00
5 2016-03-04-00
6 2016-04-04-00
7 2016-05-05-00
8 $
9
10 ## dseq.52.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2016-01-05-07 +1mo 2016-05-05-00
3 2016-01-05-07
4 2016-02-04-07
5 2016-03-04-07
6 2016-04-04-07
7 2016-05-05-07
8 $ dseq 2016-01-05-00 +1mo 2016-05-05-00
9 2016-01-05-00
10 2016-02-05-00
11 2016-03-05-00
12 2016-04-05-00
13 2016-05-05-00
14 $
15
16 ## dseq.52.ctst ends here
+0
-12
test/dseq.53.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2016-03-23b +1mo 2016-08-23b
3 2016-03-23b
4 2016-04-21b
5 2016-05-22b
6 2016-06-22b
7 2016-07-21b
8 2016-08-23b
9 $
10
11 ## dseq.53.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2016-03-23b +1mo 2016-08-23b
3 2016-03-23b
4 2016-04-21b
5 2016-05-22b
6 2016-06-22b
7 2016-07-21b
8 2016-08-23b
9 $
10
11 ## dseq.53.ctst ends here
+0
-15
test/dseq.54.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2008-366 +1y 2016-12-31
3 2008-366
4 2009-365
5 2010-365
6 2011-365
7 2012-366
8 2013-365
9 2014-365
10 2015-365
11 2016-366
12 $
13
14 ## dseq.54.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2008-366 +1y 2016-12-31
3 2008-366
4 2009-365
5 2010-365
6 2011-365
7 2012-366
8 2013-365
9 2014-365
10 2015-365
11 2016-366
12 $
13
14 ## dseq.54.ctst ends here
+0
-14
test/dseq.55.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2009-W53-1 +1y 2016-12-31
3 2009-W53-1
4 2010-W52-1
5 2011-W52-1
6 2012-W52-1
7 2013-W52-1
8 2014-W52-1
9 2015-W53-1
10 2016-W52-1
11 $
12
13 ## dseq.55.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2009-W53-1 +1y 2016-12-31
3 2009-W53-1
4 2010-W52-1
5 2011-W52-1
6 2012-W52-1
7 2013-W52-1
8 2014-W52-1
9 2015-W53-1
10 2016-W52-1
11 $
12
13 ## dseq.55.ctst ends here
+0
-11
test/dseq.56.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2016-01-05-00 +1mo 2016-05-31
3 2016-01-05-00
4 2016-02-04-00
5 2016-03-04-00
6 2016-04-04-00
7 2016-05-05-00
8 $
9
10 ## dseq.56.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2016-01-05-07 +1mo 2016-05-31
3 2016-01-05-07
4 2016-02-04-07
5 2016-03-04-07
6 2016-04-04-07
7 2016-05-05-07
8 $ dseq 2016-01-05-00 +1mo 2016-05-31
9 2016-01-05-00
10 2016-02-05-00
11 2016-03-05-00
12 2016-04-05-00
13 2016-05-05-00
14 $
15
16 ## dseq.56.ctst ends here
+0
-10
test/dseq.57.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-01-01 +2y 2018-01-01
3 2012-01-01
4 2014-01-01
5 2016-01-01
6 2018-01-01
7 $
8
9 ## dseq.57.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-01-01 +2y 2018-01-01
3 2012-01-01
4 2014-01-01
5 2016-01-01
6 2018-01-01
7 $
8
9 ## dseq.57.ctst ends here
+0
-10
test/dseq.58.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-01-00 +2y 2018-01-00
3 2012-01-00
4 2014-01-00
5 2016-01-00
6 2018-01-00
7 $
8
9 ## dseq.58.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-01-00 +2y 2018-01-00
3 2012-01-00
4 2014-01-00
5 2016-01-00
6 2018-01-00
7 $
8
9 ## dseq.58.ctst ends here
+0
-10
test/dseq.59.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-00-00 +2y 2018-00-00
3 2012-00-00
4 2014-00-00
5 2016-00-00
6 2018-00-00
7 $
8
9 ## dseq.59.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-00-00 +2y 2018-00-00
3 2012-00-00
4 2014-00-00
5 2016-00-00
6 2018-00-00
7 $
8
9 ## dseq.59.ctst ends here
+0
-13
test/dseq.60.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-01-01 +2mo 2013-01-01
3 2012-01-01
4 2012-03-01
5 2012-05-01
6 2012-07-01
7 2012-09-01
8 2012-11-01
9 2013-01-01
10 $
11
12 ## dseq.60.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-01-01 +2mo 2013-01-01
3 2012-01-01
4 2012-03-01
5 2012-05-01
6 2012-07-01
7 2012-09-01
8 2012-11-01
9 2013-01-01
10 $
11
12 ## dseq.60.ctst ends here
+0
-13
test/dseq.61.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-01-00 +2mo 2013-01-00
3 2012-01-00
4 2012-03-00
5 2012-05-00
6 2012-07-00
7 2012-09-00
8 2012-11-00
9 2013-01-00
10 $
11
12 ## dseq.61.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-01-00 +2mo 2013-01-00
3 2012-01-00
4 2012-03-00
5 2012-05-00
6 2012-07-00
7 2012-09-00
8 2012-11-00
9 2013-01-00
10 $
11
12 ## dseq.61.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-01-31 +1mo 2012-07-00
3 2012-01-31
4 2012-02-29
5 2012-03-31
6 2012-04-30
7 2012-05-31
8 2012-06-30
9 $
10
11 ## dseq.62.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-01-31 +1mo1d 2012-07-00
3 2012-01-31
4 2012-03-01
5 2012-04-02
6 2012-05-03
7 2012-06-04
8 $
9
10 ## dseq.63.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## issue 131
3 $ dseq -b 2021-12-31 -i %m 09 +1d 10
4 2021-09-00
5 2021-09-01
6 2021-09-02
7 2021-09-03
8 2021-09-04
9 2021-09-05
10 2021-09-06
11 2021-09-07
12 2021-09-08
13 2021-09-09
14 2021-09-10
15 2021-09-11
16 2021-09-12
17 2021-09-13
18 2021-09-14
19 2021-09-15
20 2021-09-16
21 2021-09-17
22 2021-09-18
23 2021-09-19
24 2021-09-20
25 2021-09-21
26 2021-09-22
27 2021-09-23
28 2021-09-24
29 2021-09-25
30 2021-09-26
31 2021-09-27
32 2021-09-28
33 2021-09-29
34 2021-09-30
35 $ dseq 2021-09-00 +1d 2021-10-00
36 2021-09-00
37 2021-09-01
38 2021-09-02
39 2021-09-03
40 2021-09-04
41 2021-09-05
42 2021-09-06
43 2021-09-07
44 2021-09-08
45 2021-09-09
46 2021-09-10
47 2021-09-11
48 2021-09-12
49 2021-09-13
50 2021-09-14
51 2021-09-15
52 2021-09-16
53 2021-09-17
54 2021-09-18
55 2021-09-19
56 2021-09-20
57 2021-09-21
58 2021-09-22
59 2021-09-23
60 2021-09-24
61 2021-09-25
62 2021-09-26
63 2021-09-27
64 2021-09-28
65 2021-09-29
66 2021-09-30
67 $
68
69 ## dseq.64.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## issue 131
3 $ dseq -b 2021-12-31 --compute-from-last -i %m 09 +1d 10
4 2021-09-01
5 2021-09-02
6 2021-09-03
7 2021-09-04
8 2021-09-05
9 2021-09-06
10 2021-09-07
11 2021-09-08
12 2021-09-09
13 2021-09-10
14 2021-09-11
15 2021-09-12
16 2021-09-13
17 2021-09-14
18 2021-09-15
19 2021-09-16
20 2021-09-17
21 2021-09-18
22 2021-09-19
23 2021-09-20
24 2021-09-21
25 2021-09-22
26 2021-09-23
27 2021-09-24
28 2021-09-25
29 2021-09-26
30 2021-09-27
31 2021-09-28
32 2021-09-29
33 2021-09-30
34 $ dseq --compute-from-last 2021-09-00 +1d 2021-10-00
35 2021-09-01
36 2021-09-02
37 2021-09-03
38 2021-09-04
39 2021-09-05
40 2021-09-06
41 2021-09-07
42 2021-09-08
43 2021-09-09
44 2021-09-10
45 2021-09-11
46 2021-09-12
47 2021-09-13
48 2021-09-14
49 2021-09-15
50 2021-09-16
51 2021-09-17
52 2021-09-18
53 2021-09-19
54 2021-09-20
55 2021-09-21
56 2021-09-22
57 2021-09-23
58 2021-09-24
59 2021-09-25
60 2021-09-26
61 2021-09-27
62 2021-09-28
63 2021-09-29
64 2021-09-30
65 $
66
67 ## dseq.65.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## issue 131
3 $ dseq -b 2021-01-01 -i %m 10 -1d 09
4 2021-10-00
5 2021-09-30
6 2021-09-29
7 2021-09-28
8 2021-09-27
9 2021-09-26
10 2021-09-25
11 2021-09-24
12 2021-09-23
13 2021-09-22
14 2021-09-21
15 2021-09-20
16 2021-09-19
17 2021-09-18
18 2021-09-17
19 2021-09-16
20 2021-09-15
21 2021-09-14
22 2021-09-13
23 2021-09-12
24 2021-09-11
25 2021-09-10
26 2021-09-09
27 2021-09-08
28 2021-09-07
29 2021-09-06
30 2021-09-05
31 2021-09-04
32 2021-09-03
33 2021-09-02
34 2021-09-01
35 $ dseq 2021-10-00 -1d 2021-09-00
36 2021-10-00
37 2021-09-30
38 2021-09-29
39 2021-09-28
40 2021-09-27
41 2021-09-26
42 2021-09-25
43 2021-09-24
44 2021-09-23
45 2021-09-22
46 2021-09-21
47 2021-09-20
48 2021-09-19
49 2021-09-18
50 2021-09-17
51 2021-09-16
52 2021-09-15
53 2021-09-14
54 2021-09-13
55 2021-09-12
56 2021-09-11
57 2021-09-10
58 2021-09-09
59 2021-09-08
60 2021-09-07
61 2021-09-06
62 2021-09-05
63 2021-09-04
64 2021-09-03
65 2021-09-02
66 2021-09-01
67 $
68
69 ## dseq.66.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## issue 131
3 $ dseq -b 2021-01-01 --compute-from-last -i %m 10 -1d 09
4 2021-09-30
5 2021-09-29
6 2021-09-28
7 2021-09-27
8 2021-09-26
9 2021-09-25
10 2021-09-24
11 2021-09-23
12 2021-09-22
13 2021-09-21
14 2021-09-20
15 2021-09-19
16 2021-09-18
17 2021-09-17
18 2021-09-16
19 2021-09-15
20 2021-09-14
21 2021-09-13
22 2021-09-12
23 2021-09-11
24 2021-09-10
25 2021-09-09
26 2021-09-08
27 2021-09-07
28 2021-09-06
29 2021-09-05
30 2021-09-04
31 2021-09-03
32 2021-09-02
33 2021-09-01
34 $ dseq --compute-from-last 2021-10-00 -1d 2021-09-00
35 2021-09-30
36 2021-09-29
37 2021-09-28
38 2021-09-27
39 2021-09-26
40 2021-09-25
41 2021-09-24
42 2021-09-23
43 2021-09-22
44 2021-09-21
45 2021-09-20
46 2021-09-19
47 2021-09-18
48 2021-09-17
49 2021-09-16
50 2021-09-15
51 2021-09-14
52 2021-09-13
53 2021-09-12
54 2021-09-11
55 2021-09-10
56 2021-09-09
57 2021-09-08
58 2021-09-07
59 2021-09-06
60 2021-09-05
61 2021-09-04
62 2021-09-03
63 2021-09-02
64 2021-09-01
65 $
66
67 ## dseq.67.ctst ends here
+0
-12
test/dsort.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dsort < "${srcdir}/caev_01.txt"
3 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
4 2010-11-17 caev="DVCA" secu="VOD" exch="XLON" xdte="2010-11-17" nett/GBX="2.85"
5 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
6 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
7 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
8 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
9 $
10
11 ## dsort.001.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dsort < "${srcdir}/caev_01.txt"
3 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
4 2010-11-17 caev="DVCA" secu="VOD" exch="XLON" xdte="2010-11-17" nett/GBX="2.85"
5 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
6 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
7 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
8 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
9 $
10
11 ## dsort.001.ctst ends here
+0
-12
test/dsort.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dsort "${srcdir}/caev_01.txt"
3 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
4 2010-11-17 caev="DVCA" secu="VOD" exch="XLON" xdte="2010-11-17" nett/GBX="2.85"
5 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
6 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
7 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
8 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
9 $
10
11 ## dsort.002.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dsort "${srcdir}/caev_01.txt"
3 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
4 2010-11-17 caev="DVCA" secu="VOD" exch="XLON" xdte="2010-11-17" nett/GBX="2.85"
5 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
6 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
7 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
8 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
9 $
10
11 ## dsort.002.ctst ends here
+0
-12
test/dsort.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dsort -r < "${srcdir}/caev_01.txt"
3 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
4 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
5 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
6 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
7 2010-11-17 caev="DVCA" secu="VOD" exch="XLON" xdte="2010-11-17" nett/GBX="2.85"
8 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
9 $
10
11 ## dsort.003.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dsort -r < "${srcdir}/caev_01.txt"
3 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
4 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
5 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
6 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
7 2010-11-17 caev="DVCA" secu="VOD" exch="XLON" xdte="2010-11-17" nett/GBX="2.85"
8 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
9 $
10
11 ## dsort.003.ctst ends here
+0
-12
test/dsort.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dsort -r "${srcdir}/caev_01.txt"
3 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
4 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
5 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
6 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
7 2010-11-17 caev="DVCA" secu="VOD" exch="XLON" xdte="2010-11-17" nett/GBX="2.85"
8 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
9 $
10
11 ## dsort.004.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dsort -r "${srcdir}/caev_01.txt"
3 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
4 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
5 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
6 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
7 2010-11-17 caev="DVCA" secu="VOD" exch="XLON" xdte="2010-11-17" nett/GBX="2.85"
8 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
9 $
10
11 ## dsort.004.ctst ends here
+0
-12
test/dsort.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dsort -u < "${srcdir}/caev_02.txt"
3 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
4 2010-11-17 caev="XXXX" secu="VOD" exch="XLON" xdte="2010-11-17"
5 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
6 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
7 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
8 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
9 $
10
11 ## dsort.005.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dsort -u < "${srcdir}/caev_02.txt"
3 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
4 2010-11-17 caev="XXXX" secu="VOD" exch="XLON" xdte="2010-11-17"
5 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
6 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
7 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
8 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
9 $
10
11 ## dsort.005.ctst ends here
+0
-12
test/dsort.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dsort -u "${srcdir}/caev_02.txt"
3 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
4 2010-11-17 caev="XXXX" secu="VOD" exch="XLON" xdte="2010-11-17"
5 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
6 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
7 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
8 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
9 $
10
11 ## dsort.006.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dsort -u "${srcdir}/caev_02.txt"
3 2009-06-03 caev="DVCA" secu="VOD" exch="XLON" xdte="2009-06-03" nett/GBX="5.2"
4 2010-11-17 caev="XXXX" secu="VOD" exch="XLON" xdte="2010-11-17"
5 2011-11-16 caev="DVCA" secu="VOD" exch="XLON" xdte="2011-11-16" nett/GBX="3.05"
6 2012-06-06 caev="DVCA" secu="VOD" exch="XLON" xdte="2012-06-06" nett/GBX="6.47"
7 2013-06-12 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-06-12" nett/GBX="6.92"
8 2013-11-20 caev="DVCA" secu="VOD" exch="XLON" xdte="2013-11-20" nett/GBX="3.53"
9 $
10
11 ## dsort.006.ctst ends here
+0
-17
test/dsort.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dsort -i '%B %Y' --from-locale yo_NG <<EOF
3 Júùnù 2015
4 Fẹ́búárì 2015
5 Ọ́ọ́gọsì 2015
6 Máàṣì 2015
7 Ọtóbà 2015
8 EOF
9 Fẹ́búárì 2015
10 Máàṣì 2015
11 Júùnù 2015
12 Ọ́ọ́gọsì 2015
13 Ọtóbà 2015
14 $
15
16 ## dsort.007.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dsort -i '%B %Y' --from-locale yo_NG <<EOF
3 Júùnù 2015
4 Fẹ́búárì 2015
5 Ọ́ọ́gọsì 2015
6 Máàṣì 2015
7 Ọtóbà 2015
8 EOF
9 Fẹ́búárì 2015
10 Máàṣì 2015
11 Júùnù 2015
12 Ọ́ọ́gọsì 2015
13 Ọtóbà 2015
14 $
15
16 ## dsort.007.ctst ends here
+0
-7
test/dtadd.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-01T10:00:00 1d
3 2012-03-02T10:00:00
4 $
5
6 ## dtadd.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-01T10:00:00 1d
3 2012-03-02T10:00:00
4 $
5
6 ## dtadd.1.ctst ends here
+0
-7
test/dtadd.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-01T10:00:00 1m
3 2012-03-01T10:01:00
4 $
5
6 ## dtadd.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-01T10:00:00 1m
3 2012-03-01T10:01:00
4 $
5
6 ## dtadd.2.ctst ends here
+0
-7
test/dtadd.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-31T10:00:00 1mo
3 2012-04-30T10:00:00
4 $
5
6 ## dtadd.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-31T10:00:00 1mo
3 2012-04-30T10:00:00
4 $
5
6 ## dtadd.3.ctst ends here
+0
-17
test/dtadd.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2w2d <<EOF
3 2012-03-01T10:00:00
4 2012-03-02T10:00:00
5 2012-03-04T10:00:00
6 2012-03-08T10:00:00
7 2012-03-16T10:00:00
8 EOF
9 2012-03-17T10:00:00
10 2012-03-18T10:00:00
11 2012-03-20T10:00:00
12 2012-03-24T10:00:00
13 2012-04-01T10:00:00
14 $
15
16 ## dtadd.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2w2d <<EOF
3 2012-03-01T10:00:00
4 2012-03-02T10:00:00
5 2012-03-04T10:00:00
6 2012-03-08T10:00:00
7 2012-03-16T10:00:00
8 EOF
9 2012-03-17T10:00:00
10 2012-03-18T10:00:00
11 2012-03-20T10:00:00
12 2012-03-24T10:00:00
13 2012-04-01T10:00:00
14 $
15
16 ## dtadd.4.ctst ends here
+0
-25
test/dtadd.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 1b <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 EOF
13 2000-01-03T10:00:00
14 2000-01-03T10:00:00
15 2000-01-04T10:00:00
16 2000-01-05T10:00:00
17 2000-01-06T10:00:00
18 2000-01-07T10:00:00
19 2000-01-10T10:00:00
20 2000-01-10T10:00:00
21 2000-01-10T10:00:00
22 $
23
24 ## dtadd.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 1b <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 EOF
13 2000-01-03T10:00:00
14 2000-01-03T10:00:00
15 2000-01-04T10:00:00
16 2000-01-05T10:00:00
17 2000-01-06T10:00:00
18 2000-01-07T10:00:00
19 2000-01-10T10:00:00
20 2000-01-10T10:00:00
21 2000-01-10T10:00:00
22 $
23
24 ## dtadd.5.ctst ends here
+0
-27
test/dtadd.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1b <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 2000-01-10T10:00:00
13 EOF
14 1999-12-31T10:00:00
15 1999-12-31T10:00:00
16 1999-12-31T10:00:00
17 2000-01-03T10:00:00
18 2000-01-04T10:00:00
19 2000-01-05T10:00:00
20 2000-01-06T10:00:00
21 2000-01-07T10:00:00
22 2000-01-07T10:00:00
23 2000-01-07T10:00:00
24 $
25
26 ## dtadd.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1b <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 2000-01-10T10:00:00
13 EOF
14 1999-12-31T10:00:00
15 1999-12-31T10:00:00
16 1999-12-31T10:00:00
17 2000-01-03T10:00:00
18 2000-01-04T10:00:00
19 2000-01-05T10:00:00
20 2000-01-06T10:00:00
21 2000-01-07T10:00:00
22 2000-01-07T10:00:00
23 2000-01-07T10:00:00
24 $
25
26 ## dtadd.6.ctst ends here
+0
-27
test/dtadd.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1 <<EOF
3 2000-01-01T08:00:00
4 2000-01-02T08:00:00
5 2000-01-03T08:00:00
6 2000-01-04T08:00:00
7 2000-01-05T08:00:00
8 2000-01-06T08:00:00
9 2000-01-07T08:00:00
10 2000-01-08T08:00:00
11 2000-01-09T08:00:00
12 2000-01-10T08:00:00
13 EOF
14 1999-12-31T08:00:00
15 2000-01-01T08:00:00
16 2000-01-02T08:00:00
17 2000-01-03T08:00:00
18 2000-01-04T08:00:00
19 2000-01-05T08:00:00
20 2000-01-06T08:00:00
21 2000-01-07T08:00:00
22 2000-01-08T08:00:00
23 2000-01-09T08:00:00
24 $
25
26 ## dtadd.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1 <<EOF
3 2000-01-01T08:00:00
4 2000-01-02T08:00:00
5 2000-01-03T08:00:00
6 2000-01-04T08:00:00
7 2000-01-05T08:00:00
8 2000-01-06T08:00:00
9 2000-01-07T08:00:00
10 2000-01-08T08:00:00
11 2000-01-09T08:00:00
12 2000-01-10T08:00:00
13 EOF
14 1999-12-31T08:00:00
15 2000-01-01T08:00:00
16 2000-01-02T08:00:00
17 2000-01-03T08:00:00
18 2000-01-04T08:00:00
19 2000-01-05T08:00:00
20 2000-01-06T08:00:00
21 2000-01-07T08:00:00
22 2000-01-08T08:00:00
23 2000-01-09T08:00:00
24 $
25
26 ## dtadd.7.ctst ends here
+0
-27
test/dtadd.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1mo1d2h <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 2000-01-10T10:00:00
13 EOF
14 1999-11-30T08:00:00
15 1999-12-01T08:00:00
16 1999-12-02T08:00:00
17 1999-12-03T08:00:00
18 1999-12-04T08:00:00
19 1999-12-05T08:00:00
20 1999-12-06T08:00:00
21 1999-12-07T08:00:00
22 1999-12-08T08:00:00
23 1999-12-09T08:00:00
24 $
25
26 ## dtadd.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1mo1d2h <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 2000-01-10T10:00:00
13 EOF
14 1999-11-30T08:00:00
15 1999-12-01T08:00:00
16 1999-12-02T08:00:00
17 1999-12-03T08:00:00
18 1999-12-04T08:00:00
19 1999-12-05T08:00:00
20 1999-12-06T08:00:00
21 1999-12-07T08:00:00
22 1999-12-08T08:00:00
23 1999-12-09T08:00:00
24 $
25
26 ## dtadd.8.ctst ends here
+0
-27
test/dtadd.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd +1d23h <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 2000-01-10T10:00:00
13 EOF
14 2000-01-03T09:00:00
15 2000-01-04T09:00:00
16 2000-01-05T09:00:00
17 2000-01-06T09:00:00
18 2000-01-07T09:00:00
19 2000-01-08T09:00:00
20 2000-01-09T09:00:00
21 2000-01-10T09:00:00
22 2000-01-11T09:00:00
23 2000-01-12T09:00:00
24 $
25
26 ## dtadd.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd +1d23h <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 2000-01-10T10:00:00
13 EOF
14 2000-01-03T09:00:00
15 2000-01-04T09:00:00
16 2000-01-05T09:00:00
17 2000-01-06T09:00:00
18 2000-01-07T09:00:00
19 2000-01-08T09:00:00
20 2000-01-09T09:00:00
21 2000-01-10T09:00:00
22 2000-01-11T09:00:00
23 2000-01-12T09:00:00
24 $
25
26 ## dtadd.9.ctst ends here
+0
-27
test/dtadd.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd +1d23h -z Europe/Berlin <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 2000-01-10T10:00:00
13 EOF
14 2000-01-03T10:00:00
15 2000-01-04T10:00:00
16 2000-01-05T10:00:00
17 2000-01-06T10:00:00
18 2000-01-07T10:00:00
19 2000-01-08T10:00:00
20 2000-01-09T10:00:00
21 2000-01-10T10:00:00
22 2000-01-11T10:00:00
23 2000-01-12T10:00:00
24 $
25
26 ## dtadd.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd +1d23h -z Europe/Berlin <<EOF
3 2000-01-01T10:00:00
4 2000-01-02T10:00:00
5 2000-01-03T10:00:00
6 2000-01-04T10:00:00
7 2000-01-05T10:00:00
8 2000-01-06T10:00:00
9 2000-01-07T10:00:00
10 2000-01-08T10:00:00
11 2000-01-09T10:00:00
12 2000-01-10T10:00:00
13 EOF
14 2000-01-03T10:00:00
15 2000-01-04T10:00:00
16 2000-01-05T10:00:00
17 2000-01-06T10:00:00
18 2000-01-07T10:00:00
19 2000-01-08T10:00:00
20 2000-01-09T10:00:00
21 2000-01-10T10:00:00
22 2000-01-11T10:00:00
23 2000-01-12T10:00:00
24 $
25
26 ## dtadd.10.ctst ends here
+0
-7
test/dtadd.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z Europe/Berlin
3 2012-03-25T18:00:00
4 $
5
6 ## dtadd.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z Europe/Berlin
3 2012-03-25T18:00:00
4 $
5
6 ## dtadd.11.ctst ends here
+0
-7
test/dtadd.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z Europe/Berlin
3 2012-03-25T19:00:00
4 $
5
6 ## dtadd.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z Europe/Berlin
3 2012-03-25T19:00:00
4 $
5
6 ## dtadd.12.ctst ends here
+0
-7
test/dtadd.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z America/Chicago
3 2012-03-25T11:00:00
4 $
5
6 ## dtadd.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-24T18:00:00 1d --from-zone 'Europe/Berlin' -z America/Chicago
3 2012-03-25T11:00:00
4 $
5
6 ## dtadd.13.ctst ends here
+0
-7
test/dtadd.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z America/Chicago
3 2012-03-25T12:00:00
4 $
5
6 ## dtadd.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-24T18:00:00 24h --from-zone 'Europe/Berlin' -z America/Chicago
3 2012-03-25T12:00:00
4 $
5
6 ## dtadd.14.ctst ends here
+0
-7
test/dtadd.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2012-03-12T12:05:00 -1d4h
3 2012-03-11T08:05:00
4 $
5
6 ## dtadd.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2012-03-12T12:05:00 -1d4h
3 2012-03-11T08:05:00
4 $
5
6 ## dtadd.15.ctst ends here
+0
-9
test/dtadd.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -1d4h <<EOF
3 2012-03-12T12:05:00
4 EOF
5 2012-03-11T08:05:00
6 $
7
8 ## dtadd.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -1d4h <<EOF
3 2012-03-12T12:05:00
4 EOF
5 2012-03-11T08:05:00
6 $
7
8 ## dtadd.16.ctst ends here
+0
-17
test/dtadd.017.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-01-02 02:04:00' <<EOF
3 10s
4 1m
5 1h
6 24h
7 1d
8 EOF
9 2012-01-02T02:04:10
10 2012-01-02T02:05:00
11 2012-01-02T03:04:00
12 2012-01-03T02:04:00
13 2012-01-03T02:04:00
14 $
15
16 ## dtadd.17.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-01-02 02:04:00' <<EOF
3 10s
4 1m
5 1h
6 24h
7 1d
8 EOF
9 2012-01-02T02:04:10
10 2012-01-02T02:05:00
11 2012-01-02T03:04:00
12 2012-01-03T02:04:00
13 2012-01-03T02:04:00
14 $
15
16 ## dtadd.17.ctst ends here
+0
-17
test/dtadd.018.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-01-02 02:04:00' <<EOF
3 -10s
4 -1m
5 -1h
6 -24h
7 -1d
8 EOF
9 2012-01-02T02:03:50
10 2012-01-02T02:03:00
11 2012-01-02T01:04:00
12 2012-01-01T02:04:00
13 2012-01-01T02:04:00
14 $
15
16 ## dtadd.18.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-01-02 02:04:00' <<EOF
3 -10s
4 -1m
5 -1h
6 -24h
7 -1d
8 EOF
9 2012-01-02T02:03:50
10 2012-01-02T02:03:00
11 2012-01-02T01:04:00
12 2012-01-01T02:04:00
13 2012-01-01T02:04:00
14 $
15
16 ## dtadd.18.ctst ends here
+0
-16
test/dtadd.019.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dadd '2012-01-02 02:04:00' -f '%F %T' <<EOF
3 -40h
4 -1d2h4m
5 -1w2d6h3m
6 -1mo 6m
7 hello
8 EOF
9 2011-12-31 10:04:00
10 2012-01-01 00:00:00
11 2011-12-23 20:01:00
12 2011-12-02 01:58:00
13 $
14
15 ## dtadd.19.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dadd '2012-01-02 02:04:00' -f '%F %T' <<EOF
3 -40h
4 -1d2h4m
5 -1w2d6h3m
6 -1mo 6m
7 hello
8 EOF
9 2011-12-31 10:04:00
10 2012-01-01 00:00:00
11 2011-12-23 20:01:00
12 2011-12-02 01:58:00
13 $
14
15 ## dtadd.19.ctst ends here
+0
-17
test/dtadd.020.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -S '2012-01-02 02:04:00' -f '%F %T' <<EOF
3 -40h
4 -1d2h4m
5 -1w2d6h3m
6 1mo 6m
7 hello
8 EOF
9 2011-12-31 10:04:00
10 2012-01-01 00:00:00
11 2011-12-23 20:01:00
12 2012-02-02 02:10:00
13 hello
14 $
15
16 ## dtadd.20.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -S '2012-01-02 02:04:00' -f '%F %T' <<EOF
3 -40h
4 -1d2h4m
5 -1w2d6h3m
6 1mo 6m
7 hello
8 EOF
9 2011-12-31 10:04:00
10 2012-01-01 00:00:00
11 2011-12-23 20:01:00
12 2012-02-02 02:10:00
13 hello
14 $
15
16 ## dtadd.20.ctst ends here
+0
-7
test/dtadd.021.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '1930-01-01 00:00:00' -f '%F %T' 86400s
3 1930-01-02 00:00:00
4 $
5
6 ## dtadd.21.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '1930-01-01 00:00:00' -f '%F %T' 86400s
3 1930-01-02 00:00:00
4 $
5
6 ## dtadd.21.ctst ends here
+0
-7
test/dtadd.022.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '1930-01-01 00:00:00' -f '%F %T' 259200s
3 1930-01-04 00:00:00
4 $
5
6 ## dtadd.22.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '1930-01-01 00:00:00' -f '%F %T' 259200s
3 1930-01-04 00:00:00
4 $
5
6 ## dtadd.22.ctst ends here
+0
-7
test/dtadd.023.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '1930-01-01 00:00:00' -f '%F %T' 864000s
3 1930-01-11 00:00:00
4 $
5
6 ## dtadd.23.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '1930-01-01 00:00:00' -f '%F %T' 864000s
3 1930-01-11 00:00:00
4 $
5
6 ## dtadd.23.ctst ends here
+0
-7
test/dtadd.024.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '1930-01-01 00:00:00' -f '%F %T' 8640000s
3 1930-04-11 00:00:00
4 $
5
6 ## dtadd.24.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '1930-01-01 00:00:00' -f '%F %T' 8640000s
3 1930-04-11 00:00:00
4 $
5
6 ## dtadd.24.ctst ends here
+0
-8
test/dtadd.025.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## largest allowed value
3 $ dadd '1930-01-01 00:00:00' -f '%F %T' 2147483647s
4 1998-01-19 03:14:07
5 $
6
7 ## dtadd.25.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## largest allowed value
3 $ dadd '1930-01-01 00:00:00' -f '%F %T' 2147483647s
4 1998-01-19 03:14:07
5 $
6
7 ## dtadd.25.ctst ends here
+0
-7
test/dtadd.026.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dadd: Error: cannot parse duration string `2147483648s': Numerical result out of range
3 $ ! dadd '1930-01-01 00:00:00' -f '%F %T' 2147483648s
4 $
5
6 ## dtadd.26.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dadd: Error: cannot parse duration string `2147483648s': Numerical result out of range
3 $ ! dadd '1930-01-01 00:00:00' -f '%F %T' 2147483648s
4 $
5
6 ## dtadd.26.ctst ends here
+0
-8
test/dtadd.027.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## smallest allowed value
3 $ dadd '1998-01-19 03:14:07' -f '%F %T' -2147483647s
4 1930-01-01 00:00:00
5 $
6
7 ## dtadd.27.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## smallest allowed value
3 $ dadd '1998-01-19 03:14:07' -f '%F %T' -2147483647s
4 1930-01-01 00:00:00
5 $
6
7 ## dtadd.27.ctst ends here
+0
-7
test/dtadd.028.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dadd: Error: cannot parse duration string `-2147483648s': Numerical result out of range
3 $ ! dadd '1930-01-01 00:00:00' -f '%F %T' -2147483648s
4 $
5
6 ## dtadd.28.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dadd: Error: cannot parse duration string `-2147483648s': Numerical result out of range
3 $ ! dadd '1930-01-01 00:00:00' -f '%F %T' -2147483648s
4 $
5
6 ## dtadd.28.ctst ends here
+0
-7
test/dtadd.029.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-06-30 23:59:30' 29rs
3 2012-06-30T23:59:59
4 $
5
6 ## dtadd.29.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-06-30 23:59:30' 29rs
3 2012-06-30T23:59:59
4 $
5
6 ## dtadd.29.ctst ends here
+0
-7
test/dtadd.030.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-06-30 23:59:30' 30rs
3 2012-06-30T23:59:60
4 $
5
6 ## dtadd.30.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-06-30 23:59:30' 30rs
3 2012-06-30T23:59:60
4 $
5
6 ## dtadd.30.ctst ends here
+0
-7
test/dtadd.031.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-06-30 23:59:30' 31rs
3 2012-07-01T00:00:00
4 $
5
6 ## dtadd.31.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-06-30 23:59:30' 31rs
3 2012-07-01T00:00:00
4 $
5
6 ## dtadd.31.ctst ends here
+0
-7
test/dtadd.032.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-06-30 23:59:30' 31s
3 2012-07-01T00:00:01
4 $
5
6 ## dtadd.32.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-06-30 23:59:30' 31s
3 2012-07-01T00:00:01
4 $
5
6 ## dtadd.32.ctst ends here
+0
-7
test/dtadd.033.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-07-01 00:00:05' -5rs
3 2012-07-01T00:00:00
4 $
5
6 ## dtadd.33.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-07-01 00:00:05' -5rs
3 2012-07-01T00:00:00
4 $
5
6 ## dtadd.33.ctst ends here
+0
-7
test/dtadd.034.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-07-01 00:00:05' -6rs
3 2012-06-30T23:59:60
4 $
5
6 ## dtadd.34.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-07-01 00:00:05' -6rs
3 2012-06-30T23:59:60
4 $
5
6 ## dtadd.34.ctst ends here
+0
-7
test/dtadd.035.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-07-01 00:00:05' -7rs
3 2012-06-30T23:59:59
4 $
5
6 ## dtadd.35.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-07-01 00:00:05' -7rs
3 2012-06-30T23:59:59
4 $
5
6 ## dtadd.35.ctst ends here
+0
-7
test/dtadd.036.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-07-01 00:00:05' -6s
3 2012-06-30T23:59:59
4 $
5
6 ## dtadd.36.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-07-01 00:00:05' -6s
3 2012-06-30T23:59:59
4 $
5
6 ## dtadd.36.ctst ends here
+0
-7
test/dtadd.037.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-05-01 14:00:00' -f '%F %T' +7b
3 2012-05-10 14:00:00
4 $
5
6 ## dtadd.37.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-05-01 14:00:00' -f '%F %T' +7b
3 2012-05-10 14:00:00
4 $
5
6 ## dtadd.37.ctst ends here
+0
-7
test/dtadd.038.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-05-30 14:00:00' -7b -f '%F'
3 2012-05-21
4 $
5
6 ## dtadd.38.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-05-30 14:00:00' -7b -f '%F'
3 2012-05-21
4 $
5
6 ## dtadd.38.ctst ends here
+0
-7
test/dtadd.039.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-05-01 14:00:00' -f '%Y-%m-%db %T' +7b
3 2012-05-08b 14:00:00
4 $
5
6 ## dtadd.39.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-05-01 14:00:00' -f '%Y-%m-%db %T' +7b
3 2012-05-08b 14:00:00
4 $
5
6 ## dtadd.39.ctst ends here
+0
-7
test/dtadd.040.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2012-05-30 14:00:00' -7b -f '%Y-%m-%db'
3 2012-05-15b
4 $
5
6 ## dtadd.40.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2012-05-30 14:00:00' -7b -f '%Y-%m-%db'
3 2012-05-15b
4 $
5
6 ## dtadd.40.ctst ends here
+0
-17
test/dtadd.041.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2w2d <<EOF
3 From 2012-03-01T10:00:00 to 2012-03-01T11:00:00
4 and 2012-03-02T10:00:00 to 2012-03-02T11:00:00
5 not after 2012-03-04T10:00:00
6 nor 2012-03-08T10:00:00
7 2012-03-16T10:00:00
8 EOF
9 2012-03-17T10:00:00
10 2012-03-18T10:00:00
11 2012-03-20T10:00:00
12 2012-03-24T10:00:00
13 2012-04-01T10:00:00
14 $
15
16 ## dtadd.41.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2w2d <<EOF
3 From 2012-03-01T10:00:00 to 2012-03-01T11:00:00
4 and 2012-03-02T10:00:00 to 2012-03-02T11:00:00
5 not after 2012-03-04T10:00:00
6 nor 2012-03-08T10:00:00
7 2012-03-16T10:00:00
8 EOF
9 2012-03-17T10:00:00
10 2012-03-18T10:00:00
11 2012-03-20T10:00:00
12 2012-03-24T10:00:00
13 2012-04-01T10:00:00
14 $
15
16 ## dtadd.41.ctst ends here
+0
-17
test/dtadd.042.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -S 2w2d <<EOF
3 From 2012-03-01T10:00:00 to 2012-03-01T11:00:00
4 and 2012-03-02T10:00:00 to 2012-03-02T11:00:00
5 not after 2012-03-04T10:00:00
6 nor 2012-03-08T10:00:00
7 2012-03-16T10:00:00
8 EOF
9 From 2012-03-17T10:00:00 to 2012-03-17T11:00:00
10 and 2012-03-18T10:00:00 to 2012-03-18T11:00:00
11 not after 2012-03-20T10:00:00
12 nor 2012-03-24T10:00:00
13 2012-04-01T10:00:00
14 $
15
16 ## dtadd.42.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -S 2w2d <<EOF
3 From 2012-03-01T10:00:00 to 2012-03-01T11:00:00
4 and 2012-03-02T10:00:00 to 2012-03-02T11:00:00
5 not after 2012-03-04T10:00:00
6 nor 2012-03-08T10:00:00
7 2012-03-16T10:00:00
8 EOF
9 From 2012-03-17T10:00:00 to 2012-03-17T11:00:00
10 and 2012-03-18T10:00:00 to 2012-03-18T11:00:00
11 not after 2012-03-20T10:00:00
12 nor 2012-03-24T10:00:00
13 2012-04-01T10:00:00
14 $
15
16 ## dtadd.42.ctst ends here
+0
-8
test/dtadd.043.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd --from-zone America/Chicago '2014-05-08T12:34:56' +1h \
3 --zone America/Chicago -f "%FT%T%Z"
4 2014-05-08T13:34:56-05:00
5 $
6
7 ## dtadd.043.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd --from-zone America/Chicago '2014-05-08T12:34:56' +1h \
3 --zone America/Chicago -f "%FT%T%Z"
4 2014-05-08T13:34:56-05:00
5 $
6
7 ## dtadd.043.ctst ends here
+0
-7
test/dtadd.044.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2014-05-08T12:34:56-05:00' +1h --zone America/Chicago -f "%FT%T%Z"
3 2014-05-08T13:34:56-05:00
4 $
5
6 ## dtadd.044.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2014-05-08T12:34:56-05:00' +1h --zone America/Chicago -f "%FT%T%Z"
3 2014-05-08T13:34:56-05:00
4 $
5
6 ## dtadd.044.ctst ends here
+0
-7
test/dtadd.045.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2014-01-08T12:34:56-05:00' +1h --zone America/Chicago -f "%FT%T%Z"
3 2014-01-08T12:34:56-06:00
4 $
5
6 ## dtadd.045.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2014-01-08T12:34:56-05:00' +1h --zone America/Chicago -f "%FT%T%Z"
3 2014-01-08T12:34:56-06:00
4 $
5
6 ## dtadd.045.ctst ends here
+0
-9
test/dtadd.046.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## actual zone specs take precedence over --from-zone
3 $ dadd --from-zone America/Chicago '2014-01-08T12:34:56-05:00' +1h \
4 --zone America/Chicago -f "%FT%T%Z"
5 2014-01-08T12:34:56-06:00
6 $
7
8 ## dtadd.046.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## actual zone specs take precedence over --from-zone
3 $ dadd --from-zone America/Chicago '2014-01-08T12:34:56-05:00' +1h \
4 --zone America/Chicago -f "%FT%T%Z"
5 2014-01-08T12:34:56-06:00
6 $
7
8 ## dtadd.046.ctst ends here
+0
-7
test/dtadd.047.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd '2014-01-08T12:34:56' +20ns -f "%FT%T.%N"
3 2014-01-08T12:34:56.000000020
4 $
5
6 ## dtadd.047.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd '2014-01-08T12:34:56' +20ns -f "%FT%T.%N"
3 2014-01-08T12:34:56.000000020
4 $
5
6 ## dtadd.047.ctst ends here
+0
-7
test/dtadd.048.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -i '%FT%T.%N' '2014-01-08T12:34:56.999999990' +20ns -f "%FT%T.%N"
3 2014-01-08T12:34:57.000000010
4 $
5
6 ## dtadd.048.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -i '%FT%T.%N' '2014-01-08T12:34:56.999999990' +20ns -f "%FT%T.%N"
3 2014-01-08T12:34:57.000000010
4 $
5
6 ## dtadd.048.ctst ends here
+0
-6
test/dtadd.049.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -z "Europe/Berlin" "2015-06-13T00:18:20" "+2m" -f "%Y%m%d %T Europe/Berlin"
3 20150613 02:20:20 Europe/Berlin
4 $
5
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -z "Europe/Berlin" "2015-06-13T00:18:20" "+2m" -f "%Y%m%d %T Europe/Berlin"
3 20150613 02:20:20 Europe/Berlin
4 $
5
+0
-5
test/dtadd.050.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -z "Europe/Berlin" "@1434147500" "+2m" -f "%Y%m%d %T Europe/Berlin"
3 20150613 00:20:20 Europe/Berlin
4 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -z "Europe/Berlin" "@1434147500" "+2m" -f "%Y%m%d %T Europe/Berlin"
3 20150613 00:20:20 Europe/Berlin
4 $
+0
-11
test/dtadd.051.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-04-04
7 2016-04-04T10:22:00
8 $
9
10 ## dtadd.051.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-04-04
7 2016-04-04T10:22:00
8 $
9
10 ## dtadd.051.ctst ends here
+0
-11
test/dtadd.052.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2mo <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-06-04
7 2016-06-04T10:20:00
8 $
9
10 ## dtadd.052.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2mo <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-06-04
7 2016-06-04T10:20:00
8 $
9
10 ## dtadd.052.ctst ends here
+0
-11
test/dtadd.053.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd +2mo +2m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-06-04
7 2016-06-04T10:22:00
8 $
9
10 ## dtadd.053.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd +2mo +2m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-06-04
7 2016-06-04T10:22:00
8 $
9
10 ## dtadd.053.ctst ends here
+0
-11
test/dtadd.054.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd +2mo +1500m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-06-04
7 2016-06-05T11:20:00
8 $
9
10 ## dtadd.054.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd +2mo +1500m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-06-04
7 2016-06-05T11:20:00
8 $
9
10 ## dtadd.054.ctst ends here
+0
-23
test/dtadd.055.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2018-05-27T10:00:01 0d
3 2018-05-27T10:00:01
4 $ dadd 2018-05-27T10:00:01 0b
5 2018-05-27T10:00:01
6 $ dadd 2018-05-27T10:00:01 0w
7 2018-05-27T10:00:01
8 $ dadd 2018-05-27T10:00:01 0mo
9 2018-05-27T10:00:01
10 $ dadd 2018-05-27T10:00:01 0y
11 2018-05-27T10:00:01
12 $ dadd 2018-05-27T10:00:01 0
13 2018-05-27T10:00:01
14 $ dadd 2018-05-27T10:00:01 0s
15 2018-05-27T10:00:01
16 $ dadd 2018-05-27T10:00:01 0m
17 2018-05-27T10:00:01
18 $ dadd 2018-05-27T10:00:01 0h
19 2018-05-27T10:00:01
20 $
21
22 ## dtadd.055.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2018-05-27T10:00:01 0d
3 2018-05-27T10:00:01
4 $ dadd 2018-05-27T10:00:01 0b
5 2018-05-27T10:00:01
6 $ dadd 2018-05-27T10:00:01 0w
7 2018-05-27T10:00:01
8 $ dadd 2018-05-27T10:00:01 0mo
9 2018-05-27T10:00:01
10 $ dadd 2018-05-27T10:00:01 0y
11 2018-05-27T10:00:01
12 $ dadd 2018-05-27T10:00:01 0
13 2018-05-27T10:00:01
14 $ dadd 2018-05-27T10:00:01 0s
15 2018-05-27T10:00:01
16 $ dadd 2018-05-27T10:00:01 0m
17 2018-05-27T10:00:01
18 $ dadd 2018-05-27T10:00:01 0h
19 2018-05-27T10:00:01
20 $
21
22 ## dtadd.055.ctst ends here
+0
-7
test/dtconv.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00'
3 2012-03-01T00:00:00
4 $
5
6 ## dtconv.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00'
3 2012-03-01T00:00:00
4 $
5
6 ## dtconv.1.ctst ends here
+0
-7
test/dtconv.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-03-01T12:34:56
3 2012-03-01T12:34:56
4 $
5
6 ## dtconv.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-03-01T12:34:56
3 2012-03-01T12:34:56
4 $
5
6 ## dtconv.2.ctst ends here
+0
-7
test/dtconv.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-03-01T01:05:06 --from-zone America/Chicago
3 2012-03-01T07:05:06
4 $
5
6 ## dtconv.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-03-01T01:05:06 --from-zone America/Chicago
3 2012-03-01T07:05:06
4 $
5
6 ## dtconv.3.ctst ends here
+0
-7
test/dtconv.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 01:05:06' --from-zone America/Chicago
3 2012-03-01T07:05:06
4 $
5
6 ## dtconv.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 01:05:06' --from-zone America/Chicago
3 2012-03-01T07:05:06
4 $
5
6 ## dtconv.4.ctst ends here
+0
-7
test/dtconv.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-03-01T07:05:06 --zone America/Chicago
3 2012-03-01T01:05:06
4 $
5
6 ## dtconv.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-03-01T07:05:06 --zone America/Chicago
3 2012-03-01T01:05:06
4 $
5
6 ## dtconv.5.ctst ends here
+0
-7
test/dtconv.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 07:05:06' --zone America/Chicago
3 2012-03-01T01:05:06
4 $
5
6 ## dtconv.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 07:05:06' --zone America/Chicago
3 2012-03-01T01:05:06
4 $
5
6 ## dtconv.6.ctst ends here
+0
-7
test/dtconv.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago 2012-03-01T01:05:06 --zone Europe/Berlin
3 2012-03-01T08:05:06
4 $
5
6 ## dtconv.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago 2012-03-01T01:05:06 --zone Europe/Berlin
3 2012-03-01T08:05:06
4 $
5
6 ## dtconv.7.ctst ends here
+0
-7
test/dtconv.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago '2012-03-01 01:05:06' --zone Europe/Berlin
3 2012-03-01T08:05:06
4 $
5
6 ## dtconv.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago '2012-03-01 01:05:06' --zone Europe/Berlin
3 2012-03-01T08:05:06
4 $
5
6 ## dtconv.8.ctst ends here
+0
-7
test/dtconv.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -z Europe/Berlin 2012-03-01 -f '%F %T'
3 2012-03-01 00:00:00
4 $
5
6 ## dtconv.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -z Europe/Berlin 2012-03-01 -f '%F %T'
3 2012-03-01 00:00:00
4 $
5
6 ## dtconv.9.ctst ends here
+0
-7
test/dtconv.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -z Europe/Berlin '2012-03-01 00:00' -i '%F %H:%M' -f '%F %T'
3 2012-03-01 07:00:00
4 $
5
6 ## dtconv.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -z Europe/Berlin '2012-03-01 00:00' -i '%F %H:%M' -f '%F %T'
3 2012-03-01 07:00:00
4 $
5
6 ## dtconv.10.ctst ends here
+0
-21
test/dtconv.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --zone America/Chicago <<EOF
3 2012-03-01T07:05:06
4 2012-03-01T08:12:34
5 2012-03-11T01:05:06
6 2012-03-11T02:05:06
7 2012-03-11T07:05:06
8 2012-03-11T08:05:06
9 2012-03-11T17:05:06
10 EOF
11 2012-03-01T01:05:06
12 2012-03-01T02:12:34
13 2012-03-10T19:05:06
14 2012-03-10T20:05:06
15 2012-03-11T01:05:06
16 2012-03-11T03:05:06
17 2012-03-11T12:05:06
18 $
19
20 ## dtconv.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --zone America/Chicago <<EOF
3 2012-03-01T07:05:06
4 2012-03-01T08:12:34
5 2012-03-11T01:05:06
6 2012-03-11T02:05:06
7 2012-03-11T07:05:06
8 2012-03-11T08:05:06
9 2012-03-11T17:05:06
10 EOF
11 2012-03-01T01:05:06
12 2012-03-01T02:12:34
13 2012-03-10T19:05:06
14 2012-03-10T20:05:06
15 2012-03-11T01:05:06
16 2012-03-11T03:05:06
17 2012-03-11T12:05:06
18 $
19
20 ## dtconv.11.ctst ends here
+0
-21
test/dtconv.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago <<EOF
3 2012-03-01T01:05:06
4 2012-03-01T02:12:34
5 2012-03-10T19:05:06
6 2012-03-10T20:05:06
7 2012-03-11T01:05:06
8 2012-03-11T03:05:06
9 2012-03-11T12:05:06
10 EOF
11 2012-03-01T07:05:06
12 2012-03-01T08:12:34
13 2012-03-11T01:05:06
14 2012-03-11T02:05:06
15 2012-03-11T07:05:06
16 2012-03-11T08:05:06
17 2012-03-11T17:05:06
18 $
19
20 ## dtconv.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago <<EOF
3 2012-03-01T01:05:06
4 2012-03-01T02:12:34
5 2012-03-10T19:05:06
6 2012-03-10T20:05:06
7 2012-03-11T01:05:06
8 2012-03-11T03:05:06
9 2012-03-11T12:05:06
10 EOF
11 2012-03-01T07:05:06
12 2012-03-01T08:12:34
13 2012-03-11T01:05:06
14 2012-03-11T02:05:06
15 2012-03-11T07:05:06
16 2012-03-11T08:05:06
17 2012-03-11T17:05:06
18 $
19
20 ## dtconv.12.ctst ends here
+0
-9
test/dtconv.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago <<EOF
3 2012-03-11T02:05:06
4 EOF
5 2012-03-11T07:05:06
6 $
7
8 ## dtconv.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago <<EOF
3 2012-03-11T02:05:06
4 EOF
5 2012-03-11T07:05:06
6 $
7
8 ## dtconv.13.ctst ends here
+0
-7
test/dtconv.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -z Europe/Berlin '2012-03-01 12:00' -i '%F %H:%M' -f '%F %T'
3 2012-03-01 19:00:00
4 $
5
6 ## dtconv.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -z Europe/Berlin '2012-03-01 12:00' -i '%F %H:%M' -f '%F %T'
3 2012-03-01 19:00:00
4 $
5
6 ## dtconv.14.ctst ends here
+0
-11
test/dtconv.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --zone America/Chicago -S -i '%F %H:%M' -f '%T' <<EOF
3 now 2012-03-12 09:05
4 +1m 2012-03-12 09:06 later than last line
5 EOF
6 now 04:05:00
7 +1m 04:06:00 later than last line
8 $
9
10 ## dtconv.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --zone America/Chicago -S -i '%F %H:%M' -f '%T' <<EOF
3 now 2012-03-12 09:05
4 +1m 2012-03-12 09:06 later than last line
5 EOF
6 now 04:05:00
7 +1m 04:06:00 later than last line
8 $
9
10 ## dtconv.15.ctst ends here
+0
-11
test/dtconv.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --zone America/Chicago -S -f '%T' <<EOF
3 now 2012-03-12 09:05:00
4 +1m 2012-03-12 09:06:00 later than last line
5 EOF
6 now 04:05:00
7 +1m 04:06:00 later than last line
8 $
9
10 ## dtconv.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --zone America/Chicago -S -f '%T' <<EOF
3 now 2012-03-12 09:05:00
4 +1m 2012-03-12 09:06:00 later than last line
5 EOF
6 now 04:05:00
7 +1m 04:06:00 later than last line
8 $
9
10 ## dtconv.16.ctst ends here
+0
-11
test/dtconv.017.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -S -f '%T' <<EOF
3 now 2012-03-12 09:05:00
4 2012-03-12 09:06:00 later than last line
5 EOF
6 now 14:05:00
7 14:06:00 later than last line
8 $
9
10 ## dtconv.17.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -S -f '%T' <<EOF
3 now 2012-03-12 09:05:00
4 2012-03-12 09:06:00 later than last line
5 EOF
6 now 14:05:00
7 14:06:00 later than last line
8 $
9
10 ## dtconv.17.ctst ends here
+0
-13
test/dtconv.018.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -S -f '%T' <<EOF
3 now 2012-03-12 09:05:00
4 different format now:
5 2012-03-12T09:06:00
6 EOF
7 now 14:05:00
8 different format now:
9 14:06:00
10 $
11
12 ## dtconv.18.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -S -f '%T' <<EOF
3 now 2012-03-12 09:05:00
4 different format now:
5 2012-03-12T09:06:00
6 EOF
7 now 14:05:00
8 different format now:
9 14:06:00
10 $
11
12 ## dtconv.18.ctst ends here
+0
-7
test/dtconv.019.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone Europe/Berlin -z Europe/Berlin -i '%F %T.%N' -f '%T.%N' '2012-01-01 00:00:00.123456789'
3 00:00:00.123456789
4 $
5
6 ## dtconv.19.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone Europe/Berlin -z Europe/Berlin -i '%F %T.%N' -f '%T.%N' '2012-01-01 00:00:00.123456789'
3 00:00:00.123456789
4 $
5
6 ## dtconv.19.ctst ends here
+0
-9
test/dtconv.020.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone Europe/Berlin -z Europe/Berlin -i '%F %T.%N' -f '%T.%N' <<EOF
3 2010-01-01 10:00:00.723000000
4 EOF
5 10:00:00.723000000
6 $
7
8 ## dtconv.20.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone Europe/Berlin -z Europe/Berlin -i '%F %T.%N' -f '%T.%N' <<EOF
3 2010-01-01 10:00:00.723000000
4 EOF
5 10:00:00.723000000
6 $
7
8 ## dtconv.20.ctst ends here
+0
-6
test/dtconv.021.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ignore-output dconv now
3 $
4
5 ## dtconv.21.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ignore-output dconv now
3 $
4
5 ## dtconv.21.ctst ends here
+0
-7
test/dtconv.022.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -z Europe/Berlin '2012-03-01 00:00' -f '%F %T'
3 2012-03-01 07:00:00
4 $
5
6 ## dtconv.22.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone America/Chicago -z Europe/Berlin '2012-03-01 00:00' -f '%F %T'
3 2012-03-01 07:00:00
4 $
5
6 ## dtconv.22.ctst ends here
+0
-7
test/dtconv.023.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 07:00'
3 2012-03-01T07:00:00
4 $
5
6 ## dtconv.23.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 07:00'
3 2012-03-01T07:00:00
4 $
5
6 ## dtconv.23.ctst ends here
+0
-7
test/dtconv.024.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' -z TAI
3 2012-03-01T00:00:34
4 $
5
6 ## dtconv.24.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' -z TAI
3 2012-03-01T00:00:34
4 $
5
6 ## dtconv.24.ctst ends here
+0
-7
test/dtconv.025.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' -z UTC
3 2012-03-01T00:00:00
4 $
5
6 ## dtconv.25.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' -z UTC
3 2012-03-01T00:00:00
4 $
5
6 ## dtconv.25.ctst ends here
+0
-7
test/dtconv.026.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' -z GPS
3 2012-03-01T00:00:15
4 $
5
6 ## dtconv.26.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' -z GPS
3 2012-03-01T00:00:15
4 $
5
6 ## dtconv.26.ctst ends here
+0
-7
test/dtconv.027.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' --from-zone TAI
3 2012-02-29T23:59:26
4 $
5
6 ## dtconv.27.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' --from-zone TAI
3 2012-02-29T23:59:26
4 $
5
6 ## dtconv.27.ctst ends here
+0
-7
test/dtconv.028.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' --from-zone UTC
3 2012-03-01T00:00:00
4 $
5
6 ## dtconv.28.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' --from-zone UTC
3 2012-03-01T00:00:00
4 $
5
6 ## dtconv.28.ctst ends here
+0
-7
test/dtconv.029.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' --from-zone GPS
3 2012-02-29T23:59:45
4 $
5
6 ## dtconv.29.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2012-03-01 00:00:00' --from-zone GPS
3 2012-02-29T23:59:45
4 $
5
6 ## dtconv.29.ctst ends here
+0
-7
test/dtconv.030.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '1970-01-01 00:00:00' -z TAI
3 1970-01-01T00:00:10
4 $
5
6 ## dtconv.30.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '1970-01-01 00:00:00' -z TAI
3 1970-01-01T00:00:10
4 $
5
6 ## dtconv.30.ctst ends here
+0
-7
test/dtconv.031.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '1972-01-01 00:00:00' -z TAI
3 1972-01-01T00:00:10
4 $
5
6 ## dtconv.31.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '1972-01-01 00:00:00' -z TAI
3 1972-01-01T00:00:10
4 $
5
6 ## dtconv.31.ctst ends here
+0
-7
test/dtconv.032.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '1972-01-01 00:00:01' -z TAI
3 1972-01-01T00:00:11
4 $
5
6 ## dtconv.32.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '1972-01-01 00:00:01' -z TAI
3 1972-01-01T00:00:11
4 $
5
6 ## dtconv.32.ctst ends here
+0
-7
test/dtconv.033.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '1980-01-01 00:00:00' -z GPS
3 1980-01-01T00:00:00
4 $
5
6 ## dtconv.33.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '1980-01-01 00:00:00' -z GPS
3 1980-01-01T00:00:00
4 $
5
6 ## dtconv.33.ctst ends here
+0
-9
test/dtconv.034.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S -i '%b/%d %Y at %I:%M %P' <<EOF
3 Remember we meet on Mar/03 2012 at 02:30 pm
4 EOF
5 Remember we meet on 2012-03-03T14:30:00
6 $
7
8 ## dtconv.34.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S -i '%b/%d %Y at %I:%M %P' <<EOF
3 Remember we meet on Mar/03 2012 at 02:30 pm
4 EOF
5 Remember we meet on 2012-03-03T14:30:00
6 $
7
8 ## dtconv.34.ctst ends here
+0
-7
test/dtconv.035.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-03-01-Sun -i %Y-%m-%c-%a -f ymd
3 2012-03-04
4 $
5
6 ## dtconv.35.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-03-01-Sun -i %Y-%m-%c-%a -f ymd
3 2012-03-04
4 $
5
6 ## dtconv.35.ctst ends here
+0
-7
test/dtconv.036.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv @1234567890
3 2009-02-13T23:31:30
4 $
5
6 ## dtconv.36.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv @1234567890
3 2009-02-13T23:31:30
4 $
5
6 ## dtconv.36.ctst ends here
+0
-7
test/dtconv.037.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%s' 1234567890
3 2009-02-13T23:31:30
4 $
5
6 ## dtconv.37.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%s' 1234567890
3 2009-02-13T23:31:30
4 $
5
6 ## dtconv.37.ctst ends here
+0
-7
test/dtconv.038.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%s' @1234567890
3 2009-02-13T23:31:30
4 $
5
6 ## dtconv.38.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%s' @1234567890
3 2009-02-13T23:31:30
4 $
5
6 ## dtconv.38.ctst ends here
+0
-9
test/dtconv.039.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%s' <<EOF
3 1234567890
4 EOF
5 2009-02-13T23:31:30
6 $
7
8 ## dtconv.39.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%s' <<EOF
3 1234567890
4 EOF
5 2009-02-13T23:31:30
6 $
7
8 ## dtconv.39.ctst ends here
+0
-7
test/dtconv.040.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv @1234567890 -z Europe/Berlin
3 2009-02-14T00:31:30
4 $
5
6 ## dtconv.40.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv @1234567890 -z Europe/Berlin
3 2009-02-14T00:31:30
4 $
5
6 ## dtconv.40.ctst ends here
+0
-7
test/dtconv.041.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%s' 1234567890 -z Europe/Berlin
3 2009-02-14T00:31:30
4 $
5
6 ## dtconv.41.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%s' 1234567890 -z Europe/Berlin
3 2009-02-14T00:31:30
4 $
5
6 ## dtconv.41.ctst ends here
+0
-7
test/dtconv.042.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2011-01-01T00:00:00 -f julian
3 2455562.500000
4 $
5
6 ## dtconv.42.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2011-01-01T00:00:00 -f julian
3 2455562.500000
4 $
5
6 ## dtconv.42.ctst ends here
+0
-7
test/dtconv.043.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2011-01-01T12:00:00 -f julian
3 2455563.000000
4 $
5
6 ## dtconv.43.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2011-01-01T12:00:00 -f julian
3 2455563.000000
4 $
5
6 ## dtconv.43.ctst ends here
+0
-17
test/dtconv.044.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S -i '%a %b %d %T %Y' <<EOF
3 pablo tty8 Thu Nov 1 12:51:21 2012 still logged in
4 (unknown tty8 Thu Nov 1 12:50:57 2012 - Thu Nov 1 12:51:21 2012 (00:00)
5 pablo tty2 Thu Nov 1 12:50:39 2012 still logged in
6 pablo tty7 Thu Nov 1 12:49:45 2012 - Thu Nov 1 12:50:56 2012 (00:01)
7 (unknown tty7 Thu Nov 1 12:34:32 2012 - Thu Nov 1 12:49:45 2012 (00:15)
8 EOF
9 pablo tty8 2012-11-01T12:51:21 still logged in
10 (unknown tty8 2012-11-01T12:50:57 - 2012-11-01T12:51:21 (00:00)
11 pablo tty2 2012-11-01T12:50:39 still logged in
12 pablo tty7 2012-11-01T12:49:45 - 2012-11-01T12:50:56 (00:01)
13 (unknown tty7 2012-11-01T12:34:32 - 2012-11-01T12:49:45 (00:15)
14 $
15
16 ## dtconv.44.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S -i '%a %b %d %T %Y' <<EOF
3 pablo tty8 Thu Nov 1 12:51:21 2012 still logged in
4 (unknown tty8 Thu Nov 1 12:50:57 2012 - Thu Nov 1 12:51:21 2012 (00:00)
5 pablo tty2 Thu Nov 1 12:50:39 2012 still logged in
6 pablo tty7 Thu Nov 1 12:49:45 2012 - Thu Nov 1 12:50:56 2012 (00:01)
7 (unknown tty7 Thu Nov 1 12:34:32 2012 - Thu Nov 1 12:49:45 2012 (00:15)
8 EOF
9 pablo tty8 2012-11-01T12:51:21 still logged in
10 (unknown tty8 2012-11-01T12:50:57 - 2012-11-01T12:51:21 (00:00)
11 pablo tty2 2012-11-01T12:50:39 still logged in
12 pablo tty7 2012-11-01T12:49:45 - 2012-11-01T12:50:56 (00:01)
13 (unknown tty7 2012-11-01T12:34:32 - 2012-11-01T12:49:45 (00:15)
14 $
15
16 ## dtconv.44.ctst ends here
+0
-9
test/dtconv.045.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S --from-zone Europe/Berlin --zone UTC <<EOF
3 x 2012-11-01T12:51:21 2012-11-01T12:51:22
4 EOF
5 x 2012-11-01T11:51:21 2012-11-01T11:51:22
6 $
7
8 ## dtconv.45.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S --from-zone Europe/Berlin --zone UTC <<EOF
3 x 2012-11-01T12:51:21 2012-11-01T12:51:22
4 EOF
5 x 2012-11-01T11:51:21 2012-11-01T11:51:22
6 $
7
8 ## dtconv.45.ctst ends here
+0
-9
test/dtconv.046.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S --from-zone Europe/Berlin --zone UTC -f '%FT%T%Z' <<EOF
3 x 2012-11-01T12:51:21+01:00 2012-11-01T12:51:22+01:00
4 EOF
5 x 2012-11-01T11:51:21+00:00 2012-11-01T11:51:22+00:00
6 $
7
8 ## dtconv.46.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S --from-zone Europe/Berlin --zone UTC -f '%FT%T%Z' <<EOF
3 x 2012-11-01T12:51:21+01:00 2012-11-01T12:51:22+01:00
4 EOF
5 x 2012-11-01T11:51:21+00:00 2012-11-01T11:51:22+00:00
6 $
7
8 ## dtconv.46.ctst ends here
+0
-9
test/dtconv.047.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S --from-zone Europe/Berlin --zone UTC <<EOF
3 x 2012-11-01T12:51:21.000 2012-11-01T12:51:22.000
4 EOF
5 x 2012-11-01T11:51:21 2012-11-01T11:51:22
6 $
7
8 ## dtconv.47.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S --from-zone Europe/Berlin --zone UTC <<EOF
3 x 2012-11-01T12:51:21.000 2012-11-01T12:51:22.000
4 EOF
5 x 2012-11-01T11:51:21 2012-11-01T11:51:22
6 $
7
8 ## dtconv.47.ctst ends here
+0
-9
test/dtconv.048.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -S --from-zone Europe/Berlin --zone UTC -f '%FT%T%Z' <<EOF
3 x 2012-11-01T12:51:21.000+01:00 2012-11-01T12:51:22.000+01:00
4 EOF
5 x 2012-11-01T11:51:21+00:00 2012-11-01T11:51:22+00:00
6 $
7
8 ## dtconv.48.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -S --from-zone Europe/Berlin --zone UTC -f '%FT%T%Z' <<EOF
3 x 2012-11-01T12:51:21.000+01:00 2012-11-01T12:51:22.000+01:00
4 EOF
5 x 2012-11-01T11:51:21+00:00 2012-11-01T11:51:22+00:00
6 $
7
8 ## dtconv.48.ctst ends here
+0
-8
test/dtconv.049.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone Europe/Berlin '2014-05-08T12:34:56' --zone Europe/Berlin \
3 -f "%FT%T%Z"
4 2014-05-08T12:34:56+02:00
5 $
6
7 ## dconv.103.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone Europe/Berlin '2014-05-08T12:34:56' --zone Europe/Berlin \
3 -f "%FT%T%Z"
4 2014-05-08T12:34:56+02:00
5 $
6
7 ## dconv.103.ctst ends here
+0
-7
test/dtconv.050.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2014-05-08T12:34:56+02:00' --zone Europe/Berlin -f "%FT%T%Z"
3 2014-05-08T12:34:56+02:00
4 $
5
6 ## dconv.104.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2014-05-08T12:34:56+02:00' --zone Europe/Berlin -f "%FT%T%Z"
3 2014-05-08T12:34:56+02:00
4 $
5
6 ## dconv.104.ctst ends here
+0
-7
test/dtconv.051.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv '2014-01-08T12:34:56+02:00' --zone Europe/Berlin -f "%FT%T%Z"
3 2014-01-08T11:34:56+01:00
4 $
5
6 ## dconv.105.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv '2014-01-08T12:34:56+02:00' --zone Europe/Berlin -f "%FT%T%Z"
3 2014-01-08T11:34:56+01:00
4 $
5
6 ## dconv.105.ctst ends here
+0
-9
test/dtconv.052.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## actual zone specs take precedence over --from-zone
3 $ dconv --from-zone Europe/Berlin '2014-01-08T12:34:56+02:00' \
4 --zone Europe/Berlin -f "%FT%T%Z"
5 2014-01-08T11:34:56+01:00
6 $
7
8 ## dconv.106.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## actual zone specs take precedence over --from-zone
3 $ dconv --from-zone Europe/Berlin '2014-01-08T12:34:56+02:00' \
4 --zone Europe/Berlin -f "%FT%T%Z"
5 2014-01-08T11:34:56+01:00
6 $
7
8 ## dconv.106.ctst ends here
+0
-27
test/dtconv.053.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%FT%T.%N' -f '%FT%T.%N' <<EOF
3 2014-05-08T12:34:56.1
4 2014-05-08T12:34:56.12
5 2014-05-08T12:34:56.123
6 2014-05-08T12:34:56.1234
7 2014-05-08T12:34:56.12345
8 2014-05-08T12:34:56.123456
9 2014-05-08T12:34:56.1234567
10 2014-05-08T12:34:56.12345678
11 2014-05-08T12:34:56.123456789
12 2014-05-08T12:34:56.1234567890
13 EOF
14 2014-05-08T12:34:56.100000000
15 2014-05-08T12:34:56.120000000
16 2014-05-08T12:34:56.123000000
17 2014-05-08T12:34:56.123400000
18 2014-05-08T12:34:56.123450000
19 2014-05-08T12:34:56.123456000
20 2014-05-08T12:34:56.123456700
21 2014-05-08T12:34:56.123456780
22 2014-05-08T12:34:56.123456789
23 2014-05-08T12:34:56.123456789
24 $
25
26 ## dconv.053.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%FT%T.%N' -f '%FT%T.%N' <<EOF
3 2014-05-08T12:34:56.1
4 2014-05-08T12:34:56.12
5 2014-05-08T12:34:56.123
6 2014-05-08T12:34:56.1234
7 2014-05-08T12:34:56.12345
8 2014-05-08T12:34:56.123456
9 2014-05-08T12:34:56.1234567
10 2014-05-08T12:34:56.12345678
11 2014-05-08T12:34:56.123456789
12 2014-05-08T12:34:56.1234567890
13 EOF
14 2014-05-08T12:34:56.100000000
15 2014-05-08T12:34:56.120000000
16 2014-05-08T12:34:56.123000000
17 2014-05-08T12:34:56.123400000
18 2014-05-08T12:34:56.123450000
19 2014-05-08T12:34:56.123456000
20 2014-05-08T12:34:56.123456700
21 2014-05-08T12:34:56.123456780
22 2014-05-08T12:34:56.123456789
23 2014-05-08T12:34:56.123456789
24 $
25
26 ## dconv.053.ctst ends here
+0
-27
test/dtconv.054.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%FT%T.%N' -f '%FT%T.%N' <<EOF
3 2014-05-08T12:34:56.01
4 2014-05-08T12:34:56.012
5 2014-05-08T12:34:56.0123
6 2014-05-08T12:34:56.01234
7 2014-05-08T12:34:56.012345
8 2014-05-08T12:34:56.0123456
9 2014-05-08T12:34:56.01234567
10 2014-05-08T12:34:56.012345678
11 2014-05-08T12:34:56.0123456789
12 2014-05-08T12:34:56.01234567890
13 EOF
14 2014-05-08T12:34:56.010000000
15 2014-05-08T12:34:56.012000000
16 2014-05-08T12:34:56.012300000
17 2014-05-08T12:34:56.012340000
18 2014-05-08T12:34:56.012345000
19 2014-05-08T12:34:56.012345600
20 2014-05-08T12:34:56.012345670
21 2014-05-08T12:34:56.012345678
22 2014-05-08T12:34:56.012345678
23 2014-05-08T12:34:56.012345678
24 $
25
26 ## dconv.054.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%FT%T.%N' -f '%FT%T.%N' <<EOF
3 2014-05-08T12:34:56.01
4 2014-05-08T12:34:56.012
5 2014-05-08T12:34:56.0123
6 2014-05-08T12:34:56.01234
7 2014-05-08T12:34:56.012345
8 2014-05-08T12:34:56.0123456
9 2014-05-08T12:34:56.01234567
10 2014-05-08T12:34:56.012345678
11 2014-05-08T12:34:56.0123456789
12 2014-05-08T12:34:56.01234567890
13 EOF
14 2014-05-08T12:34:56.010000000
15 2014-05-08T12:34:56.012000000
16 2014-05-08T12:34:56.012300000
17 2014-05-08T12:34:56.012340000
18 2014-05-08T12:34:56.012345000
19 2014-05-08T12:34:56.012345600
20 2014-05-08T12:34:56.012345670
21 2014-05-08T12:34:56.012345678
22 2014-05-08T12:34:56.012345678
23 2014-05-08T12:34:56.012345678
24 $
25
26 ## dconv.054.ctst ends here
+0
-8
test/dtconv.055.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -z Australia/Sydney --from-zone=Australia/Sydney 1408226870 -i %rs \
3 -f "%A %b %dth %H:%M:%S %Y"
4 Saturday Aug 16th 22:07:50 2014
5 $
6
7 ## dconv.055.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -z Australia/Sydney --from-zone=Australia/Sydney 1408226870 -i %rs \
3 -f "%A %b %dth %H:%M:%S %Y"
4 Saturday Aug 16th 22:07:50 2014
5 $
6
7 ## dconv.055.ctst ends here
+0
-8
test/dtconv.056.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -z Australia/Sydney --from-zone=Australia/Sydney @1408226870 \
3 -f "%a %b %dth %H:%M:%S %Y"
4 Sat Aug 16th 22:07:50 2014
5 $
6
7 ## dconv.056.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -z Australia/Sydney --from-zone=Australia/Sydney @1408226870 \
3 -f "%a %b %dth %H:%M:%S %Y"
4 Sat Aug 16th 22:07:50 2014
5 $
6
7 ## dconv.056.ctst ends here
+0
-7
test/dtconv.057.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn 157730.0 -f "%a %b %dth %H:%M:%S %Y"
3 Thu Aug 21st 00:00:00 2014
4 $
5
6 ## dconv.057.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn 157730.0 -f "%a %b %dth %H:%M:%S %Y"
3 Thu Aug 21st 00:00:00 2014
4 $
5
6 ## dconv.057.ctst ends here
+0
-13
test/dtconv.058.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn -f "%a %b %dth %H:%M:%S %Y" <<EOF
3 157730.0
4 157729.0
5 157732.5
6 EOF
7 Thu Aug 21st 00:00:00 2014
8 Wed Aug 20th 00:00:00 2014
9 Sat Aug 23rd 12:00:00 2014
10 $
11
12 ## dconv.058.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn -f "%a %b %dth %H:%M:%S %Y" <<EOF
3 157730.0
4 157729.0
5 157732.5
6 EOF
7 Thu Aug 21st 00:00:00 2014
8 Wed Aug 20th 00:00:00 2014
9 Sat Aug 23rd 12:00:00 2014
10 $
11
12 ## dconv.058.ctst ends here
+0
-13
test/dtconv.059.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn <<EOF
3 157730.0
4 157729.0
5 157732.5
6 EOF
7 157730.000000
8 157729.000000
9 157732.500000
10 $
11
12 ## dconv.059.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn <<EOF
3 157730.0
4 157729.0
5 157732.5
6 EOF
7 157730.000000
8 157729.000000
9 157732.500000
10 $
11
12 ## dconv.059.ctst ends here
+0
-13
test/dtconv.060.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i ldn -f ymd <<EOF
3 157730
4 157729
5 157732
6 EOF
7 2014-08-21
8 2014-08-20
9 2014-08-23
10 $
11
12 ## dconv.060.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i ldn -f ymd <<EOF
3 157730
4 157729
5 157732
6 EOF
7 2014-08-21
8 2014-08-20
9 2014-08-23
10 $
11
12 ## dconv.060.ctst ends here
+0
-12
test/dtconv.061.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ ?2 dconv 2013-02-29T12:00:00
4 2013-02-28T12:00:00
5 $ ?2 dconv 2013-09-31T00:00:00
6 2013-09-30T00:00:00
7 $ ?2 dconv 2012-02-30T23:59:60
8 2012-02-29T23:59:60
9 $
10
11 ## dtconv.061.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ ?2 dconv 2013-02-29T12:00:00
4 2013-02-28T12:00:00
5 $ ?2 dconv 2013-09-31T00:00:00
6 2013-09-30T00:00:00
7 $ ?2 dconv 2012-02-30T23:59:60
8 2012-02-29T23:59:60
9 $
10
11 ## dtconv.061.ctst ends here
+0
-13
test/dtconv.062.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates and reports no error back
3 $ dconv -q 2013-02-29T12:34:56
4 2013-02-28T12:34:56
5 $ dconv -q 2013-09-31T12:34:56
6 2013-09-30T12:34:56
7 $ dconv -q 2012-02-30\ 12:34:56
8 2012-02-29T12:34:56
9 $ dconv -q 2012-03-32\ 12:34:56
10 $
11
12 ## dtconv.062.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates and reports no error back
3 $ dconv -q 2013-02-29T12:34:56
4 2013-02-28T12:34:56
5 $ dconv -q 2013-09-31T12:34:56
6 2013-09-30T12:34:56
7 $ dconv -q 2012-02-30\ 12:34:56
8 2012-02-29T12:34:56
9 $ dconv -q 2012-03-32\ 12:34:56
10 $
11
12 ## dtconv.062.ctst ends here
+0
-18
test/dtconv.063.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ ?2 dconv <<EOF
4 2013-02-29 12:34:56
5 EOF
6 2013-02-28T12:34:56
7 $ ?2 dconv <<EOF
8 2013-09-31T12:34:56
9 EOF
10 2013-09-30T12:34:56
11 $ ?2 dconv <<EOF
12 2012-02-30 12:34:56
13 EOF
14 2012-02-29T12:34:56
15 $
16
17 ## dtconv.063.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ ?2 dconv <<EOF
4 2013-02-29 12:34:56
5 EOF
6 2013-02-28T12:34:56
7 $ ?2 dconv <<EOF
8 2013-09-31T12:34:56
9 EOF
10 2013-09-30T12:34:56
11 $ ?2 dconv <<EOF
12 2012-02-30 12:34:56
13 EOF
14 2012-02-29T12:34:56
15 $
16
17 ## dtconv.063.ctst ends here
+0
-22
test/dtconv.064.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates and reports no error back
3 $ dconv -q <<EOF
4 2013-02-29T12:34:56
5 EOF
6 2013-02-28T12:34:56
7 $ dconv -q <<EOF
8 2013-09-31 12:34:56
9 EOF
10 2013-09-30T12:34:56
11 $ dconv -q <<EOF
12 2012-02-30T12:34:56
13 EOF
14 2012-02-29T12:34:56
15 $ dconv -q <<EOF
16 2012-03-32 12:34:56
17 EOF
18 12:34:56
19 $
20
21 ## dtconv.064.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates and reports no error back
3 $ dconv -q <<EOF
4 2013-02-29T12:34:56
5 EOF
6 2013-02-28T12:34:56
7 $ dconv -q <<EOF
8 2013-09-31 12:34:56
9 EOF
10 2013-09-30T12:34:56
11 $ dconv -q <<EOF
12 2012-02-30T12:34:56
13 EOF
14 2012-02-29T12:34:56
15 $ dconv -q <<EOF
16 2012-03-32 12:34:56
17 EOF
18 12:34:56
19 $
20
21 ## dtconv.064.ctst ends here
+0
-8
test/dtconv.065.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ dconv 2014-10-06T10:13:00 -f '%FT%T%Z' --from-zone 'Europe/Berlin'
4 2014-10-06T08:13:00+00:00
5 $
6
7 ## dtconv.065.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ dconv 2014-10-06T10:13:00 -f '%FT%T%Z' --from-zone 'Europe/Berlin'
4 2014-10-06T08:13:00+00:00
5 $
6
7 ## dtconv.065.ctst ends here
+0
-8
test/dtconv.066.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ dconv 2014-10-06T10:13:00+01:00 -f '%FT%T%Z' --from-zone 'Europe/Berlin' -z 'Europe/London'
4 2014-10-06T10:13:00+01:00
5 $
6
7 ## dtconv.066.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ dconv 2014-10-06T10:13:00+01:00 -f '%FT%T%Z' --from-zone 'Europe/Berlin' -z 'Europe/London'
4 2014-10-06T10:13:00+01:00
5 $
6
7 ## dtconv.066.ctst ends here
+0
-8
test/dtconv.067.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ dconv 2014-10-06T10:13:00+01:00 -f '%FT%T%Z' -z 'Europe/London'
4 2014-10-06T10:13:00+01:00
5 $
6
7 ## dtconv.067.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ dconv 2014-10-06T10:13:00+01:00 -f '%FT%T%Z' -z 'Europe/London'
4 2014-10-06T10:13:00+01:00
5 $
6
7 ## dtconv.067.ctst ends here
+0
-8
test/dtconv.068.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ dconv 2014-10-06T10:13:00 -f '%FT%T%Z' -z 'Europe/London'
4 2014-10-06T11:13:00+01:00
5 $
6
7 ## dtconv.068.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## dconv fixes up dates
3 $ dconv 2014-10-06T10:13:00 -f '%FT%T%Z' -z 'Europe/London'
4 2014-10-06T11:13:00+01:00
5 $
6
7 ## dtconv.068.ctst ends here
+0
-8
test/dtconv.069.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## do not interpret dash as tz indicator
3 $ dconv 2014-10-06T10:13:00-FOO --from-zone 'Europe/Berlin' -z 'Europe/London' -f '%FT%T%Z'
4 2014-10-06T09:13:00+01:00
5 $
6
7 ## dtconv.069.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## do not interpret dash as tz indicator
3 $ dconv 2014-10-06T10:13:00-FOO --from-zone 'Europe/Berlin' -z 'Europe/London' -f '%FT%T%Z'
4 2014-10-06T09:13:00+01:00
5 $
6
7 ## dtconv.069.ctst ends here
+0
-8
test/dtconv.070.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## do not interpret dash as tz indicator
3 $ dconv 2014-10-06T10:13:00-6BAR --from-zone 'Europe/Berlin' -z 'Europe/London' -f '%FT%T%Z'
4 2014-10-06T09:13:00+01:00
5 $
6
7 ## dtconv.070.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## do not interpret dash as tz indicator
3 $ dconv 2014-10-06T10:13:00-6BAR --from-zone 'Europe/Berlin' -z 'Europe/London' -f '%FT%T%Z'
4 2014-10-06T09:13:00+01:00
5 $
6
7 ## dtconv.070.ctst ends here
+0
-7
test/dtconv.071.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## mind the -1 when reading unix stamps
3 $ ! dconv @X16o
4 $
5
6 ## dtconv.071.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## mind the -1 when reading unix stamps
3 $ ! dconv @X16o
4 $
5
6 ## dtconv.071.ctst ends here
+0
-7
test/dtconv.072.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## mind the -1 when reading unix stamps
3 $ ! dconv -i %s /16s
4 $
5
6 ## dtconv.071.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## mind the -1 when reading unix stamps
3 $ ! dconv -i %s /16s
4 $
5
6 ## dtconv.071.ctst ends here
3131
3232 /* prep the duration */
3333 dur.d = dt_make_ddur(DT_DURD, 1);
34 dur.t = dt_t_initialiser();
34 dur.t = (struct dt_t_s){DT_TUNK};
3535
3636 /* the actual addition */
3737 d = dt_dtadd(d, dur);
122122
123123 /* prep the duration */
124124 dur.d = dt_make_ddur(DT_DURD, 1);
125 dur.t = dt_t_initialiser();
125 dur.t = (struct dt_t_s){DT_TUNK};
126126
127127 /* the actual addition */
128128 d = dt_dtadd(d, dur);
5656 struct dt_dt_s chk;
5757
5858 /* conv, then check */
59 t = dt_dt_initialiser();
59 t = (struct dt_dt_s){DT_UNK};
6060 t.sandwich = 1;
6161 t.d.typ = DT_YMD;
6262 t.d.ymd.y = 2012;
6868 t.t.hms.m = 59;
6969 t.t.hms.s = 59;
7070
71 chk = dt_dt_initialiser();
71 chk = (struct dt_dt_s){DT_UNK};
7272 chk.typ = DT_SEXY;
7373 chk.sexy = 1341100799;
7474
7777 }
7878
7979 /* conv, then check */
80 t = dt_dt_initialiser();
80 t = (struct dt_dt_s){DT_UNK};
8181 t.sandwich = 1;
8282 t.d.typ = DT_YMD;
8383 t.d.ymd.y = 2012;
8989 t.t.hms.m = 00;
9090 t.t.hms.s = 00;
9191
92 chk = dt_dt_initialiser();
92 chk = (struct dt_dt_s){DT_UNK};
9393 chk.typ = DT_SEXY;
9494 chk.sexy = 1341100800;
9595
9999
100100 #if defined WITH_LEAP_SECONDS
101101 /* conv, then check */
102 t = dt_dt_initialiser();
102 t = (struct dt_dt_s){DT_UNK};
103103 t.sandwich = 1;
104104 t.d.typ = DT_YMD;
105105 t.d.ymd.y = 2012;
111111 t.t.hms.m = 59;
112112 t.t.hms.s = 59;
113113
114 chk = dt_dt_initialiser();
114 chk = (struct dt_dt_s){DT_UNK};
115115 chk.typ = DT_SEXYTAI;
116116 chk.sexy = 1341100799 + 34;
117117
120120 }
121121
122122 /* conv, then check */
123 t = dt_dt_initialiser();
123 t = (struct dt_dt_s){DT_UNK};
124124 t.sandwich = 1;
125125 t.d.typ = DT_YMD;
126126 t.d.ymd.y = 2012;
132132 t.t.hms.m = 00;
133133 t.t.hms.s = 00;
134134
135 chk = dt_dt_initialiser();
135 chk = (struct dt_dt_s){DT_UNK};
136136 chk.typ = DT_SEXYTAI;
137137 chk.sexy = 1341100800 + 35;
138138
+0
-7
test/dtdiff.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:04:00 2012-03-02T10:14:00
3 600s
4 $
5
6 ## dtdiff.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:04:00 2012-03-02T10:14:00
3 600s
4 $
5
6 ## dtdiff.1.ctst ends here
+0
-7
test/dtdiff.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:04:00 2012-03-02T10:14:00 -f '%S'
3 600
4 $
5
6 ## dtdiff.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:04:00 2012-03-02T10:14:00 -f '%S'
3 600
4 $
5
6 ## dtdiff.2.ctst ends here
+0
-7
test/dtdiff.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:04:00 2012-03-02T10:14:00 -f '%M min'
3 10 min
4 $
5
6 ## dtdiff.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:04:00 2012-03-02T10:14:00 -f '%M min'
3 10 min
4 $
5
6 ## dtdiff.3.ctst ends here
+0
-7
test/dtdiff.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:14:00 2012-03-02T10:04:00
3 -600s
4 $
5
6 ## dtdiff.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:14:00 2012-03-02T10:04:00
3 -600s
4 $
5
6 ## dtdiff.4.ctst ends here
+0
-7
test/dtdiff.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:14:00 2012-03-03
3 1
4 $
5
6 ## dtdiff.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02T10:14:00 2012-03-03
3 1
4 $
5
6 ## dtdiff.5.ctst ends here
+0
-7
test/dtdiff.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02 2012-03-03T10:14:00 -f '%F'
3 1d
4 $
5
6 ## dtdiff.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-02 2012-03-03T10:14:00 -f '%F'
3 1d
4 $
5
6 ## dtdiff.6.ctst ends here
+0
-7
test/dtdiff.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-03T10:14:00 2012-03-02
3 -1
4 $
5
6 ## dtdiff.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-03T10:14:00 2012-03-02
3 -1
4 $
5
6 ## dtdiff.7.ctst ends here
+0
-7
test/dtdiff.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-03 2012-03-02T10:14:00 -f '%F'
3 -1d
4 $
5
6 ## dtdiff.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-03 2012-03-02T10:14:00 -f '%F'
3 -1d
4 $
5
6 ## dtdiff.8.ctst ends here
+0
-6
test/dtdiff.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 ddiff 12:14:00 2012-03-02T10:14:00
3 $
4
5 ## dtdiff.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 ddiff 12:14:00 2012-03-02T10:14:00
3 $
4
5 ## dtdiff.9.ctst ends here
+0
-6
test/dtdiff.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 ddiff 2012-03-02 10:14:00
3 $
4
5 ## dtdiff.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 ddiff 2012-03-02 10:14:00
3 $
4
5 ## dtdiff.10.ctst ends here
+0
-7
test/dtdiff.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-01T12:17:00 2012-03-02T14:00:00
3 92580s
4 $
5
6 ## dtdiff.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-01T12:17:00 2012-03-02T14:00:00
3 92580s
4 $
5
6 ## dtdiff.11.ctst ends here
+0
-7
test/dtdiff.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-01T12:17:00 2012-03-02T14:00:00 -f '%d days and %S seconds'
3 1 days and 6180 seconds
4 $
5
6 ## dtdiff.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-01T12:17:00 2012-03-02T14:00:00 -f '%d days and %S seconds'
3 1 days and 6180 seconds
4 $
5
6 ## dtdiff.12.ctst ends here
+0
-7
test/dtdiff.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-25T01:45:00 2012-03-25T03:15:00 --from-zone Europe/Berlin
3 1800s
4 $
5
6 ## dtdiff.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-25T01:45:00 2012-03-25T03:15:00 --from-zone Europe/Berlin
3 1800s
4 $
5
6 ## dtdiff.13.ctst ends here
+0
-7
test/dtdiff.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-03-25T01:45:00 2012-03-25T02:15:00 --from-zone Europe/Berlin
3 1800s
4 $
5
6 ## dtdiff.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-03-25T01:45:00 2012-03-25T02:15:00 --from-zone Europe/Berlin
3 1800s
4 $
5
6 ## dtdiff.14.ctst ends here
+0
-7
test/dtdiff.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-10-28T01:45:00 2012-10-28T02:15:00 --from-zone Europe/Berlin
3 5400s
4 $
5
6 ## dtdiff.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-10-28T01:45:00 2012-10-28T02:15:00 --from-zone Europe/Berlin
3 5400s
4 $
5
6 ## dtdiff.15.ctst ends here
+0
-7
test/dtdiff.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2012-10-28T01:45:00 2012-10-28T03:15:00 --from-zone Europe/Berlin
3 9000s
4 $
5
6 ## dtdiff.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2012-10-28T01:45:00 2012-10-28T03:15:00 --from-zone Europe/Berlin
3 9000s
4 $
5
6 ## dtdiff.16.ctst ends here
+0
-7
test/dtdiff.017.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-07-01 00:00:00'
3 60s
4 $
5
6 ## dtdiff.17.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-07-01 00:00:00'
3 60s
4 $
5
6 ## dtdiff.17.ctst ends here
+0
-7
test/dtdiff.018.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-06-30 23:59:60'
3 60s
4 $
5
6 ## dtdiff.18.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-06-30 23:59:60'
3 60s
4 $
5
6 ## dtdiff.18.ctst ends here
+0
-7
test/dtdiff.019.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-07-01 00:00:00' -f '%rSs'
3 61s
4 $
5
6 ## dtdiff.19.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-07-01 00:00:00' -f '%rSs'
3 61s
4 $
5
6 ## dtdiff.19.ctst ends here
+0
-7
test/dtdiff.020.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-06-30 23:59:60' -f '%rSs'
3 60s
4 $
5
6 ## dtdiff.20.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-06-30 23:59:60' -f '%rSs'
3 60s
4 $
5
6 ## dtdiff.20.ctst ends here
+0
-7
test/dtdiff.021.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-07-01 00:00:00' -f '%rT'
3 61s
4 $
5
6 ## dtdiff.21.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-07-01 00:00:00' -f '%rT'
3 61s
4 $
5
6 ## dtdiff.21.ctst ends here
+0
-7
test/dtdiff.022.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-06-30 23:59:60' -f '%rT'
3 60s
4 $
5
6 ## dtdiff.22.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-06-30 23:59:00' '2012-06-30 23:59:60' -f '%rT'
3 60s
4 $
5
6 ## dtdiff.22.ctst ends here
+0
-7
test/dtdiff.023.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-05-01 14:00:00' '2012-05-10 15:00:00' -f '%db'
3 7b
4 $
5
6 ## dtdiff.23.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-05-01 14:00:00' '2012-05-10 15:00:00' -f '%db'
3 7b
4 $
5
6 ## dtdiff.23.ctst ends here
+0
-7
test/dtdiff.024.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-05-30 14:00:00' '2012-05-18 17:00:00' -f '%db'
3 -7b
4 $
5
6 ## dtdiff.24.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-05-30 14:00:00' '2012-05-18 17:00:00' -f '%db'
3 -7b
4 $
5
6 ## dtdiff.24.ctst ends here
+0
-7
test/dtdiff.025.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-05-30 14:00:00' '2012-05-18 17:00:00' -f 'bizsi'
3 -7bT21:00:00
4 $
5
6 ## dtdiff.25.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-05-30 14:00:00' '2012-05-18 17:00:00' -f 'bizsi'
3 -7bT21:00:00
4 $
5
6 ## dtdiff.25.ctst ends here
+0
-7
test/dtdiff.026.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff '2012-05-01 14:00:00' '2012-05-10 15:00:00' -f 'bizsi'
3 7bT01:00:00
4 $
5
6 ## dtdiff.26.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff '2012-05-01 14:00:00' '2012-05-10 15:00:00' -f 'bizsi'
3 7bT01:00:00
4 $
5
6 ## dtdiff.26.ctst ends here
+0
-7
test/dtdiff.027.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff --from-zone Australia/Sydney 2013-04-15T08:30:00 2013-04-15T09:00:00
3 1800s
4 $
5
6 ## dtdiff.27.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff --from-zone Australia/Sydney 2013-04-15T08:30:00 2013-04-15T09:00:00
3 1800s
4 $
5
6 ## dtdiff.27.ctst ends here
+0
-9
test/dtdiff.028.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff --from-zone Australia/Sydney 2013-04-15T08:30:00 <<EOF
3 2013-04-15T09:00:00
4 EOF
5 1800s
6 $
7
8 ## dtdiff.28.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff --from-zone Australia/Sydney 2013-04-15T08:30:00 <<EOF
3 2013-04-15T09:00:00
4 EOF
5 1800s
6 $
7
8 ## dtdiff.28.ctst ends here
+0
-7
test/dtdiff.029.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff --from-zone Australia/Sydney 2013-04-15T08:30:00 2013-04-14T23:00:00+0000
3 1800s
4 $
5
6 ## dtdiff.29.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff --from-zone Australia/Sydney 2013-04-15T08:30:00 2013-04-14T23:00:00+0000
3 1800s
4 $
5
6 ## dtdiff.29.ctst ends here
+0
-9
test/dtdiff.030.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff --from-zone Australia/Sydney 2013-04-15T08:30:00 -i '%FT%T%Z' <<EOF
3 2013-04-14T23:00:00+0000
4 EOF
5 1800s
6 $
7
8 ## dtdiff.30.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff --from-zone Australia/Sydney 2013-04-15T08:30:00 -i '%FT%T%Z' <<EOF
3 2013-04-14T23:00:00+0000
4 EOF
5 1800s
6 $
7
8 ## dtdiff.30.ctst ends here
+0
-7
test/dtdiff.031.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00+1000 2013-04-14T23:00:00+0000
3 1800s
4 $
5
6 ## dtdiff.31.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00+1000 2013-04-14T23:00:00+0000
3 1800s
4 $
5
6 ## dtdiff.31.ctst ends here
+0
-9
test/dtdiff.032.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00+1000 <<EOF
3 2013-04-14T23:00:00+0000
4 EOF
5 1800s
6 $
7
8 ## dtdiff.32.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00+1000 <<EOF
3 2013-04-14T23:00:00+0000
4 EOF
5 1800s
6 $
7
8 ## dtdiff.32.ctst ends here
+0
-7
test/dtdiff.033.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00 2013-04-16T23:00:00 -f '%Y-%0d'
3 0-001
4 $
5
6 ## dtdiff.33.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00 2013-04-16T23:00:00 -f '%Y-%0d'
3 0-001
4 $
5
6 ## dtdiff.33.ctst ends here
+0
-7
test/dtdiff.034.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00 2013-04-16T23:00:00 -f '%H:%0M:%0S'
3 38:30:00
4 $
5
6 ## dtdiff.34.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00 2013-04-16T23:00:00 -f '%H:%0M:%0S'
3 38:30:00
4 $
5
6 ## dtdiff.34.ctst ends here
+0
-7
test/dtdiff.035.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00 2013-04-16T23:00:00 -f '%Y-% d'
3 0- 1
4 $
5
6 ## dtdiff.35.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00 2013-04-16T23:00:00 -f '%Y-% d'
3 0- 1
4 $
5
6 ## dtdiff.35.ctst ends here
+0
-7
test/dtdiff.036.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00 2013-04-16T23:00:00 -f '% H:% M:% S'
3 38:30: 0
4 $
5
6 ## dtdiff.36.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2013-04-15T08:30:00 2013-04-16T23:00:00 -f '% H:% M:% S'
3 38:30: 0
4 $
5
6 ## dtdiff.36.ctst ends here
+0
-9
test/dtdiff.037.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7T00:00 2009-W01-07T12:00 -f '%Y %w %d'
3 0 1 0
4 $ ddiff 2008-W52-7T00:00 2009-W01-07T12:00 -f '%Y %w %d %H'
5 0 1 0 12
6 $
7
8 ## dtdiff.037.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7T00:00 2009-W01-07T12:00 -f '%Y %w %d'
3 0 1 0
4 $ ddiff 2008-W52-7T00:00 2009-W01-07T12:00 -f '%Y %w %d %H'
5 0 1 0 12
6 $
7
8 ## dtdiff.037.ctst ends here
+0
-7
test/dtdiff.038.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7T00:00 2009-W01-07T12:00 -f '%Y %w %H'
3 0 1 12
4 $
5
6 ## dtdiff.038.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-7T00:00 2009-W01-07T12:00 -f '%Y %w %H'
3 0 1 12
4 $
5
6 ## dtdiff.038.ctst ends here
+0
-9
test/dtdiff.039.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-1T00:00 2009-W01-07T12:00 -f '%Y %w %d'
3 0 1 6
4 $ ddiff 2008-W52-1T00:00 2009-W01-07T12:00 -f '%Y %w %d %H'
5 0 1 6 12
6 $
7
8 ## dtdiff.039.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-1T00:00 2009-W01-07T12:00 -f '%Y %w %d'
3 0 1 6
4 $ ddiff 2008-W52-1T00:00 2009-W01-07T12:00 -f '%Y %w %d %H'
5 0 1 6 12
6 $
7
8 ## dtdiff.039.ctst ends here
+0
-7
test/dtdiff.040.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-1T00:00 2009-W01-07T12:00 -f '%Y %w %H'
3 0 1 156
4 $
5
6 ## dtdiff.040.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2008-W52-1T00:00 2009-W01-07T12:00 -f '%Y %w %H'
3 0 1 156
4 $
5
6 ## dtdiff.040.ctst ends here
+0
-8
test/dtdiff.041.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## read stamps
3 $ ddiff 2012-03-02T10:04:00 @1330683240
4 600s
5 $
6
7 ## dtdiff.041.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## read stamps
3 $ ddiff 2012-03-02T10:04:00 @1330683240
4 600s
5 $
6
7 ## dtdiff.041.ctst ends here
+0
-8
test/dtdiff.042.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## read stamps
3 $ ddiff @1330683240 2012-03-02T10:04:00
4 -600s
5 $
6
7 ## dtdiff.042.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## read stamps
3 $ ddiff @1330683240 2012-03-02T10:04:00
4 -600s
5 $
6
7 ## dtdiff.042.ctst ends here
+0
-8
test/dtdiff.043.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## read stamps
3 $ ddiff -i '%s' 1330682640 1330683240
4 600s
5 $
6
7 ## dtdiff.043.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## read stamps
3 $ ddiff -i '%s' 1330682640 1330683240
4 600s
5 $
6
7 ## dtdiff.043.ctst ends here
+0
-8
test/dtdiff.044.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## read stamps
3 $ ddiff -i '%s' 1330683240 1330682640
4 -600s
5 $
6
7 ## dtdiff.044.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## read stamps
3 $ ddiff -i '%s' 1330683240 1330682640
4 -600s
5 $
6
7 ## dtdiff.044.ctst ends here
+0
-7
test/dtdiff.045.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 ddiff 2012-02-30T10:04:00 2012-02-31T10:14:00
3 600s
4 $
5
6 ## dtdiff.045.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 ddiff 2012-02-30T10:04:00 2012-02-31T10:14:00
3 600s
4 $
5
6 ## dtdiff.045.ctst ends here
+0
-9
test/dtdiff.046.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 ddiff 2012-02-30T10:04:00 <<EOF
3 2012-02-31T10:14:00
4 EOF
5 600s
6 $
7
8 ## dtdiff.045.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 ddiff 2012-02-30T10:04:00 <<EOF
3 2012-02-31T10:14:00
4 EOF
5 600s
6 $
7
8 ## dtdiff.045.ctst ends here
+0
-11
test/dtdiff.047.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff -i "%Y%m%d%H%M%S" -f "%d %S" 20150407075744 20150616130400
3 70 18376
4 $ ddiff -i "%Y%m%d%H%M%S" -f "%S" 20150407075744 20150616130400
5 6066376
6 $ ddiff -i "%Y%m%d%H%M%S" -f "%d" 20150407075744 20150616130400
7 70
8 $
9
10 ## dtdiff.047.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff -i "%Y%m%d%H%M%S" -f "%d %S" 20150407075744 20150616130400
3 70 18376
4 $ ddiff -i "%Y%m%d%H%M%S" -f "%S" 20150407075744 20150616130400
5 6066376
6 $ ddiff -i "%Y%m%d%H%M%S" -f "%d" 20150407075744 20150616130400
7 70
8 $
9
10 ## dtdiff.047.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff -f '%Y years, %m months, %d days, %H:%0M:%0S' 2020-04-14T00:00:00 2020-04-17T06:47:19
3 0 years, 0 months, 3 days, 6:47:19
4 $ ddiff -f '%d days, %H:%0M:%0S' 2020-04-14T00:00:00 2020-04-17T06:47:19
5 3 days, 6:47:19
6 $ ddiff -f '%Y years, %m months, %d days, %H:%0M:%0S' 2020-04-17T06:47:19+00:00 2020-04-14T00:00:00+00:00
7 -0 years, 0 months, 3 days, 6:47:19
8 $ ddiff -f '%d days, %H:%0M:%0S' 2020-04-17T06:47:19+00:00 2020-04-14T00:00:00+00:00
9 -3 days, 6:47:19
10 $
11
12 ## dtdiff.048.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff -f '%d %H:%0M:%0S' 2020-04-16T00:00:00 2020-04-17T06:47:19
3 1 6:47:19
4 $ ddiff -f '%m %d %H:%0M:%0S' 2020-04-16T00:00:00 2020-04-17T06:47:19
5 0 1 6:47:19
6 $ ddiff -f '%d %H:%0M:%0S' 2020-04-17T06:47:19 2020-04-16T00:00:00
7 -1 6:47:19
8 $ ddiff -f '%m %d %H:%0M:%0S' 2020-04-17T06:47:19 2020-04-16T00:00:00
9 -0 1 6:47:19
10 $
11
12 ## dtdiff.049.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff -f '%H:%0M:%0S' 2020-04-16T07:00:00 2020-04-16T06:47:19
3 -0:12:41
4 $ ddiff -f '%d %H:%0M:%0S' 2020-04-16T07:00:00 2020-04-16T06:47:19
5 -0 0:12:41
6 $ ddiff -f '%H:%0M:%0S' 2020-04-16T07:00:00 2020-04-15T06:47:19
7 -24:12:41
8 $ ddiff -f '%d %H:%0M:%0S' 2020-04-16T07:00:00 2020-04-15T06:47:19
9 -1 0:12:41
10 $ ddiff -f '%H:%0M:%0S' 2020-04-16T07:00:00 2020-04-16T04:00:00
11 -3:00:00
12 $ ddiff -f '%d %H:%0M:%0S' 2020-04-16T07:00:00 2020-04-16T04:00:00
13 -0 3:00:00
14 $
15
16 ## dtdiff.050.ctst ends here
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff -i "%s%N" 1100000000000000000 1000000000000000000
3 -100000000s
4 $
5
6 ## dtdiff.051.clit ends here
+0
-7
test/dtest.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-01 --gt 2012-03-02 || echo "false"
3 false
4 $
5
6 ## dtest.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-01 --gt 2012-03-02 || echo "false"
3 false
4 $
5
6 ## dtest.1.ctst ends here
+0
-7
test/dtest.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-01 --ot 2012-03-02 && echo "true"
3 true
4 $
5
6 ## dtest.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-01 --ot 2012-03-02 && echo "true"
3 true
4 $
5
6 ## dtest.2.ctst ends here
+0
-7
test/dtest.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-01 --cmp 2012-03-02; echo $?
3 2
4 $
5
6 ## dtest.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-01 --cmp 2012-03-02; echo $?
3 2
4 $
5
6 ## dtest.3.ctst ends here
+0
-7
test/dtest.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-02 --cmp 2012-03-02; echo $?
3 0
4 $
5
6 ## dtest.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-02 --cmp 2012-03-02; echo $?
3 0
4 $
5
6 ## dtest.4.ctst ends here
+0
-7
test/dtest.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-02 --cmp 2012-03-01; echo $?
3 1
4 $
5
6 ## dtest.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-02 --cmp 2012-03-01; echo $?
3 1
4 $
5
6 ## dtest.5.ctst ends here
+0
-7
test/dtest.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest today --gt 2010-01-01 && echo "yes"
3 yes
4 $
5
6 ## dtest.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest today --gt 2010-01-01 && echo "yes"
3 yes
4 $
5
6 ## dtest.6.ctst ends here
+0
-7
test/dtest.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest now --gt 2010-01-01 && echo "yes"
3 yes
4 $
5
6 ## dtest.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest now --gt 2010-01-01 && echo "yes"
3 yes
4 $
5
6 ## dtest.7.ctst ends here
+0
-7
test/dtest.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest today --gt 2010-01-01T12:34:56 && echo "yes"
3 yes
4 $
5
6 ## dtest.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest today --gt 2010-01-01T12:34:56 && echo "yes"
3 yes
4 $
5
6 ## dtest.8.ctst ends here
+0
-7
test/dtest.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest now --gt 2010-01-01T12:34:56 && echo "yes"
3 yes
4 $
5
6 ## dtest.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest now --gt 2010-01-01T12:34:56 && echo "yes"
3 yes
4 $
5
6 ## dtest.9.ctst ends here
+0
-13
test/dtest.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --isvalid '2010-01-01T12:34:56'
3 $ dtest --isvalid '2010-01-01'
4 $ dtest --isvalid '2010-01'
5 $ dtest --isvalid '2010-01-01T12:34:56' -i '%F'
6 $ dtest --isvalid '2010-01-01X' -i '%FX'
7 $ ! dtest --isvalid '2010-01-01T12:34:56X' -i '%FX'
8 $ dtest --isvalid '2010-May' -i '%Y-%b'
9 $ ! dtest --isvalid '2010 Mai' -i '%Y %b'
10 $
11
12 ## dtest.010.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --isvalid '2010-01-01T12:34:56'
3 $ dtest --isvalid '2010-01-01'
4 $ dtest --isvalid '2010-01'
5 $ dtest --isvalid '2010-01-01T12:34:56' -i '%F'
6 $ dtest --isvalid '2010-01-01X' -i '%FX'
7 $ ! dtest --isvalid '2010-01-01T12:34:56X' -i '%FX'
8 $ dtest --isvalid '2010-May' -i '%Y-%b'
9 $ ! dtest --isvalid '2010 Mai' -i '%Y %b'
10 $
11
12 ## dtest.010.ctst ends here
+0
-7
test/dtest.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --from-locale fr_FR -i '%b %Y' --isvalid 'févr. 2010'
3 $ ! dtest --isvalid 'févr. 2010'
4 $
5
6 ## dtest.011.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --from-locale fr_FR -i '%b %Y' --isvalid 'févr. 2010'
3 $ ! dtest --isvalid 'févr. 2010'
4 $
5
6 ## dtest.011.ctst ends here
+0
-12
test/dtgrep.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep 2012-03-01 <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-03-01T10:00:00
9 $
10
11 ## dtgrep.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep 2012-03-01 <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-03-01T10:00:00
9 $
10
11 ## dtgrep.1.ctst ends here
+0
-13
test/dtgrep.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 $
11
12 ## dtgrep.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 $
11
12 ## dtgrep.2.ctst ends here
+0
-13
test/dtgrep.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep \<=12:30:00 <<EOF
3 2012-02-28T12:50:00
4 2012-02-29T12:40:00
5 2012-03-01T12:30:00
6 2012-03-02T12:20:00
7 EOF
8 2012-03-01T12:30:00
9 2012-03-02T12:20:00
10 $
11
12 ## dtgrep.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep \<=12:30:00 <<EOF
3 2012-02-28T12:50:00
4 2012-02-29T12:40:00
5 2012-03-01T12:30:00
6 2012-03-02T12:20:00
7 EOF
8 2012-03-01T12:30:00
9 2012-03-02T12:20:00
10 $
11
12 ## dtgrep.3.ctst ends here
+0
-13
test/dtgrep.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep \>16:00:00 <<EOF
3 2012-02-28T14:30:00
4 2012-02-29T15:30:00
5 2012-03-01T16:30:00
6 2012-03-02T17:30:00
7 EOF
8 2012-03-01T16:30:00
9 2012-03-02T17:30:00
10 $
11
12 ## dtgrep.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep \>16:00:00 <<EOF
3 2012-02-28T14:30:00
4 2012-02-29T15:30:00
5 2012-03-01T16:30:00
6 2012-03-02T17:30:00
7 EOF
8 2012-03-01T16:30:00
9 2012-03-02T17:30:00
10 $
11
12 ## dtgrep.4.ctst ends here
+0
-12
test/dtgrep.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep 2012-03-01T10:00:00 <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-03-01T10:00:00
9 $
10
11 ## dtgrep.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep 2012-03-01T10:00:00 <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-03-01T10:00:00
9 $
10
11 ## dtgrep.5.ctst ends here
+0
-14
test/dtgrep.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01T14:00:00' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 2012-03-01T10:00:00
11 $
12
13 ## dtgrep.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01T14:00:00' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 2012-03-01T10:00:00
11 $
12
13 ## dtgrep.6.ctst ends here
+0
-14
test/dtgrep.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep --gt 2012-02-28T16:00:00 <<EOF
3 2012-02-28T14:30:00
4 2012-02-29T15:30:00
5 2012-03-01T16:30:00
6 2012-03-02T17:30:00
7 EOF
8 2012-02-29T15:30:00
9 2012-03-01T16:30:00
10 2012-03-02T17:30:00
11 $
12
13 ## dtgrep.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep --gt 2012-02-28T16:00:00 <<EOF
3 2012-02-28T14:30:00
4 2012-02-29T15:30:00
5 2012-03-01T16:30:00
6 2012-03-02T17:30:00
7 EOF
8 2012-02-29T15:30:00
9 2012-03-01T16:30:00
10 2012-03-02T17:30:00
11 $
12
13 ## dtgrep.7.ctst ends here
+0
-14
test/dtgrep.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep --ne 2012-03-01T12:30:00 <<EOF
3 2012-02-28T12:50:00
4 2012-02-29T12:40:00
5 2012-03-01T12:30:00
6 2012-03-02T12:20:00
7 EOF
8 2012-02-28T12:50:00
9 2012-02-29T12:40:00
10 2012-03-02T12:20:00
11 $
12
13 ## dtgrep.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep --ne 2012-03-01T12:30:00 <<EOF
3 2012-02-28T12:50:00
4 2012-02-29T12:40:00
5 2012-03-01T12:30:00
6 2012-03-02T12:20:00
7 EOF
8 2012-02-28T12:50:00
9 2012-02-29T12:40:00
10 2012-03-02T12:20:00
11 $
12
13 ## dtgrep.8.ctst ends here
+0
-13
test/dtgrep.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01T10:00:00' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 $
11
12 ## dtgrep.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01T10:00:00' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 $
11
12 ## dtgrep.9.ctst ends here
+0
-15
test/dtgrep.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<now' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 2012-03-01T10:00:00
11 2012-03-02T10:00:00
12 $
13
14 ## dtgrep.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<now' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 2012-03-01T10:00:00
11 2012-03-02T10:00:00
12 $
13
14 ## dtgrep.10.ctst ends here
+0
-14
test/dtgrep.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<01.03.2012 11:00:00' -i '%FT%T' -i '%d.%m.%Y %H:%M:%S' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 2012-03-01T10:00:00
11 $
12
13 ## dtgrep.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<01.03.2012 11:00:00' -i '%FT%T' -i '%d.%m.%Y %H:%M:%S' <<EOF
3 2012-02-28T10:00:00
4 2012-02-29T10:00:00
5 2012-03-01T10:00:00
6 2012-03-02T10:00:00
7 EOF
8 2012-02-28T10:00:00
9 2012-02-29T10:00:00
10 2012-03-01T10:00:00
11 $
12
13 ## dtgrep.11.ctst ends here
+0
-13
test/dtgrep.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01' -i '%d.%m.%Y %H:%M:%S' <<EOF
3 28.02.2012 10:00:00
4 02.03.2012 10:00:00
5 01.03.2012 10:00:00
6 29.02.2012 10:00:00
7 EOF
8 28.02.2012 10:00:00
9 29.02.2012 10:00:00
10 $
11
12 ## dtgrep.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<2012-03-01' -i '%d.%m.%Y %H:%M:%S' <<EOF
3 28.02.2012 10:00:00
4 02.03.2012 10:00:00
5 01.03.2012 10:00:00
6 29.02.2012 10:00:00
7 EOF
8 28.02.2012 10:00:00
9 29.02.2012 10:00:00
10 $
11
12 ## dtgrep.12.ctst ends here
+0
-18
test/dtgrep.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## consider input date/times as Europe/Berlin
3 $ dgrep --from-zone Europe/Berlin '<=11:00:00' <<EOF
4 2014-02-14T11:00:00 (is 10 UTC)
5 2014-02-14T12:00:00 (is 11 UTC)
6 2014-02-14T13:00:00 (is 12 UTC)
7 2014-04-14T12:00:00 (is 10 UTC)
8 2014-04-14T13:00:00 (is 11 UTC)
9 2014-04-14T14:00:00 (is 12 UTC)
10 EOF
11 2014-02-14T11:00:00 (is 10 UTC)
12 2014-02-14T12:00:00 (is 11 UTC)
13 2014-04-14T12:00:00 (is 10 UTC)
14 2014-04-14T13:00:00 (is 11 UTC)
15 $
16
17 ## dtgrep.013.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## consider input date/times as Europe/Berlin
3 $ dgrep --from-zone Europe/Berlin '<=11:00:00' <<EOF
4 2014-02-14T11:00:00 (is 10 UTC)
5 2014-02-14T12:00:00 (is 11 UTC)
6 2014-02-14T13:00:00 (is 12 UTC)
7 2014-04-14T12:00:00 (is 10 UTC)
8 2014-04-14T13:00:00 (is 11 UTC)
9 2014-04-14T14:00:00 (is 12 UTC)
10 EOF
11 2014-02-14T11:00:00 (is 10 UTC)
12 2014-02-14T12:00:00 (is 11 UTC)
13 2014-04-14T12:00:00 (is 10 UTC)
14 2014-04-14T13:00:00 (is 11 UTC)
15 $
16
17 ## dtgrep.013.ctst ends here
+0
-18
test/dtgrep.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## consider expression date/times as Europe/Berlin
3 $ dgrep --zone Europe/Berlin '>=11:00:00' <<EOF
4 2014-02-14T09:00:00 (is 10 CET)
5 2014-02-14T10:00:00 (is 11 CET)
6 2014-02-14T11:00:00 (is 12 CET)
7 2014-04-14T08:00:00 (is 10 CEST)
8 2014-04-14T09:00:00 (is 11 CEST)
9 2014-04-14T10:00:00 (is 12 CEST)
10 EOF
11 2014-02-14T10:00:00 (is 11 CET)
12 2014-02-14T11:00:00 (is 12 CET)
13 2014-04-14T09:00:00 (is 11 CEST)
14 2014-04-14T10:00:00 (is 12 CEST)
15 $
16
17 ## dtgrep.014.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## consider expression date/times as Europe/Berlin
3 $ dgrep --zone Europe/Berlin '>=11:00:00' <<EOF
4 2014-02-14T09:00:00 (is 10 CET)
5 2014-02-14T10:00:00 (is 11 CET)
6 2014-02-14T11:00:00 (is 12 CET)
7 2014-04-14T08:00:00 (is 10 CEST)
8 2014-04-14T09:00:00 (is 11 CEST)
9 2014-04-14T10:00:00 (is 12 CEST)
10 EOF
11 2014-02-14T10:00:00 (is 11 CET)
12 2014-02-14T11:00:00 (is 12 CET)
13 2014-04-14T09:00:00 (is 11 CEST)
14 2014-04-14T10:00:00 (is 12 CEST)
15 $
16
17 ## dtgrep.014.ctst ends here
+0
-9
test/dtround.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:04:11 1s
3 2012-03-04T12:05:01
4 $ dround 2012-03-04T12:04:11 /1s
5 2012-03-04T12:04:11
6 $
7
8 ## dtround.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:04:11 1s
3 2012-03-04T12:05:01
4 $ dround 2012-03-04T12:04:11 /1s
5 2012-03-04T12:04:11
6 $
7
8 ## dtround.1.ctst ends here
+0
-9
test/dtround.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:04:11 5s
3 2012-03-04T12:05:05
4 $ dround 2012-03-04T12:04:11 /5s
5 2012-03-04T12:04:15
6 $
7
8 ## dtround.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:04:11 5s
3 2012-03-04T12:05:05
4 $ dround 2012-03-04T12:04:11 /5s
5 2012-03-04T12:04:15
6 $
7
8 ## dtround.2.ctst ends here
+0
-9
test/dtround.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:04:11 -10s
3 2012-03-04T12:04:10
4 $ dround 2012-03-04T12:04:11 /10s
5 2012-03-04T12:04:20
6 $
7
8 ## dtround.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:04:11 -10s
3 2012-03-04T12:04:10
4 $ dround 2012-03-04T12:04:11 /10s
5 2012-03-04T12:04:20
6 $
7
8 ## dtround.3.ctst ends here
+0
-9
test/dtround.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:04:11 30s
3 2012-03-04T12:04:30
4 $ dround 2012-03-04T12:04:11 /30s
5 2012-03-04T12:04:30
6 $
7
8 ## dtround.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:04:11 30s
3 2012-03-04T12:04:30
4 $ dround 2012-03-04T12:04:11 /30s
5 2012-03-04T12:04:30
6 $
7
8 ## dtround.4.ctst ends here
+0
-9
test/dtround.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 1m
3 2012-03-04T13:01:11
4 $ dround 2012-03-04T12:03:11 /1m
5 2012-03-04T12:04:00
6 $
7
8 ## dtround.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 1m
3 2012-03-04T13:01:11
4 $ dround 2012-03-04T12:03:11 /1m
5 2012-03-04T12:04:00
6 $
7
8 ## dtround.5.ctst ends here
+0
-9
test/dtround.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 0s-5m
3 2012-03-04T11:05:00
4 $ dround 2012-03-04T12:03:11 /5m
5 2012-03-04T12:05:00
6 $
7
8 ## dtround.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 0s-5m
3 2012-03-04T11:05:00
4 $ dround 2012-03-04T12:03:11 /5m
5 2012-03-04T12:05:00
6 $
7
8 ## dtround.6.ctst ends here
+0
-9
test/dtround.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 10m0s
3 2012-03-04T12:11:00
4 $ dround 2012-03-04T12:03:11 /10m
5 2012-03-04T12:10:00
6 $
7
8 ## dtround.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 10m0s
3 2012-03-04T12:11:00
4 $ dround 2012-03-04T12:03:11 /10m
5 2012-03-04T12:10:00
6 $
7
8 ## dtround.7.ctst ends here
+0
-9
test/dtround.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 -3m
3 2012-03-04T12:03:11
4 $ dround 2012-03-04T12:03:11 /15m
5 2012-03-04T12:15:00
6 $
7
8 ## dtround.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 -3m
3 2012-03-04T12:03:11
4 $ dround 2012-03-04T12:03:11 /15m
5 2012-03-04T12:15:00
6 $
7
8 ## dtround.8.ctst ends here
+0
-9
test/dtround.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 0s30m
3 2012-03-04T12:30:00
4 $ dround 2012-03-04T12:03:11 /30m
5 2012-03-04T12:30:00
6 $
7
8 ## dtround.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 0s30m
3 2012-03-04T12:30:00
4 $ dround 2012-03-04T12:03:11 /30m
5 2012-03-04T12:30:00
6 $
7
8 ## dtround.9.ctst ends here
+0
-9
test/dtround.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 13h
3 2012-03-04T13:03:11
4 $ dround 2012-03-04T12:03:11 /1h
5 2012-03-04T13:00:00
6 $
7
8 ## dtround.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2012-03-04T12:03:11 13h
3 2012-03-04T13:03:11
4 $ dround 2012-03-04T12:03:11 /1h
5 2012-03-04T13:00:00
6 $
7
8 ## dtround.10.ctst ends here
+0
-33
test/dtround.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 0s0m <<EOF
3 2012-03-04T11:01:01
4 2012-03-04T11:01:02
5 2012-03-04T11:05:01
6 2012-03-04T11:06:01
7 2012-03-04T11:12:00
8 2012-03-04T11:15:00
9 EOF
10 2012-03-04T12:00:00
11 2012-03-04T12:00:00
12 2012-03-04T12:00:00
13 2012-03-04T12:00:00
14 2012-03-04T12:00:00
15 2012-03-04T12:00:00
16 $ dround /5m <<EOF
17 2012-03-04T11:01:01
18 2012-03-04T11:01:02
19 2012-03-04T11:05:01
20 2012-03-04T11:06:01
21 2012-03-04T11:12:00
22 2012-03-04T11:15:00
23 EOF
24 2012-03-04T11:05:00
25 2012-03-04T11:05:00
26 2012-03-04T11:10:00
27 2012-03-04T11:10:00
28 2012-03-04T11:15:00
29 2012-03-04T11:15:00
30 $
31
32 ## dtround.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 0s0m <<EOF
3 2012-03-04T11:01:01
4 2012-03-04T11:01:02
5 2012-03-04T11:05:01
6 2012-03-04T11:06:01
7 2012-03-04T11:12:00
8 2012-03-04T11:15:00
9 EOF
10 2012-03-04T12:00:00
11 2012-03-04T12:00:00
12 2012-03-04T12:00:00
13 2012-03-04T12:00:00
14 2012-03-04T12:00:00
15 2012-03-04T12:00:00
16 $ dround /5m <<EOF
17 2012-03-04T11:01:01
18 2012-03-04T11:01:02
19 2012-03-04T11:05:01
20 2012-03-04T11:06:01
21 2012-03-04T11:12:00
22 2012-03-04T11:15:00
23 EOF
24 2012-03-04T11:05:00
25 2012-03-04T11:05:00
26 2012-03-04T11:10:00
27 2012-03-04T11:10:00
28 2012-03-04T11:15:00
29 2012-03-04T11:15:00
30 $
31
32 ## dtround.11.ctst ends here
+0
-33
test/dtround.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 5m <<EOF
3 2012-03-04T11:01:01
4 2012-03-04T11:01:02
5 2012-03-04T11:05:01
6 2012-03-04T11:06:01
7 2012-03-04T11:12:00
8 2012-03-04T11:15:00
9 EOF
10 2012-03-04T11:05:01
11 2012-03-04T11:05:02
12 2012-03-04T12:05:01
13 2012-03-04T12:05:01
14 2012-03-04T12:05:00
15 2012-03-04T12:05:00
16 $ dround -n /5m <<EOF
17 2012-03-04T11:01:01
18 2012-03-04T11:01:02
19 2012-03-04T11:05:01
20 2012-03-04T11:06:01
21 2012-03-04T11:12:00
22 2012-03-04T11:15:00
23 EOF
24 2012-03-04T11:05:00
25 2012-03-04T11:05:00
26 2012-03-04T11:10:00
27 2012-03-04T11:10:00
28 2012-03-04T11:15:00
29 2012-03-04T11:20:00
30 $
31
32 ## dtround.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 5m <<EOF
3 2012-03-04T11:01:01
4 2012-03-04T11:01:02
5 2012-03-04T11:05:01
6 2012-03-04T11:06:01
7 2012-03-04T11:12:00
8 2012-03-04T11:15:00
9 EOF
10 2012-03-04T11:05:01
11 2012-03-04T11:05:02
12 2012-03-04T12:05:01
13 2012-03-04T12:05:01
14 2012-03-04T12:05:00
15 2012-03-04T12:05:00
16 $ dround -n /5m <<EOF
17 2012-03-04T11:01:01
18 2012-03-04T11:01:02
19 2012-03-04T11:05:01
20 2012-03-04T11:06:01
21 2012-03-04T11:12:00
22 2012-03-04T11:15:00
23 EOF
24 2012-03-04T11:05:00
25 2012-03-04T11:05:00
26 2012-03-04T11:10:00
27 2012-03-04T11:10:00
28 2012-03-04T11:15:00
29 2012-03-04T11:20:00
30 $
31
32 ## dtround.12.ctst ends here
+0
-25
test/dtround.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -S 0s30m17h -i '%d/%m/%Y %T' -f '%F %T' <<EOF
3 06/03/2012 14:27:12 eventA
4 06/03/2012 14:29:59 eventA
5 06/03/2012 14:30:00 eventB
6 06/03/2012 14:30:01 eventB
7 EOF
8 2012-03-06 17:30:00 eventA
9 2012-03-06 17:30:00 eventA
10 2012-03-06 17:30:00 eventB
11 2012-03-06 17:30:00 eventB
12 $ dround -S /30m -i '%d/%m/%Y %T' -f '%F %T' <<EOF
13 06/03/2012 14:27:12 eventA
14 06/03/2012 14:29:59 eventA
15 06/03/2012 14:30:00 eventB
16 06/03/2012 14:30:01 eventB
17 EOF
18 2012-03-06 14:30:00 eventA
19 2012-03-06 14:30:00 eventA
20 2012-03-06 14:30:00 eventB
21 2012-03-06 15:00:00 eventB
22 $
23
24 ## dtround.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -S 0s30m17h -i '%d/%m/%Y %T' -f '%F %T' <<EOF
3 06/03/2012 14:27:12 eventA
4 06/03/2012 14:29:59 eventA
5 06/03/2012 14:30:00 eventB
6 06/03/2012 14:30:01 eventB
7 EOF
8 2012-03-06 17:30:00 eventA
9 2012-03-06 17:30:00 eventA
10 2012-03-06 17:30:00 eventB
11 2012-03-06 17:30:00 eventB
12 $ dround -S /30m -i '%d/%m/%Y %T' -f '%F %T' <<EOF
13 06/03/2012 14:27:12 eventA
14 06/03/2012 14:29:59 eventA
15 06/03/2012 14:30:00 eventB
16 06/03/2012 14:30:01 eventB
17 EOF
18 2012-03-06 14:30:00 eventA
19 2012-03-06 14:30:00 eventA
20 2012-03-06 14:30:00 eventB
21 2012-03-06 15:00:00 eventB
22 $
23
24 ## dtround.13.ctst ends here
+0
-25
test/dtround.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -S -0s-30m14h -i '%d/%m/%Y %T' -f '%F %T' <<EOF
3 06/03/2012 14:27:12 eventA
4 06/03/2012 14:29:59 eventA
5 06/03/2012 14:30:30 eventB
6 06/03/2012 14:30:01 eventB
7 EOF
8 2012-03-05 14:30:00 eventA
9 2012-03-05 14:30:00 eventA
10 2012-03-06 14:30:00 eventB
11 2012-03-06 14:30:00 eventB
12 $ dround -S /-30m -i '%d/%m/%Y %T' -f '%F %T' <<EOF
13 06/03/2012 14:27:12 eventA
14 06/03/2012 14:29:59 eventA
15 06/03/2012 14:30:30 eventB
16 06/03/2012 14:30:01 eventB
17 EOF
18 2012-03-06 14:00:00 eventA
19 2012-03-06 14:00:00 eventA
20 2012-03-06 14:30:00 eventB
21 2012-03-06 14:30:00 eventB
22 $
23
24 ## dtround.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -S -0s-30m14h -i '%d/%m/%Y %T' -f '%F %T' <<EOF
3 06/03/2012 14:27:12 eventA
4 06/03/2012 14:29:59 eventA
5 06/03/2012 14:30:30 eventB
6 06/03/2012 14:30:01 eventB
7 EOF
8 2012-03-05 14:30:00 eventA
9 2012-03-05 14:30:00 eventA
10 2012-03-06 14:30:00 eventB
11 2012-03-06 14:30:00 eventB
12 $ dround -S /-30m -i '%d/%m/%Y %T' -f '%F %T' <<EOF
13 06/03/2012 14:27:12 eventA
14 06/03/2012 14:29:59 eventA
15 06/03/2012 14:30:30 eventB
16 06/03/2012 14:30:01 eventB
17 EOF
18 2012-03-06 14:00:00 eventA
19 2012-03-06 14:00:00 eventA
20 2012-03-06 14:30:00 eventB
21 2012-03-06 14:30:00 eventB
22 $
23
24 ## dtround.14.ctst ends here
+0
-11
test/dtround.015.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 2m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-04-04
7 2016-04-04T11:02:00
8 $
9
10 ## dtround.015.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 2m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-04-04
7 2016-04-04T11:02:00
8 $
9
10 ## dtround.015.ctst ends here
+0
-11
test/dtround.016.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -2m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-04-04
7 2016-04-04T10:02:00
8 $
9
10 ## dtround.016.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -2m <<EOF
3 2016-04-04
4 2016-04-04T10:20:00
5 EOF
6 2016-04-04
7 2016-04-04T10:02:00
8 $
9
10 ## dtround.016.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround /-10m <<EOF
3 2019-01-31
4 2019-01-31T10:20:00
5 2019-01-31T00:10:00
6 2019-01-31T00:00:00
7 EOF
8 2019-01-31
9 2019-01-31T10:20:00
10 2019-01-31T00:10:00
11 2019-01-31T00:00:00
12 $ dround --next /-10m <<EOF
13 2019-02-01
14 2019-02-01T10:20:00
15 2019-02-01T00:10:00
16 2019-02-01T00:00:00
17 EOF
18 2019-02-01
19 2019-02-01T10:10:00
20 2019-02-01T00:00:00
21 2019-01-31T23:50:00
22 $
23
24 ## dtround.017.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround /-1b <<EOF
3 2019-02-02
4 2019-02-02T10:20:00
5 2019-02-02T00:10:00
6 2019-02-02T00:00:00
7 EOF
8 2019-02-01
9 2019-02-01T00:00:00
10 2019-02-01T00:00:00
11 2019-02-01T00:00:00
12 $ dround --next /-1b <<EOF
13 2019-02-01
14 2019-02-02T10:20:00
15 2019-02-02T00:00:00
16 2019-02-01T00:00:00
17 EOF
18 2019-01-31
19 2019-02-01T00:00:00
20 2019-02-01T00:00:00
21 2019-01-31T00:00:00
22 $
23
24 ## dtround.018.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround /10m <<EOF
3 2019-01-31
4 2019-01-31T10:20:00
5 2019-01-31T23:50:00
6 2019-01-31T00:00:00
7 EOF
8 2019-01-31
9 2019-01-31T10:20:00
10 2019-01-31T23:50:00
11 2019-01-31T00:00:00
12 $ dround --next /10m <<EOF
13 2019-02-01
14 2019-02-01T10:20:00
15 2019-02-01T23:50:00
16 2019-02-01T00:00:00
17 EOF
18 2019-02-01
19 2019-02-01T10:30:00
20 2019-02-02T00:00:00
21 2019-02-01T00:10:00
22 $
23
24 ## dtround.019.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround /+1b <<EOF
3 2019-02-01
4 2019-02-02
5 2019-02-02T10:20:00
6 2019-02-02T00:10:00
7 2019-02-03T00:00:00
8 EOF
9 2019-02-01
10 2019-02-04
11 2019-02-04T00:00:00
12 2019-02-04T00:00:00
13 2019-02-04T00:00:00
14 $ dround --next /1b <<EOF
15 2019-02-01
16 2019-02-03
17 2019-02-02T10:20:00
18 2019-02-03T00:00:00
19 2019-02-01T00:00:00
20 EOF
21 2019-02-04
22 2019-02-04
23 2019-02-04T00:00:00
24 2019-02-04T00:00:00
25 2019-02-04T00:00:00
26 $
27
28 ## dtround.020.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround /2mo <<EOF
3 2019-01-01
4 2019-01-31
5 2019-01-31T10:20:00
6 2019-02-28T23:50:00
7 2019-12-31T00:00:00
8 EOF
9 2019-01-01
10 2019-03-01
11 2019-03-01T00:00:00
12 2019-03-01T00:00:00
13 2020-01-01T00:00:00
14 $ dround --next /3mo <<EOF
15 2019-01-01
16 2019-01-31
17 2019-01-31T10:20:00
18 2019-02-28T23:50:00
19 2019-12-31T00:00:00
20 EOF
21 2019-04-01
22 2019-04-01
23 2019-04-01T00:00:00
24 2019-04-01T00:00:00
25 2020-01-01T00:00:00
26 $
27
28 ## dtround.021.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround /-2y <<EOF
3 2019-01-01
4 2018-01-01
5 2020-01-31T10:20:00
6 2020-01-01T00:00:01
7 2020-01-01T00:00:00
8 EOF
9 2018-01-01
10 2018-01-01
11 2020-01-01T00:00:00
12 2020-01-01T00:00:00
13 2020-01-01T00:00:00
14 $ dround --next /-1q <<EOF
15 2019-01-01
16 2019-01-31
17 2019-01-31T10:20:00
18 2019-01-01T00:00:01
19 2019-01-01T00:00:00
20 EOF
21 2018-10-01
22 2019-01-01
23 2019-01-01T00:00:00
24 2019-01-01T00:00:00
25 2018-10-01T00:00:00
26 $
27
28 ## dtround.022.ctst ends here
+0
-35
test/dtseq.01.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-02-01T19:34:22 2012-03-01T19:34:00
3 2012-02-01T19:34:22
4 2012-02-02T19:34:22
5 2012-02-03T19:34:22
6 2012-02-04T19:34:22
7 2012-02-05T19:34:22
8 2012-02-06T19:34:22
9 2012-02-07T19:34:22
10 2012-02-08T19:34:22
11 2012-02-09T19:34:22
12 2012-02-10T19:34:22
13 2012-02-11T19:34:22
14 2012-02-12T19:34:22
15 2012-02-13T19:34:22
16 2012-02-14T19:34:22
17 2012-02-15T19:34:22
18 2012-02-16T19:34:22
19 2012-02-17T19:34:22
20 2012-02-18T19:34:22
21 2012-02-19T19:34:22
22 2012-02-20T19:34:22
23 2012-02-21T19:34:22
24 2012-02-22T19:34:22
25 2012-02-23T19:34:22
26 2012-02-24T19:34:22
27 2012-02-25T19:34:22
28 2012-02-26T19:34:22
29 2012-02-27T19:34:22
30 2012-02-28T19:34:22
31 2012-02-29T19:34:22
32 $
33
34 ## dtseq.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-02-01T19:34:22 2012-03-01T19:34:00
3 2012-02-01T19:34:22
4 2012-02-02T19:34:22
5 2012-02-03T19:34:22
6 2012-02-04T19:34:22
7 2012-02-05T19:34:22
8 2012-02-06T19:34:22
9 2012-02-07T19:34:22
10 2012-02-08T19:34:22
11 2012-02-09T19:34:22
12 2012-02-10T19:34:22
13 2012-02-11T19:34:22
14 2012-02-12T19:34:22
15 2012-02-13T19:34:22
16 2012-02-14T19:34:22
17 2012-02-15T19:34:22
18 2012-02-16T19:34:22
19 2012-02-17T19:34:22
20 2012-02-18T19:34:22
21 2012-02-19T19:34:22
22 2012-02-20T19:34:22
23 2012-02-21T19:34:22
24 2012-02-22T19:34:22
25 2012-02-23T19:34:22
26 2012-02-24T19:34:22
27 2012-02-25T19:34:22
28 2012-02-26T19:34:22
29 2012-02-27T19:34:22
30 2012-02-28T19:34:22
31 2012-02-29T19:34:22
32 $
33
34 ## dtseq.1.ctst ends here
+0
-41
test/dtseq.02.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2001-02-03T10:00:00 1h 2001-02-04T20:00:00
3 2001-02-03T10:00:00
4 2001-02-03T11:00:00
5 2001-02-03T12:00:00
6 2001-02-03T13:00:00
7 2001-02-03T14:00:00
8 2001-02-03T15:00:00
9 2001-02-03T16:00:00
10 2001-02-03T17:00:00
11 2001-02-03T18:00:00
12 2001-02-03T19:00:00
13 2001-02-03T20:00:00
14 2001-02-03T21:00:00
15 2001-02-03T22:00:00
16 2001-02-03T23:00:00
17 2001-02-04T00:00:00
18 2001-02-04T01:00:00
19 2001-02-04T02:00:00
20 2001-02-04T03:00:00
21 2001-02-04T04:00:00
22 2001-02-04T05:00:00
23 2001-02-04T06:00:00
24 2001-02-04T07:00:00
25 2001-02-04T08:00:00
26 2001-02-04T09:00:00
27 2001-02-04T10:00:00
28 2001-02-04T11:00:00
29 2001-02-04T12:00:00
30 2001-02-04T13:00:00
31 2001-02-04T14:00:00
32 2001-02-04T15:00:00
33 2001-02-04T16:00:00
34 2001-02-04T17:00:00
35 2001-02-04T18:00:00
36 2001-02-04T19:00:00
37 2001-02-04T20:00:00
38 $
39
40 ## dtseq.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2001-02-03T10:00:00 1h 2001-02-04T20:00:00
3 2001-02-03T10:00:00
4 2001-02-03T11:00:00
5 2001-02-03T12:00:00
6 2001-02-03T13:00:00
7 2001-02-03T14:00:00
8 2001-02-03T15:00:00
9 2001-02-03T16:00:00
10 2001-02-03T17:00:00
11 2001-02-03T18:00:00
12 2001-02-03T19:00:00
13 2001-02-03T20:00:00
14 2001-02-03T21:00:00
15 2001-02-03T22:00:00
16 2001-02-03T23:00:00
17 2001-02-04T00:00:00
18 2001-02-04T01:00:00
19 2001-02-04T02:00:00
20 2001-02-04T03:00:00
21 2001-02-04T04:00:00
22 2001-02-04T05:00:00
23 2001-02-04T06:00:00
24 2001-02-04T07:00:00
25 2001-02-04T08:00:00
26 2001-02-04T09:00:00
27 2001-02-04T10:00:00
28 2001-02-04T11:00:00
29 2001-02-04T12:00:00
30 2001-02-04T13:00:00
31 2001-02-04T14:00:00
32 2001-02-04T15:00:00
33 2001-02-04T16:00:00
34 2001-02-04T17:00:00
35 2001-02-04T18:00:00
36 2001-02-04T19:00:00
37 2001-02-04T20:00:00
38 $
39
40 ## dtseq.2.ctst ends here
+0
-9
test/dtseq.03.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-00T17:00 2015-00T16:00:00 -i '%Y-%mT%H:%M'
3 2012-00-00T17:00:00
4 2013-00-00T17:00:00
5 2014-00-00T17:00:00
6 $
7
8 ## dtseq.03.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-00T17:00 2015-00T16:00:00 -i '%Y-%mT%H:%M'
3 2012-00-00T17:00:00
4 2013-00-00T17:00:00
5 2014-00-00T17:00:00
6 $
7
8 ## dtseq.03.ctst ends here
+0
-10
test/dtseq.04.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-00-00T17:00 2015-00-00
3 2012-00-00T17:00:00
4 2013-00-00T17:00:00
5 2014-00-00T17:00:00
6 2015-00-00T17:00:00
7 $
8
9 ## dtseq.04.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-00-00T17:00 2015-00-00
3 2012-00-00T17:00:00
4 2013-00-00T17:00:00
5 2014-00-00T17:00:00
6 2015-00-00T17:00:00
7 $
8
9 ## dtseq.04.ctst ends here
+0
-14
test/dtseq.05.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-01T17:00 2012-09T16:00:00 -i '%Y-%mT%H:%M'
3 2012-01-00T17:00:00
4 2012-02-00T17:00:00
5 2012-03-00T17:00:00
6 2012-04-00T17:00:00
7 2012-05-00T17:00:00
8 2012-06-00T17:00:00
9 2012-07-00T17:00:00
10 2012-08-00T17:00:00
11 $
12
13 ## dtseq.05.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-01T17:00 2012-09T16:00:00 -i '%Y-%mT%H:%M'
3 2012-01-00T17:00:00
4 2012-02-00T17:00:00
5 2012-03-00T17:00:00
6 2012-04-00T17:00:00
7 2012-05-00T17:00:00
8 2012-06-00T17:00:00
9 2012-07-00T17:00:00
10 2012-08-00T17:00:00
11 $
12
13 ## dtseq.05.ctst ends here
+0
-14
test/dtseq.06.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-02-00T17:00 2012-09-00
3 2012-02-00T17:00:00
4 2012-03-00T17:00:00
5 2012-04-00T17:00:00
6 2012-05-00T17:00:00
7 2012-06-00T17:00:00
8 2012-07-00T17:00:00
9 2012-08-00T17:00:00
10 2012-09-00T17:00:00
11 $
12
13 ## dtseq.06.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-02-00T17:00 2012-09-00
3 2012-02-00T17:00:00
4 2012-03-00T17:00:00
5 2012-04-00T17:00:00
6 2012-05-00T17:00:00
7 2012-06-00T17:00:00
8 2012-07-00T17:00:00
9 2012-08-00T17:00:00
10 2012-09-00T17:00:00
11 $
12
13 ## dtseq.06.ctst ends here
+0
-9
test/dtseq.07.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012T17 2015T16 -i '%YT%H'
3 2012-00-00T17:00:00
4 2013-00-00T17:00:00
5 2014-00-00T17:00:00
6 $
7
8 ## dtseq.07.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012T17 2015T16 -i '%YT%H'
3 2012-00-00T17:00:00
4 2013-00-00T17:00:00
5 2014-00-00T17:00:00
6 $
7
8 ## dtseq.07.ctst ends here
+0
-10
test/dtseq.08.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-00-00 2015-00-00T17:00:00
3 2012-00-00T17:00:00
4 2013-00-00T17:00:00
5 2014-00-00T17:00:00
6 2015-00-00T17:00:00
7 $
8
9 ## dtseq.08.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-00-00 2015-00-00T17:00:00
3 2012-00-00T17:00:00
4 2013-00-00T17:00:00
5 2014-00-00T17:00:00
6 2015-00-00T17:00:00
7 $
8
9 ## dtseq.08.ctst ends here
+0
-8
test/dtseq.09.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-02-01T19:34:22 +1mo 2012-03-01T19:34:24
3 2012-02-01T19:34:22
4 2012-03-01T19:34:22
5 $
6
7 ## dtseq.09.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-02-01T19:34:22 +1mo 2012-03-01T19:34:24
3 2012-02-01T19:34:22
4 2012-03-01T19:34:22
5 $
6
7 ## dtseq.09.ctst ends here
+0
-11
test/dtseq.10.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 2012-02-01T19:34:22 +1m 2012-02-01T19:38:24
3 2012-02-01T19:34:22
4 2012-02-01T19:35:22
5 2012-02-01T19:36:22
6 2012-02-01T19:37:22
7 2012-02-01T19:38:22
8 $
9
10 ## dtseq.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 2012-02-01T19:34:22 +1m 2012-02-01T19:38:24
3 2012-02-01T19:34:22
4 2012-02-01T19:35:22
5 2012-02-01T19:36:22
6 2012-02-01T19:37:22
7 2012-02-01T19:38:22
8 $
9
10 ## dtseq.10.ctst ends here
+0
-6
test/dtseq.11.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ! dseq 2012-02-01 +1m 2012-02-03
3 $
4
5 ## dtseq.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ! dseq 2012-02-01 +1m 2012-02-03
3 $
4
5 ## dtseq.11.ctst ends here
+0
-6
test/dtseq.12.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ! dseq 2012-02-00 +2m 2012-08-00
3 $
4
5 ## dtseq.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ! dseq 2012-02-00 +2m 2012-08-00
3 $
4
5 ## dtseq.12.ctst ends here
+0
-7
test/dttest.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-01T10:00:00 --gt 2012-03-02T00:00:00 || echo "false"
3 false
4 $
5
6 ## dttest.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-01T10:00:00 --gt 2012-03-02T00:00:00 || echo "false"
3 false
4 $
5
6 ## dttest.1.ctst ends here
+0
-7
test/dttest.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-02T09:00:00 --ot 2012-03-02T10:00:00 && echo "true"
3 true
4 $
5
6 ## dttest.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-02T09:00:00 --ot 2012-03-02T10:00:00 && echo "true"
3 true
4 $
5
6 ## dttest.2.ctst ends here
+0
-7
test/dttest.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-02T07:00:00 --cmp 2012-03-02T09:30:00; echo "${?}"
3 2
4 $
5
6 ## dttest.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-02T07:00:00 --cmp 2012-03-02T09:30:00; echo "${?}"
3 2
4 $
5
6 ## dttest.3.ctst ends here
+0
-7
test/dttest.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --cmp 2012-03-02T12:00:00 2012-03-02T09:30:00; echo "${?}"
3 1
4 $
5
6 ## dttest.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --cmp 2012-03-02T12:00:00 2012-03-02T09:30:00; echo "${?}"
3 1
4 $
5
6 ## dttest.4.ctst ends here
+0
-7
test/dttest.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-02T07:00:00 --cmp 09:30:00; echo "${?}"
3 3
4 $
5
6 ## dttest.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-02T07:00:00 --cmp 09:30:00; echo "${?}"
3 3
4 $
5
6 ## dttest.5.ctst ends here
+0
-7
test/dttest.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --cmp 09:30:00 2012-03-02T07:00:00; echo "${?}"
3 3
4 $
5
6 ## dttest.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --cmp 09:30:00 2012-03-02T07:00:00; echo "${?}"
3 3
4 $
5
6 ## dttest.6.ctst ends here
+0
-7
test/dttest.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 2012-03-02 --cmp 09:30:00; echo "${?}"
3 3
4 $
5
6 ## dttest.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 2012-03-02 --cmp 09:30:00; echo "${?}"
3 3
4 $
5
6 ## dttest.7.ctst ends here
+0
-7
test/dttest.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --eq 2012-03-02 09:30:00; echo "${?}"
3 3
4 $
5
6 ## dttest.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --eq 2012-03-02 09:30:00; echo "${?}"
3 3
4 $
5
6 ## dttest.8.ctst ends here
+0
-7
test/dttest.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --cmp 2012-03-02 2012-03-02T00:00:00; echo "${?}"
3 0
4 $
5
6 ## dttest.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --cmp 2012-03-02 2012-03-02T00:00:00; echo "${?}"
3 0
4 $
5
6 ## dttest.9.ctst ends here
+0
-7
test/dttest.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --ne 2012-03-02T00:00:00 2012-03-02 || echo 'false'
3 false
4 $
5
6 ## dttest.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --ne 2012-03-02T00:00:00 2012-03-02 || echo 'false'
3 false
4 $
5
6 ## dttest.10.ctst ends here
+0
-7
test/dtz.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2012-01-01T00:00:00 --zone 'Asia/Singapore'
3 2012-01-01T08:00:00
4 $
5
6 ## dtz.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2012-01-01T00:00:00 --zone 'Asia/Singapore'
3 2012-01-01T08:00:00
4 $
5
6 ## dtz.1.ctst ends here
+0
-7
test/dtz.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 1980-01-01T00:00:00 --zone 'Asia/Singapore'
3 1980-01-01T07:30:00
4 $
5
6 ## dtz.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 1980-01-01T00:00:00 --zone 'Asia/Singapore'
3 1980-01-01T07:30:00
4 $
5
6 ## dtz.2.ctst ends here
+0
-7
test/dzone.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone 2012-03-04T12:04:11
3 2012-03-04T12:04:11+00:00
4 $
5
6 ## dzone.001.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone 2012-03-04T12:04:11
3 2012-03-04T12:04:11+00:00
4 $
5
6 ## dzone.001.ctst ends here
+0
-7
test/dzone.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone Europe/Berlin 2012-03-04T12:04:11
3 2012-03-04T13:04:11+01:00 Europe/Berlin
4 $
5
6 ## dzone.002.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone Europe/Berlin 2012-03-04T12:04:11
3 2012-03-04T13:04:11+01:00 Europe/Berlin
4 $
5
6 ## dzone.002.ctst ends here
+0
-7
test/dzone.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone 2012-03-04T12:04:11 UTC
3 2012-03-04T12:04:11+00:00 UTC
4 $
5
6 ## dzone.003.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone 2012-03-04T12:04:11 UTC
3 2012-03-04T12:04:11+00:00 UTC
4 $
5
6 ## dzone.003.ctst ends here
+0
-10
test/dzone.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone Europe/Berlin Australia/Sydney 2012-01-01T14:04:00 2012-05-14T12:04:00
3 2012-01-01T15:04:00+01:00 Europe/Berlin
4 2012-01-02T01:04:00+11:00 Australia/Sydney
5 2012-05-14T14:04:00+02:00 Europe/Berlin
6 2012-05-14T22:04:00+10:00 Australia/Sydney
7 $
8
9 ## dzone.004.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone Europe/Berlin Australia/Sydney 2012-01-01T14:04:00 2012-05-14T12:04:00
3 2012-01-01T15:04:00+01:00 Europe/Berlin
4 2012-01-02T01:04:00+11:00 Australia/Sydney
5 2012-05-14T14:04:00+02:00 Europe/Berlin
6 2012-05-14T22:04:00+10:00 Australia/Sydney
7 $
8
9 ## dzone.004.ctst ends here
+0
-7
test/dzone.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone --next Europe/Berlin 2012-03-04T12:04:11
3 2012-03-25T02:00:00+01:00 -> 2012-03-25T03:00:00+02:00 Europe/Berlin
4 $
5
6 ## dzone.005.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone --next Europe/Berlin 2012-03-04T12:04:11
3 2012-03-25T02:00:00+01:00 -> 2012-03-25T03:00:00+02:00 Europe/Berlin
4 $
5
6 ## dzone.005.ctst ends here
+0
-7
test/dzone.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone --prev Europe/Berlin 2014-02-22
3 2013-10-27T03:00:00+02:00 <- 2013-10-27T02:00:00+01:00 Europe/Berlin
4 $
5
6 ## dzone.006.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone --prev Europe/Berlin 2014-02-22
3 2013-10-27T03:00:00+02:00 <- 2013-10-27T02:00:00+01:00 Europe/Berlin
4 $
5
6 ## dzone.006.ctst ends here
+0
-8
test/dzone.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## Singapore stopped transitioning in 1982
3 $ dzone --next Asia/Singapore 2014-02-22
4 never -> never Asia/Singapore
5 $
6
7 ## dzone.007.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## Singapore stopped transitioning in 1982
3 $ dzone --next Asia/Singapore 2014-02-22
4 never -> never Asia/Singapore
5 $
6
7 ## dzone.007.ctst ends here
+0
-7
test/dzone.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone --prev Asia/Singapore 2014-02-22
3 1982-01-01T00:00:00+07:30 <- 1982-01-01T00:30:00+08:00 Asia/Singapore
4 $
5
6 ## dzone.008.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone --prev Asia/Singapore 2014-02-22
3 1982-01-01T00:00:00+07:30 <- 1982-01-01T00:30:00+08:00 Asia/Singapore
4 $
5
6 ## dzone.008.ctst ends here
+0
-7
test/dzone.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone --prev UTC
3 never <- never UTC
4 $
5
6 ## dzone.009.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone --prev UTC
3 never <- never UTC
4 $
5
6 ## dzone.009.ctst ends here
+0
-7
test/dzone.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone --next UTC
3 never -> never UTC
4 $
5
6 ## dzone.010.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone --next UTC
3 never -> never UTC
4 $
5
6 ## dzone.010.ctst ends here
+0
-7
test/dzone.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone --next Europe/Berlin -i '%Y-%b-%dT%T' --from-locale fi_FI '2012-maalis-04T12:04:11'
3 2012-03-25T02:00:00+01:00 -> 2012-03-25T03:00:00+02:00 Europe/Berlin
4 $
5
6 ## dzone.011.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone --next Europe/Berlin -i '%Y-%b-%dT%T' --from-locale fi_FI '2012-maalis-04T12:04:11'
3 2012-03-25T02:00:00+01:00 -> 2012-03-25T03:00:00+02:00 Europe/Berlin
4 $
5
6 ## dzone.011.ctst ends here
+0
-9
test/dzone.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone UTC Europe/Moscow America/Bogota 08:00:00
3 08:00:00+00:00 UTC
4 11:00:00+03:00 Europe/Moscow
5 03:00:00-05:00 America/Bogota
6 $
7
8 ## dzone.012.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone UTC Europe/Moscow America/Bogota 08:00:00
3 08:00:00+00:00 UTC
4 11:00:00+03:00 Europe/Moscow
5 03:00:00-05:00 America/Bogota
6 $
7
8 ## dzone.012.ctst ends here
+0
-9
test/dzone.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone Europe/Berlin Australia/Sydney America/Buenos_Aires 2018-05-31
3 2018-05-31+02:00 Europe/Berlin
4 2018-05-31+10:00 Australia/Sydney
5 2018-05-31-03:00 America/Buenos_Aires
6 $
7
8 ## dzone.013.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone Europe/Berlin Australia/Sydney America/Buenos_Aires 2018-05-31
3 2018-05-31+02:00 Europe/Berlin
4 2018-05-31+10:00 Australia/Sydney
5 2018-05-31-03:00 America/Buenos_Aires
6 $
7
8 ## dzone.013.ctst ends here
+0
-14
test/dzone.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 ## this is issue #80
3 $ dzone --input-format='%m/%d/%Y,%H:%M' --from-zone='America/New_York' UTC '03/14/2017,11:30'
4 2017-03-14T15:30:00+00:00 UTC
5 $ dzone --input-format='%m/%d/%Y,%H:%M' --from-zone='America/New_York' '03/14/2017,11:30'
6 2017-03-14T15:30:00-04:00
7 $ dzone --input-format='%m/%d/%Y,%H:%M' UTC '03/14/2017,11:30'
8 2017-03-14T11:30:00+00:00 UTC
9 $ dzone --input-format='%m/%d/%Y,%H:%M' '03/14/2017,11:30'
10 2017-03-14T11:30:00+00:00
11 $
12
13 ## dzone.014.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## this is issue #80
3 $ dzone --input-format='%m/%d/%Y,%H:%M' --from-zone='America/New_York' UTC '03/14/2017,11:30'
4 2017-03-14T15:30:00+00:00 UTC
5 $ dzone --input-format='%m/%d/%Y,%H:%M' --from-zone='America/New_York' '03/14/2017,11:30'
6 2017-03-14T15:30:00-04:00
7 $ dzone --input-format='%m/%d/%Y,%H:%M' UTC '03/14/2017,11:30'
8 2017-03-14T11:30:00+00:00 UTC
9 $ dzone --input-format='%m/%d/%Y,%H:%M' '03/14/2017,11:30'
10 2017-03-14T11:30:00+00:00
11 $
12
13 ## dzone.014.ctst ends here
+0
-29
test/itostr.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ itostr-1
3 23
4 1
5 0
6 01
7 23
8 23
9 3
10
11 23
12 1
13 0
14 1
15 23
16 23
17 3
18
19 3
20 1
21 0
22 1
23 3
24 3
25 3
26 $
27
28 ## itostr.001.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ itostr-1
3 23
4 1
5 0
6 01
7 23
8 23
9 3
10
11 23
12 1
13 0
14 1
15 23
16 23
17 3
18
19 3
20 1
21 0
22 1
23 3
24 3
25 3
26 $
27
28 ## itostr.001.ctst ends here
+0
-32
test/itostr.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ itostr-2
3 123
4 23
5 10
6 0
7 001
8 123
9 23
10 3
11
12 123
13 23
14 10
15 0
16 01
17 123
18 23
19 3
20
21 23
22 3
23 0
24 0
25 1
26 3
27 23
28 3
29 $
30
31 ## itostr.002.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ itostr-2
3 123
4 23
5 10
6 0
7 001
8 123
9 23
10 3
11
12 123
13 23
14 10
15 0
16 01
17 123
18 23
19 3
20
21 23
22 3
23 0
24 0
25 1
26 3
27 23
28 3
29 $
30
31 ## itostr.002.ctst ends here
+0
-32
test/itostr.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ itostr-3
3 1234
4 23
5 10
6 000
7 0001
8 123
9 23
10 3
11
12 1234
13 23
14 10
15 0
16 01
17 123
18 0023
19 3
20
21 234
22 3
23 23
24 23
25 23
26 3
27 3
28 3
29 $
30
31 ## itostr.003.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ itostr-3
3 1234
4 23
5 10
6 000
7 0001
8 123
9 23
10 3
11
12 1234
13 23
14 10
15 0
16 01
17 123
18 0023
19 3
20
21 234
22 3
23 23
24 23
25 23
26 3
27 3
28 3
29 $
30
31 ## itostr.003.ctst ends here
+0
-23
test/itostr.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ itostr-4
3 000000000
4 000000001
5 000001234
6 012345678
7 123456789
8
9 000000
10 000001
11 000123
12 012345
13 123456
14
15 000
16 000
17 000
18 012
19 123
20 $
21
22 ## itostr.004.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ itostr-4
3 000000000
4 000000001
5 000001234
6 012345678
7 123456789
8
9 000000
10 000001
11 000123
12 012345
13 123456
14
15 000
16 000
17 000
18 012
19 123
20 $
21
22 ## itostr.004.ctst ends here
+0
-13
test/mil-midnight.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2014-10-01T24:00:00
3 2014-10-01T24:00:00
4 $ dconv 2014-10-01T24:00:01
5 2014-10-01
6 $ dconv 2014-10-01T24:00:00 -f ymcw
7 2014-10-01-03T24:00:00
8 $ dconv 2014-10-01T24:00:00 -f ywd
9 2014-W40-3T24:00:00
10 $ dconv 2014-10-01T24:00:00 -f lilian
11 157772.000000
12 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2014-10-01T24:00:00
3 2014-10-01T24:00:00
4 $ dconv 2014-10-01T24:00:01
5 2014-10-01
6 $ dconv 2014-10-01T24:00:00 -f ymcw
7 2014-10-01-03T24:00:00
8 $ dconv 2014-10-01T24:00:00 -f ywd
9 2014-W40-3T24:00:00
10 $ dconv 2014-10-01T24:00:00 -f lilian
11 157772.000000
12 $
+0
-7
test/mil-midnight.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2014-10-01T24:00:00 +1d
3 2014-10-02T24:00:00
4 $ dadd 2014-10-01T24:00:01 +1d
5 2014-10-02
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2014-10-01T24:00:00 +1d
3 2014-10-02T24:00:00
4 $ dadd 2014-10-01T24:00:01 +1d
5 2014-10-02
6 $
+0
-7
test/mil-midnight.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 2014-10-01T24:00:00 +1h
3 2014-10-02T01:00:00
4 $ dadd 2014-10-01T24:00:01 +1h
5 2014-10-01
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 2014-10-01T24:00:00 +1h
3 2014-10-02T01:00:00
4 $ dadd 2014-10-01T24:00:01 +1h
5 2014-10-01
6 $
+0
-7
test/mil-midnight.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 2014-10-01T23:00:00 2014-10-01T24:00:00
3 3600s
4 $ ddiff 2014-10-01T24:00:00 2014-10-02T00:00:00
5 0s
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 2014-10-01T23:00:00 2014-10-01T24:00:00
3 3600s
4 $ ddiff 2014-10-01T24:00:00 2014-10-02T00:00:00
5 0s
6 $
+0
-11
test/mil-midnight.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<=2014-10-01T24:00:00' <<EOF
3 2014-10-01T23:00:00
4 2014-10-01T23:30:00
5 2014-10-02T00:00:00
6 2014-10-02T00:30:00
7 EOF
8 2014-10-01T23:00:00
9 2014-10-01T23:30:00
10 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<=2014-10-01T24:00:00' <<EOF
3 2014-10-01T23:00:00
4 2014-10-01T23:30:00
5 2014-10-02T00:00:00
6 2014-10-02T00:30:00
7 EOF
8 2014-10-01T23:00:00
9 2014-10-01T23:30:00
10 $
+0
-5
test/mil-midnight.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --lt '2014-10-01T24:00:00' '2014-10-02T00:00:00' && echo yes
3 yes
4 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --lt '2014-10-01T24:00:00' '2014-10-02T00:00:00' && echo yes
3 yes
4 $
+0
-7
test/mil-midnight.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround '2014-10-01T24:00:00' /+1h
3 2014-10-01T24:00:00
4 $ dround '2014-10-01T24:00:00' /-1m
5 2014-10-01T24:00:00
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround '2014-10-01T24:00:00' /+1h
3 2014-10-01T24:00:00
4 $ dround '2014-10-01T24:00:00' /-1m
5 2014-10-01T24:00:00
6 $
+0
-6
test/mil-midnight.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone '2014-10-01T24:00:00' Europe/Berlin Australia/Sydney
3 2014-10-02T02:00:00+02:00 Europe/Berlin
4 2014-10-02T10:00:00+10:00 Australia/Sydney
5 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone '2014-10-01T24:00:00' Europe/Berlin Australia/Sydney
3 2014-10-02T02:00:00+02:00 Europe/Berlin
4 2014-10-02T10:00:00+10:00 Australia/Sydney
5 $
+0
-7
test/mil-midnight.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 24:00:00 -f '%I:%M:%S %P'
3 12:00:00 am
4 $ dconv 2014-10-01T24:00:00 -f '%F %I:%M:%S %p'
5 2014-10-02 12:00:00 AM
6 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 24:00:00 -f '%I:%M:%S %P'
3 12:00:00 am
4 $ dconv 2014-10-01T24:00:00 -f '%F %I:%M:%S %p'
5 2014-10-02 12:00:00 AM
6 $
+0
-9
test/mil-midnight.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 2014-10-01T24:00:00 -f '%F'
3 2014-10-02
4 $ dconv 2014-10-01T24:00:00 -f '%T'
5 24:00:00
6 $ dconv 2014-10-01T24:00:00 -f '%F %M:%S'
7 2014-10-02 00:00
8 $
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 2014-10-01T24:00:00 -f '%F'
3 2014-10-02
4 $ dconv 2014-10-01T24:00:00 -f '%T'
5 24:00:00
6 $ dconv 2014-10-01T24:00:00 -f '%F %M:%S'
7 2014-10-02 00:00
8 $
+0
-7
test/prchunk.001.clit less more
0 #!/usr/bin/clitoris
1
2 $ printf "2014-08-08\n" | dconv
3 2014-08-08
4 $ printf "2014-08-08" | dconv
5 2014-08-08
6 $
0 #!/usr/bin/clitosis
1
2 $ printf "2014-08-08\n" | dconv
3 2014-08-08
4 $ printf "2014-08-08" | dconv
5 2014-08-08
6 $
+0
-7
test/prchunk.002.clit less more
0 #!/usr/bin/clitoris
1
2 $ printf "2014-08-08\n" | dadd +1
3 2014-08-09
4 $ printf "2014-08-08" | dadd +1
5 2014-08-09
6 $
0 #!/usr/bin/clitosis
1
2 $ printf "2014-08-08\n" | dadd +1
3 2014-08-09
4 $ printf "2014-08-08" | dadd +1
5 2014-08-09
6 $
+0
-7
test/prchunk.003.clit less more
0 #!/usr/bin/clitoris
1
2 $ printf "2014-08-08\n" | ddiff 2014-08-01
3 7
4 $ printf "2014-08-08" | ddiff 2014-08-01
5 7
6 $
0 #!/usr/bin/clitosis
1
2 $ printf "2014-08-08\n" | ddiff 2014-08-01
3 7
4 $ printf "2014-08-08" | ddiff 2014-08-01
5 7
6 $
+0
-7
test/prchunk.004.clit less more
0 #!/usr/bin/clitoris
1
2 $ printf "2014-08-08\n" | dround Mon
3 2014-08-11
4 $ printf "2014-08-08" | dround Mon
5 2014-08-11
6 $
0 #!/usr/bin/clitosis
1
2 $ printf "2014-08-08\n" | dround Mon
3 2014-08-11
4 $ printf "2014-08-08" | dround Mon
5 2014-08-11
6 $
+0
-7
test/prchunk.005.clit less more
0 #!/usr/bin/clitoris
1
2 $ printf "2014-08-08\n" | dgrep '>2014-01-01'
3 2014-08-08
4 $ printf "2014-08-08" | dgrep '>2014-01-01'
5 2014-08-08
6 $
0 #!/usr/bin/clitosis
1
2 $ printf "2014-08-08\n" | dgrep '>2014-01-01'
3 2014-08-08
4 $ printf "2014-08-08" | dgrep '>2014-01-01'
5 2014-08-08
6 $
+0
-7
test/prchunk.006.clit less more
0 #!/usr/bin/clitoris
1
2 $ printf "2014-08-08\n" | strptime -i '%Y-%m-%d'
3 2014-08-08
4 $ printf "2014-08-08" | strptime -i '%Y-%m-%d'
5 2014-08-08
6 $
0 #!/usr/bin/clitosis
1
2 $ printf "2014-08-08\n" | strptime -i '%Y-%m-%d'
3 2014-08-08
4 $ printf "2014-08-08" | strptime -i '%Y-%m-%d'
5 2014-08-08
6 $
+0
-7
test/strptime.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ strptime -i '%a, %b-%d/%Y' 'Mon, May-01/2000'
3 2000-05-01
4 $
5
6 ## strptime.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ strptime -i '%a, %b-%d/%Y' 'Mon, May-01/2000'
3 2000-05-01
4 $
5
6 ## strptime.1.ctst ends here
+0
-11
test/strptime.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ strptime -i '%a, %b-%d/%Y' <<EOF
3 Mon, May-01/2000
4 Mon, Mar-2/2000
5 EOF
6 2000-05-01
7 2000-03-02
8 $
9
10 ## strptime.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ strptime -i '%a, %b-%d/%Y' <<EOF
3 Mon, May-01/2000
4 Mon, Mar-2/2000
5 EOF
6 2000-05-01
7 2000-03-02
8 $
9
10 ## strptime.2.ctst ends here
+0
-9
test/strptime.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ echo 1900-01-01 | strptime -i '%F'
3 1900-01-01
4 $ echo 1900-01-01 | strptime -i 'foo'
5 $ ! echo 1900-01-01 | strptime -i
6 $
7
8 ## strptime.003.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ echo 1900-01-01 | strptime -i '%F'
3 1900-01-01
4 $ ! echo 1900-01-01 | strptime -i 'foo'
5 $ ! echo 1900-01-01 | strptime -i
6 $
7
8 ## strptime.003.ctst ends here
+0
-22
test/strtoi.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ strtoi-1
3 -2 2
4 52 2
5 1 2
6 -2 2
7 10 2
8 12 2
9 0 2
10 4 1
11 8 1
12 5 1
13 -1 0
14 9 1
15 1 1
16 -1 0
17 -1 0
18 -1 0
19 $
20
21 ## strtoi.001.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ strtoi-1
3 -2 2
4 52 2
5 1 2
6 -2 2
7 10 2
8 12 2
9 0 2
10 4 1
11 8 1
12 5 1
13 -1 0
14 9 1
15 1 1
16 -1 0
17 -1 0
18 -1 0
19 $
20
21 ## strtoi.001.ctst ends here
+0
-7
test/tadd.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 10:01:00 1h6m
3 11:07:00
4 $
5
6 ## tadd.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 10:01:00 1h6m
3 11:07:00
4 $
5
6 ## tadd.1.ctst ends here
+0
-7
test/tadd.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 10:01:00 -1h6m
3 08:55:00
4 $
5
6 ## tadd.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 10:01:00 -1h6m
3 08:55:00
4 $
5
6 ## tadd.2.ctst ends here
+0
-7
test/tadd.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 10:01:00 3605s
3 11:01:05
4 $
5
6 ## tadd.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 10:01:00 3605s
3 11:01:05
4 $
5
6 ## tadd.3.ctst ends here
+0
-11
test/tadd.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 12m <<EOF
3 12:02:00
4 14:20:20
5 EOF
6 12:14:00
7 14:32:20
8 $
9
10 ## tadd.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 12m <<EOF
3 12:02:00
4 14:20:20
5 EOF
6 12:14:00
7 14:32:20
8 $
9
10 ## tadd.4.ctst ends here
+0
-11
test/tadd.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -S 12m <<EOF
3 it's 12:02:00 now
4 and now 14:20:20
5 EOF
6 it's 12:14:00 now
7 and now 14:32:20
8 $
9
10 ## tadd.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -S 12m <<EOF
3 it's 12:02:00 now
4 and now 14:20:20
5 EOF
6 it's 12:14:00 now
7 and now 14:32:20
8 $
9
10 ## tadd.5.ctst ends here
+0
-7
test/tadd.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 12:05:00 +10m
3 12:15:00
4 $
5
6 ## tadd.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 12:05:00 +10m
3 12:15:00
4 $
5
6 ## tadd.6.ctst ends here
+0
-17
test/tadd.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 12:05:00 <<EOF
3 10m
4 12m
5 1h
6 17s
7 1h17s
8 EOF
9 12:15:00
10 12:17:00
11 13:05:00
12 12:05:17
13 13:05:17
14 $
15
16 ## tadd.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 12:05:00 <<EOF
3 10m
4 12m
5 1h
6 17s
7 1h17s
8 EOF
9 12:15:00
10 12:17:00
11 13:05:00
12 12:05:17
13 13:05:17
14 $
15
16 ## tadd.7.ctst ends here
+0
-17
test/tadd.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 12:05:00 <<EOF
3 -10m
4 -12m
5 -1h
6 -17s
7 -1h17s
8 EOF
9 11:55:00
10 11:53:00
11 11:05:00
12 12:04:43
13 11:04:43
14 $
15
16 ## tadd.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 12:05:00 <<EOF
3 -10m
4 -12m
5 -1h
6 -17s
7 -1h17s
8 EOF
9 11:55:00
10 11:53:00
11 11:05:00
12 12:04:43
13 11:04:43
14 $
15
16 ## tadd.8.ctst ends here
+0
-12
test/tadd.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ?2 dadd 12:05:00 <<EOF
3 test 10m
4 1d
5 12
6 EOF
7 12:05:00
8 12:05:00
9 $
10
11 ## tadd.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ?2 dadd 12:05:00 <<EOF
3 test 10m
4 1d
5 12
6 EOF
7 12:05:00
8 12:05:00
9 $
10
11 ## tadd.9.ctst ends here
+0
-13
test/tadd.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd -S 12:05:00 <<EOF
3 test 10m
4 1d
5 12
6 EOF
7 test 10m
8 12:05:00
9 12:05:00
10 $
11
12 ## tadd.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd -S 12:05:00 <<EOF
3 test 10m
4 1d
5 12
6 EOF
7 test 10m
8 12:05:00
9 12:05:00
10 $
11
12 ## tadd.10.ctst ends here
+0
-15
test/tadd.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd 10:01:00 0
3 10:01:00
4 $ dadd 10:01:00 0s
5 10:01:00
6 $ dadd 10:01:00 0m
7 10:01:00
8 $ dadd 10:01:00 0h
9 10:01:00
10 $ dadd 10:01:00 0h0m
11 10:01:00
12 $
13
14 ## tadd.011.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd 10:01:00 0
3 10:01:00
4 $ dadd 10:01:00 0s
5 10:01:00
6 $ dadd 10:01:00 0m
7 10:01:00
8 $ dadd 10:01:00 0h
9 10:01:00
10 $ dadd 10:01:00 0h0m
11 10:01:00
12 $
13
14 ## tadd.011.ctst ends here
+0
-7
test/tconv.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv 12:03:01
3 12:03:01
4 $
5
6 ## tconv.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv 12:03:01
3 12:03:01
4 $
5
6 ## tconv.1.ctst ends here
+0
-7
test/tconv.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i "%I:%M:%S %p" "11:22:33 PM"
3 23:22:33
4 $
5
6 ## tconv.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i "%I:%M:%S %p" "11:22:33 PM"
3 23:22:33
4 $
5
6 ## tconv.2.ctst ends here
+0
-6
test/tconv.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ignore-output dconv time
3 $
4
5 ## tconv.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ignore-output dconv time
3 $
4
5 ## tconv.3.ctst ends here
+0
-13
test/tconv.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv <<EOF
3 12:03:01
4 12:59:01
5 12:59:60
6 EOF
7 12:03:01
8 12:59:01
9 12:59:60
10 $
11
12 ## tconv.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv <<EOF
3 12:03:01
4 12:59:01
5 12:59:60
6 EOF
7 12:03:01
8 12:59:01
9 12:59:60
10 $
11
12 ## tconv.4.ctst ends here
+0
-13
test/tconv.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%T' -f '%H:%M:%S' <<EOF
3 12:03:01
4 12:59:01
5 12:59:60
6 EOF
7 12:03:01
8 12:59:01
9 12:59:60
10 $
11
12 ## tconv.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%T' -f '%H:%M:%S' <<EOF
3 12:03:01
4 12:59:01
5 12:59:60
6 EOF
7 12:03:01
8 12:59:01
9 12:59:60
10 $
11
12 ## tconv.5.ctst ends here
+0
-13
test/tconv.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%H:%M:%S' -f '%T' <<EOF
3 12:03:01
4 12:59:01
5 12:59:60
6 EOF
7 12:03:01
8 12:59:01
9 12:59:60
10 $
11
12 ## tconv.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%H:%M:%S' -f '%T' <<EOF
3 12:03:01
4 12:59:01
5 12:59:60
6 EOF
7 12:03:01
8 12:59:01
9 12:59:60
10 $
11
12 ## tconv.6.ctst ends here
+0
-7
test/tconv.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' '12:00'
3 13:00:00
4 $
5
6 ## tconv.007.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' '12:00'
3 13:00:00
4 $
5
6 ## tconv.007.ctst ends here
+0
-13
test/tconv.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' <<EOF
3 12:00
4 15:02
5 17:12:34
6 EOF
7 13:00:00
8 16:02:00
9 18:12:34
10 $
11
12 ## tconv.008.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone 'Europe/London' --zone 'Europe/Berlin' <<EOF
3 12:00
4 15:02
5 17:12:34
6 EOF
7 13:00:00
8 16:02:00
9 18:12:34
10 $
11
12 ## tconv.008.ctst ends here
+0
-13
test/tconv.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone 'Asia/Singapore' <<EOF
3 12:00
4 15:02
5 17:12:34
6 EOF
7 04:00:00
8 07:02:00
9 09:12:34
10 $
11
12 ## tconv.009.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone 'Asia/Singapore' <<EOF
3 12:00
4 15:02
5 17:12:34
6 EOF
7 04:00:00
8 07:02:00
9 09:12:34
10 $
11
12 ## tconv.009.ctst ends here
+0
-7
test/tconv.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone 'Asia/Singapore' '12:00'
3 04:00:00
4 $
5
6 ## tconv.010.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone 'Asia/Singapore' '12:00'
3 04:00:00
4 $
5
6 ## tconv.010.ctst ends here
+0
-7
test/tconv.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --zone 'Asia/Singapore' '12:00'
3 20:00:00
4 $
5
6 ## tconv.011.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --zone 'Asia/Singapore' '12:00'
3 20:00:00
4 $
5
6 ## tconv.011.ctst ends here
+0
-13
test/tconv.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --zone 'Asia/Singapore' <<EOF
3 12:00
4 15:02
5 17:12:34
6 EOF
7 20:00:00
8 23:02:00
9 01:12:34
10 $
11
12 ## tconv.012.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --zone 'Asia/Singapore' <<EOF
3 12:00
4 15:02
5 17:12:34
6 EOF
7 20:00:00
8 23:02:00
9 01:12:34
10 $
11
12 ## tconv.012.ctst ends here
+0
-13
test/tconv.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%I:%M:%S %p' '12:03:01 PM'
3 12:03:01
4 $ dconv -i '%I:%M:%S %p' '01:03:01 PM'
5 13:03:01
6 $ dconv -i '%I:%M:%S %P' '12:03:01 pm'
7 12:03:01
8 $ dconv -i '%I:%M:%S %P' '01:03:01 pm'
9 13:03:01
10 $
11
12 ## tconv.013.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%I:%M:%S %p' '12:03:01 PM'
3 12:03:01
4 $ dconv -i '%I:%M:%S %p' '01:03:01 PM'
5 13:03:01
6 $ dconv -i '%I:%M:%S %P' '12:03:01 pm'
7 12:03:01
8 $ dconv -i '%I:%M:%S %P' '01:03:01 pm'
9 13:03:01
10 $
11
12 ## tconv.013.ctst ends here
+0
-13
test/tconv.014.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv -i '%I:%M:%S %p' '12:03:01 AM'
3 00:03:01
4 $ dconv -i '%I:%M:%S %p' '01:03:01 AM'
5 01:03:01
6 $ dconv -i '%I:%M:%S %P' '12:03:01 am'
7 00:03:01
8 $ dconv -i '%I:%M:%S %P' '01:03:01 am'
9 01:03:01
10 $
11
12 ## tconv.014.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv -i '%I:%M:%S %p' '12:03:01 AM'
3 00:03:01
4 $ dconv -i '%I:%M:%S %p' '01:03:01 AM'
5 01:03:01
6 $ dconv -i '%I:%M:%S %P' '12:03:01 am'
7 00:03:01
8 $ dconv -i '%I:%M:%S %P' '01:03:01 am'
9 01:03:01
10 $
11
12 ## tconv.014.ctst ends here
+0
-7
test/tdiff.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:00:00 10:00:00
3 0s
4 $
5
6 ## tdiff.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:00:00 10:00:00
3 0s
4 $
5
6 ## tdiff.1.ctst ends here
+0
-7
test/tdiff.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 10:06:00
3 300s
4 $
5
6 ## tdiff.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 10:06:00
3 300s
4 $
5
6 ## tdiff.2.ctst ends here
+0
-7
test/tdiff.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00
3 -300s
4 $
5
6 ## tdiff.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00
3 -300s
4 $
5
6 ## tdiff.3.ctst ends here
+0
-7
test/tdiff.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00 -f '%S'
3 -300
4 $
5
6 ## tdiff.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00 -f '%S'
3 -300
4 $
5
6 ## tdiff.4.ctst ends here
+0
-7
test/tdiff.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00 -f '%M %S'
3 -5 0
4 $
5
6 ## tdiff.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00 -f '%M %S'
3 -5 0
4 $
5
6 ## tdiff.5.ctst ends here
+0
-7
test/tdiff.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 11:03:10 -f '%Mm %Ss'
3 62m 10s
4 $
5
6 ## tdiff.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 11:03:10 -f '%Mm %Ss'
3 62m 10s
4 $
5
6 ## tdiff.6.ctst ends here
+0
-7
test/tdiff.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 11:03:10 -f '%H:%M:%S'
3 1:2:10
4 $
5
6 ## tdiff.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 11:03:10 -f '%H:%M:%S'
3 1:2:10
4 $
5
6 ## tdiff.7.ctst ends here
+0
-7
test/tdiff.008.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 11:03:10 -f '%S sec'
3 3730 sec
4 $
5
6 ## tdiff.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 11:03:10 -f '%S sec'
3 3730 sec
4 $
5
6 ## tdiff.8.ctst ends here
+0
-7
test/tdiff.009.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 11:03:10 -f '%T'
3 3730s
4 $
5
6 ## tdiff.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:01:00 11:03:10 -f '%T'
3 3730s
4 $
5
6 ## tdiff.9.ctst ends here
+0
-7
test/tdiff.010.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:00:00 10:00:00 -f '%0S'
3 00
4 $
5
6 ## tdiff.010.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:00:00 10:00:00 -f '%0S'
3 00
4 $
5
6 ## tdiff.010.ctst ends here
+0
-7
test/tdiff.011.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00 -f '%0M:%0S'
3 -05:00
4 $
5
6 ## tdiff.011.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00 -f '%0M:%0S'
3 -05:00
4 $
5
6 ## tdiff.011.ctst ends here
+0
-7
test/tdiff.012.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:00:00 10:00:00 -f '% S'
3 0
4 $
5
6 ## tdiff.012.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:00:00 10:00:00 -f '% S'
3 0
4 $
5
6 ## tdiff.012.ctst ends here
+0
-7
test/tdiff.013.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00 -f '% M:% S'
3 - 5: 0
4 $
5
6 ## tdiff.013.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ddiff 10:06:00 10:01:00 -f '% M:% S'
3 - 5: 0
4 $
5
6 ## tdiff.013.ctst ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 ## test case from issues/94
3 $ ddiff -i "%0H:%0M:%0S.%N" '12:00:00.000' '12:01:01.010' -f '%0S.%N'
4 61.010000000
5 $ ddiff -i "%0H:%0M:%0S.%N" '12:00:00.439000' '12:01:01.017000500' -f '%0S.%N'
6 60.578000500
7 $
8
9 ## tdiff.014.ctst ends here
+0
-13
test/tgrep.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '>=12:00:00' <<EOF
3 fileA 11:59:58
4 fileB 11:59:59 leap second?
5 fileNOON 12:00:00 new version
6 fileC 12:03:12
7 EOF
8 fileNOON 12:00:00 new version
9 fileC 12:03:12
10 $
11
12 ## tgrep.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '>=12:00:00' <<EOF
3 fileA 11:59:58
4 fileB 11:59:59 leap second?
5 fileNOON 12:00:00 new version
6 fileC 12:03:12
7 EOF
8 fileNOON 12:00:00 new version
9 fileC 12:03:12
10 $
11
12 ## tgrep.1.ctst ends here
+0
-13
test/tgrep.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep -o '>=12:00:00' <<EOF
3 fileA 11:59:58
4 fileB 11:59:59 leap second?
5 fileNOON 12:00:00 new version
6 fileC 12:03:12
7 EOF
8 12:00:00
9 12:03:12
10 $
11
12 ## tgrep.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep -o '>=12:00:00' <<EOF
3 fileA 11:59:58
4 fileB 11:59:59 leap second?
5 fileNOON 12:00:00 new version
6 fileC 12:03:12
7 EOF
8 12:00:00
9 12:03:12
10 $
11
12 ## tgrep.2.ctst ends here
+0
-13
test/tgrep.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dgrep '<12:00:00' <<EOF
3 fileA 11:59:58
4 fileB 11:59:59 leap second?
5 fileNOON 12:00:00 new version
6 fileC 12:03:12
7 EOF
8 fileA 11:59:58
9 fileB 11:59:59 leap second?
10 $
11
12 ## tgrep.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dgrep '<12:00:00' <<EOF
3 fileA 11:59:58
4 fileB 11:59:59 leap second?
5 fileNOON 12:00:00 new version
6 fileC 12:03:12
7 EOF
8 fileA 11:59:58
9 fileB 11:59:59 leap second?
10 $
11
12 ## tgrep.3.ctst ends here
6868 struct dt_t_s chk;
6969
7070 /* 12:34:56 + 17s */
71 t = dt_t_initialiser();
71 t = (struct dt_t_s){DT_TUNK};
7272 t.typ = DT_HMS;
7373 t.hms.h = 12;
7474 t.hms.m = 34;
7777 dur = 17;
7878
7979 /* should be 12:35:13 */
80 chk = dt_t_initialiser();
80 chk = (struct dt_t_s){DT_TUNK};
8181 chk.typ = DT_HMS;
8282 chk.hms.h = 12;
8383 chk.hms.m = 35;
9090
9191
9292 /* 12:34:56 + 11*3600s + 25*60s + 4s */
93 t = dt_t_initialiser();
93 t = (struct dt_t_s){DT_TUNK};
9494 t.typ = DT_HMS;
9595 t.hms.h = 12;
9696 t.hms.m = 34;
9999 dur = 11 * 3600 + 25 * 60 + 4;
100100
101101 /* should be 00:00:00 */
102 chk = dt_t_initialiser();
102 chk = (struct dt_t_s){DT_TUNK};
103103 chk.typ = DT_HMS;
104104 chk.hms.h = 00;
105105 chk.hms.m = 00;
113113
114114
115115 /* 12:34:56 + 11*3600s + 25*60s + 4s on a leap day */
116 t = dt_t_initialiser();
116 t = (struct dt_t_s){DT_TUNK};
117117 t.typ = DT_HMS;
118118 t.hms.h = 12;
119119 t.hms.m = 34;
122122 dur = 11 * 3600 + 25 * 60 + 4;
123123
124124 /* should be 00:00:00 */
125 chk = dt_t_initialiser();
125 chk = (struct dt_t_s){DT_TUNK};
126126 chk.typ = DT_HMS;
127127 chk.hms.h = 23;
128128 chk.hms.m = 59;
136136
137137
138138 /* 12:34:56 + 11*3600s + 25*60s + 3s on a -leap day */
139 t = dt_t_initialiser();
139 t = (struct dt_t_s){DT_TUNK};
140140 t.typ = DT_HMS;
141141 t.hms.h = 12;
142142 t.hms.m = 34;
145145 dur = 11 * 3600 + 25 * 60 + 3;
146146
147147 /* should be 00:00:00 */
148 chk = dt_t_initialiser();
148 chk = (struct dt_t_s){DT_TUNK};
149149 chk.typ = DT_HMS;
150150 chk.hms.h = 00;
151151 chk.hms.m = 00;
159159
160160
161161 /* 12:34:56 + 11*3600s + 25*60s + 2s on a -leap day */
162 t = dt_t_initialiser();
162 t = (struct dt_t_s){DT_TUNK};
163163 t.typ = DT_HMS;
164164 t.hms.h = 12;
165165 t.hms.m = 34;
168168 dur = 11 * 3600 + 25 * 60 + 2;
169169
170170 /* should be 00:00:00 */
171 chk = dt_t_initialiser();
171 chk = (struct dt_t_s){DT_TUNK};
172172 chk.typ = DT_HMS;
173173 chk.hms.h = 23;
174174 chk.hms.m = 59;
182182
183183
184184 /* 12:34:56 + 11*3600s + 25*60s + 3s on a +leap day */
185 t = dt_t_initialiser();
185 t = (struct dt_t_s){DT_TUNK};
186186 t.typ = DT_HMS;
187187 t.hms.h = 12;
188188 t.hms.m = 34;
191191 dur = 11 * 3600 + 25 * 60 + 3;
192192
193193 /* should be 00:00:00 */
194 chk = dt_t_initialiser();
194 chk = (struct dt_t_s){DT_TUNK};
195195 chk.typ = DT_HMS;
196196 chk.hms.h = 23;
197197 chk.hms.m = 59;
+0
-9
test/tround.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 17:04:00 1m
3 18:01:00
4 $ dround 17:04:00 /1m
5 17:04:00
6 $
7
8 ## tround.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 17:04:00 1m
3 18:01:00
4 $ dround 17:04:00 /1m
5 17:04:00
6 $
7
8 ## tround.1.ctst ends here
+0
-9
test/tround.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 17:04:00 4m
3 18:04:00
4 $ dround -n 17:04:00 /1m
5 17:05:00
6 $
7
8 ## tround.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 17:04:00 4m
3 18:04:00
4 $ dround -n 17:04:00 /1m
5 17:05:00
6 $
7
8 ## tround.2.ctst ends here
+0
-9
test/tround.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 17:05:00 5m
3 17:05:00
4 $ dround 17:04:00 /5m
5 17:05:00
6 $
7
8 ## tround.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 17:05:00 5m
3 17:05:00
4 $ dround 17:04:00 /5m
5 17:05:00
6 $
7
8 ## tround.3.ctst ends here
+0
-9
test/tround.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround -n 17:05:00 -5m
3 16:05:00
4 $ dround -n 17:04:00 /5m
5 17:05:00
6 $
7
8 ## tround.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround -n 17:05:00 -5m
3 16:05:00
4 $ dround -n 17:04:00 /5m
5 17:05:00
6 $
7
8 ## tround.4.ctst ends here
+0
-9
test/tround.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 17:05:00 -5m
3 17:05:00
4 $ dround -n 17:04:00 /-5m
5 17:00:00
6 $
7
8 ## tround.005.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 17:05:00 -5m
3 17:05:00
4 $ dround -n 17:04:00 /-5m
5 17:00:00
6 $
7
8 ## tround.005.ctst ends here
+0
-9
test/tround.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dround 17:05:00 -1m
3 17:01:00
4 $ dround 17:04:00 /-10m
5 17:00:00
6 $
7
8 ## tround.006.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dround 17:05:00 -1m
3 17:01:00
4 $ dround 17:04:00 /-10m
5 17:00:00
6 $
7
8 ## tround.006.ctst ends here
+0
-13
test/tseq.01.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 10:00:00 12m 11:20:00
3 10:00:00
4 10:12:00
5 10:24:00
6 10:36:00
7 10:48:00
8 11:00:00
9 11:12:00
10 $
11
12 ## tseq.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 10:00:00 12m 11:20:00
3 10:00:00
4 10:12:00
5 10:24:00
6 10:36:00
7 10:48:00
8 11:00:00
9 11:12:00
10 $
11
12 ## tseq.1.ctst ends here
+0
-13
test/tseq.02.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 10:00:00 12m 11:20:00
3 10:08:00
4 10:20:00
5 10:32:00
6 10:44:00
7 10:56:00
8 11:08:00
9 11:20:00
10 $
11
12 ## tseq.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 10:00:00 12m 11:20:00
3 10:08:00
4 10:20:00
5 10:32:00
6 10:44:00
7 10:56:00
8 11:08:00
9 11:20:00
10 $
11
12 ## tseq.2.ctst ends here
+0
-13
test/tseq.03.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 11:20:00 -12m 10:00:00
3 11:20:00
4 11:08:00
5 10:56:00
6 10:44:00
7 10:32:00
8 10:20:00
9 10:08:00
10 $
11
12 ## tseq.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 11:20:00 -12m 10:00:00
3 11:20:00
4 11:08:00
5 10:56:00
6 10:44:00
7 10:32:00
8 10:20:00
9 10:08:00
10 $
11
12 ## tseq.3.ctst ends here
+0
-13
test/tseq.04.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 11:20:00 -12m 10:00:00
3 11:12:00
4 11:00:00
5 10:48:00
6 10:36:00
7 10:24:00
8 10:12:00
9 10:00:00
10 $
11
12 ## tseq.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq --compute-from-last 11:20:00 -12m 10:00:00
3 11:12:00
4 11:00:00
5 10:48:00
6 10:36:00
7 10:24:00
8 10:12:00
9 10:00:00
10 $
11
12 ## tseq.4.ctst ends here
+0
-60
test/tseq.05.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 10:00:00 -12m 23:20:00
3 10:00:00
4 09:48:00
5 09:36:00
6 09:24:00
7 09:12:00
8 09:00:00
9 08:48:00
10 08:36:00
11 08:24:00
12 08:12:00
13 08:00:00
14 07:48:00
15 07:36:00
16 07:24:00
17 07:12:00
18 07:00:00
19 06:48:00
20 06:36:00
21 06:24:00
22 06:12:00
23 06:00:00
24 05:48:00
25 05:36:00
26 05:24:00
27 05:12:00
28 05:00:00
29 04:48:00
30 04:36:00
31 04:24:00
32 04:12:00
33 04:00:00
34 03:48:00
35 03:36:00
36 03:24:00
37 03:12:00
38 03:00:00
39 02:48:00
40 02:36:00
41 02:24:00
42 02:12:00
43 02:00:00
44 01:48:00
45 01:36:00
46 01:24:00
47 01:12:00
48 01:00:00
49 00:48:00
50 00:36:00
51 00:24:00
52 00:12:00
53 00:00:00
54 23:48:00
55 23:36:00
56 23:24:00
57 $
58
59 ## tseq.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 10:00:00 -12m 23:20:00
3 10:00:00
4 09:48:00
5 09:36:00
6 09:24:00
7 09:12:00
8 09:00:00
9 08:48:00
10 08:36:00
11 08:24:00
12 08:12:00
13 08:00:00
14 07:48:00
15 07:36:00
16 07:24:00
17 07:12:00
18 07:00:00
19 06:48:00
20 06:36:00
21 06:24:00
22 06:12:00
23 06:00:00
24 05:48:00
25 05:36:00
26 05:24:00
27 05:12:00
28 05:00:00
29 04:48:00
30 04:36:00
31 04:24:00
32 04:12:00
33 04:00:00
34 03:48:00
35 03:36:00
36 03:24:00
37 03:12:00
38 03:00:00
39 02:48:00
40 02:36:00
41 02:24:00
42 02:12:00
43 02:00:00
44 01:48:00
45 01:36:00
46 01:24:00
47 01:12:00
48 01:00:00
49 00:48:00
50 00:36:00
51 00:24:00
52 00:12:00
53 00:00:00
54 23:48:00
55 23:36:00
56 23:24:00
57 $
58
59 ## tseq.5.ctst ends here
+0
-60
test/tseq.06.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 23:20:00 12m 10:00:00
3 23:20:00
4 23:32:00
5 23:44:00
6 23:56:00
7 00:08:00
8 00:20:00
9 00:32:00
10 00:44:00
11 00:56:00
12 01:08:00
13 01:20:00
14 01:32:00
15 01:44:00
16 01:56:00
17 02:08:00
18 02:20:00
19 02:32:00
20 02:44:00
21 02:56:00
22 03:08:00
23 03:20:00
24 03:32:00
25 03:44:00
26 03:56:00
27 04:08:00
28 04:20:00
29 04:32:00
30 04:44:00
31 04:56:00
32 05:08:00
33 05:20:00
34 05:32:00
35 05:44:00
36 05:56:00
37 06:08:00
38 06:20:00
39 06:32:00
40 06:44:00
41 06:56:00
42 07:08:00
43 07:20:00
44 07:32:00
45 07:44:00
46 07:56:00
47 08:08:00
48 08:20:00
49 08:32:00
50 08:44:00
51 08:56:00
52 09:08:00
53 09:20:00
54 09:32:00
55 09:44:00
56 09:56:00
57 $
58
59 ## tseq.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 23:20:00 12m 10:00:00
3 23:20:00
4 23:32:00
5 23:44:00
6 23:56:00
7 00:08:00
8 00:20:00
9 00:32:00
10 00:44:00
11 00:56:00
12 01:08:00
13 01:20:00
14 01:32:00
15 01:44:00
16 01:56:00
17 02:08:00
18 02:20:00
19 02:32:00
20 02:44:00
21 02:56:00
22 03:08:00
23 03:20:00
24 03:32:00
25 03:44:00
26 03:56:00
27 04:08:00
28 04:20:00
29 04:32:00
30 04:44:00
31 04:56:00
32 05:08:00
33 05:20:00
34 05:32:00
35 05:44:00
36 05:56:00
37 06:08:00
38 06:20:00
39 06:32:00
40 06:44:00
41 06:56:00
42 07:08:00
43 07:20:00
44 07:32:00
45 07:44:00
46 07:56:00
47 08:08:00
48 08:20:00
49 08:32:00
50 08:44:00
51 08:56:00
52 09:08:00
53 09:20:00
54 09:32:00
55 09:44:00
56 09:56:00
57 $
58
59 ## tseq.6.ctst ends here
+0
-15
test/tseq.07.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 23:20:00 20m 02:00:00
3 23:20:00
4 23:40:00
5 00:00:00
6 00:20:00
7 00:40:00
8 01:00:00
9 01:20:00
10 01:40:00
11 02:00:00
12 $
13
14 ## tseq.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 23:20:00 20m 02:00:00
3 23:20:00
4 23:40:00
5 00:00:00
6 00:20:00
7 00:40:00
8 01:00:00
9 01:20:00
10 01:40:00
11 02:00:00
12 $
13
14 ## tseq.7.ctst ends here
+0
-15
test/tseq.08.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 02:00:00 -20m 23:20:00
3 02:00:00
4 01:40:00
5 01:20:00
6 01:00:00
7 00:40:00
8 00:20:00
9 00:00:00
10 23:40:00
11 23:20:00
12 $
13
14 ## tseq.8.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 02:00:00 -20m 23:20:00
3 02:00:00
4 01:40:00
5 01:20:00
6 01:00:00
7 00:40:00
8 00:20:00
9 00:00:00
10 23:40:00
11 23:20:00
12 $
13
14 ## tseq.8.ctst ends here
+0
-17
test/tseq.09.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 02:00:00 +30m 07:00:00
3 02:00:00
4 02:30:00
5 03:00:00
6 03:30:00
7 04:00:00
8 04:30:00
9 05:00:00
10 05:30:00
11 06:00:00
12 06:30:00
13 07:00:00
14 $
15
16 ## tseq.9.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 02:00:00 +30m 07:00:00
3 02:00:00
4 02:30:00
5 03:00:00
6 03:30:00
7 04:00:00
8 04:30:00
9 05:00:00
10 05:30:00
11 06:00:00
12 06:30:00
13 07:00:00
14 $
15
16 ## tseq.9.ctst ends here
+0
-12
test/tseq.10.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 02:00:00 +60m 07:00:00
3 02:00:00
4 03:00:00
5 04:00:00
6 05:00:00
7 06:00:00
8 07:00:00
9 $
10
11 ## tseq.10.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 02:00:00 +60m 07:00:00
3 02:00:00
4 03:00:00
5 04:00:00
6 05:00:00
7 06:00:00
8 07:00:00
9 $
10
11 ## tseq.10.ctst ends here
+0
-12
test/tseq.11.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 02:00:00 +1h 07:00:00
3 02:00:00
4 03:00:00
5 04:00:00
6 05:00:00
7 06:00:00
8 07:00:00
9 $
10
11 ## tseq.11.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 02:00:00 +1h 07:00:00
3 02:00:00
4 03:00:00
5 04:00:00
6 05:00:00
7 06:00:00
8 07:00:00
9 $
10
11 ## tseq.11.ctst ends here
+0
-29
test/tseq.12.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 01:00:00 +60m 23:00:00
3 01:00:00
4 02:00:00
5 03:00:00
6 04:00:00
7 05:00:00
8 06:00:00
9 07:00:00
10 08:00:00
11 09:00:00
12 10:00:00
13 11:00:00
14 12:00:00
15 13:00:00
16 14:00:00
17 15:00:00
18 16:00:00
19 17:00:00
20 18:00:00
21 19:00:00
22 20:00:00
23 21:00:00
24 22:00:00
25 23:00:00
26 $
27
28 ## tseq.12.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 01:00:00 +60m 23:00:00
3 01:00:00
4 02:00:00
5 03:00:00
6 04:00:00
7 05:00:00
8 06:00:00
9 07:00:00
10 08:00:00
11 09:00:00
12 10:00:00
13 11:00:00
14 12:00:00
15 13:00:00
16 14:00:00
17 15:00:00
18 16:00:00
19 17:00:00
20 18:00:00
21 19:00:00
22 20:00:00
23 21:00:00
24 22:00:00
25 23:00:00
26 $
27
28 ## tseq.12.ctst ends here
+0
-29
test/tseq.13.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 01:00:00 +1h 23:00:00
3 01:00:00
4 02:00:00
5 03:00:00
6 04:00:00
7 05:00:00
8 06:00:00
9 07:00:00
10 08:00:00
11 09:00:00
12 10:00:00
13 11:00:00
14 12:00:00
15 13:00:00
16 14:00:00
17 15:00:00
18 16:00:00
19 17:00:00
20 18:00:00
21 19:00:00
22 20:00:00
23 21:00:00
24 22:00:00
25 23:00:00
26 $
27
28 ## tseq.13.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 01:00:00 +1h 23:00:00
3 01:00:00
4 02:00:00
5 03:00:00
6 04:00:00
7 05:00:00
8 06:00:00
9 07:00:00
10 08:00:00
11 09:00:00
12 10:00:00
13 11:00:00
14 12:00:00
15 13:00:00
16 14:00:00
17 15:00:00
18 16:00:00
19 17:00:00
20 18:00:00
21 19:00:00
22 20:00:00
23 21:00:00
24 22:00:00
25 23:00:00
26 $
27
28 ## tseq.13.ctst ends here
+0
-29
test/tseq.14.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 01:20:00 +60m 23:20:00
3 01:20:00
4 02:20:00
5 03:20:00
6 04:20:00
7 05:20:00
8 06:20:00
9 07:20:00
10 08:20:00
11 09:20:00
12 10:20:00
13 11:20:00
14 12:20:00
15 13:20:00
16 14:20:00
17 15:20:00
18 16:20:00
19 17:20:00
20 18:20:00
21 19:20:00
22 20:20:00
23 21:20:00
24 22:20:00
25 23:20:00
26 $
27
28 ## tseq.14.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 01:20:00 +60m 23:20:00
3 01:20:00
4 02:20:00
5 03:20:00
6 04:20:00
7 05:20:00
8 06:20:00
9 07:20:00
10 08:20:00
11 09:20:00
12 10:20:00
13 11:20:00
14 12:20:00
15 13:20:00
16 14:20:00
17 15:20:00
18 16:20:00
19 17:20:00
20 18:20:00
21 19:20:00
22 20:20:00
23 21:20:00
24 22:20:00
25 23:20:00
26 $
27
28 ## tseq.14.ctst ends here
+0
-29
test/tseq.15.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 01:20:00 +1h 23:20:00
3 01:20:00
4 02:20:00
5 03:20:00
6 04:20:00
7 05:20:00
8 06:20:00
9 07:20:00
10 08:20:00
11 09:20:00
12 10:20:00
13 11:20:00
14 12:20:00
15 13:20:00
16 14:20:00
17 15:20:00
18 16:20:00
19 17:20:00
20 18:20:00
21 19:20:00
22 20:20:00
23 21:20:00
24 22:20:00
25 23:20:00
26 $
27
28 ## tseq.15.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 01:20:00 +1h 23:20:00
3 01:20:00
4 02:20:00
5 03:20:00
6 04:20:00
7 05:20:00
8 06:20:00
9 07:20:00
10 08:20:00
11 09:20:00
12 10:20:00
13 11:20:00
14 12:20:00
15 13:20:00
16 14:20:00
17 15:20:00
18 16:20:00
19 17:20:00
20 18:20:00
21 19:20:00
22 20:20:00
23 21:20:00
24 22:20:00
25 23:20:00
26 $
27
28 ## tseq.15.ctst ends here
+0
-30
test/tseq.16.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 01:00:00 +1h 00:00:00
3 01:00:00
4 02:00:00
5 03:00:00
6 04:00:00
7 05:00:00
8 06:00:00
9 07:00:00
10 08:00:00
11 09:00:00
12 10:00:00
13 11:00:00
14 12:00:00
15 13:00:00
16 14:00:00
17 15:00:00
18 16:00:00
19 17:00:00
20 18:00:00
21 19:00:00
22 20:00:00
23 21:00:00
24 22:00:00
25 23:00:00
26 00:00:00
27 $
28
29 ## tseq.16.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 01:00:00 +1h 00:00:00
3 01:00:00
4 02:00:00
5 03:00:00
6 04:00:00
7 05:00:00
8 06:00:00
9 07:00:00
10 08:00:00
11 09:00:00
12 10:00:00
13 11:00:00
14 12:00:00
15 13:00:00
16 14:00:00
17 15:00:00
18 16:00:00
19 17:00:00
20 18:00:00
21 19:00:00
22 20:00:00
23 21:00:00
24 22:00:00
25 23:00:00
26 00:00:00
27 $
28
29 ## tseq.16.ctst ends here
+0
-30
test/tseq.17.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 01:00:00 -1h 02:00:00
3 01:00:00
4 00:00:00
5 23:00:00
6 22:00:00
7 21:00:00
8 20:00:00
9 19:00:00
10 18:00:00
11 17:00:00
12 16:00:00
13 15:00:00
14 14:00:00
15 13:00:00
16 12:00:00
17 11:00:00
18 10:00:00
19 09:00:00
20 08:00:00
21 07:00:00
22 06:00:00
23 05:00:00
24 04:00:00
25 03:00:00
26 02:00:00
27 $
28
29 ## tseq.17.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 01:00:00 -1h 02:00:00
3 01:00:00
4 00:00:00
5 23:00:00
6 22:00:00
7 21:00:00
8 20:00:00
9 19:00:00
10 18:00:00
11 17:00:00
12 16:00:00
13 15:00:00
14 14:00:00
15 13:00:00
16 12:00:00
17 11:00:00
18 10:00:00
19 09:00:00
20 08:00:00
21 07:00:00
22 06:00:00
23 05:00:00
24 04:00:00
25 03:00:00
26 02:00:00
27 $
28
29 ## tseq.17.ctst ends here
+0
-31
test/tseq.18.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 01:00:00 +1h 01:00:00
3 01:00:00
4 02:00:00
5 03:00:00
6 04:00:00
7 05:00:00
8 06:00:00
9 07:00:00
10 08:00:00
11 09:00:00
12 10:00:00
13 11:00:00
14 12:00:00
15 13:00:00
16 14:00:00
17 15:00:00
18 16:00:00
19 17:00:00
20 18:00:00
21 19:00:00
22 20:00:00
23 21:00:00
24 22:00:00
25 23:00:00
26 00:00:00
27 01:00:00
28 $
29
30 ## tseq.18.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 01:00:00 +1h 01:00:00
3 01:00:00
4 02:00:00
5 03:00:00
6 04:00:00
7 05:00:00
8 06:00:00
9 07:00:00
10 08:00:00
11 09:00:00
12 10:00:00
13 11:00:00
14 12:00:00
15 13:00:00
16 14:00:00
17 15:00:00
18 16:00:00
19 17:00:00
20 18:00:00
21 19:00:00
22 20:00:00
23 21:00:00
24 22:00:00
25 23:00:00
26 00:00:00
27 01:00:00
28 $
29
30 ## tseq.18.ctst ends here
+0
-31
test/tseq.19.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dseq 01:00:00 -1h 01:00:00
3 01:00:00
4 00:00:00
5 23:00:00
6 22:00:00
7 21:00:00
8 20:00:00
9 19:00:00
10 18:00:00
11 17:00:00
12 16:00:00
13 15:00:00
14 14:00:00
15 13:00:00
16 12:00:00
17 11:00:00
18 10:00:00
19 09:00:00
20 08:00:00
21 07:00:00
22 06:00:00
23 05:00:00
24 04:00:00
25 03:00:00
26 02:00:00
27 01:00:00
28 $
29
30 ## tseq.19.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dseq 01:00:00 -1h 01:00:00
3 01:00:00
4 00:00:00
5 23:00:00
6 22:00:00
7 21:00:00
8 20:00:00
9 19:00:00
10 18:00:00
11 17:00:00
12 16:00:00
13 15:00:00
14 14:00:00
15 13:00:00
16 12:00:00
17 11:00:00
18 10:00:00
19 09:00:00
20 08:00:00
21 07:00:00
22 06:00:00
23 05:00:00
24 04:00:00
25 03:00:00
26 02:00:00
27 01:00:00
28 $
29
30 ## tseq.19.ctst ends here
+0
-7
test/ttest.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 12:00:04 --gt 11:22:33 && echo "true"
3 true
4 $
5
6 ## ttest.1.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 12:00:04 --gt 11:22:33 && echo "true"
3 true
4 $
5
6 ## ttest.1.ctst ends here
+0
-7
test/ttest.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 12:00:04 --lt 11:22:33 || echo "false"
3 false
4 $
5
6 ## ttest.2.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 12:00:04 --lt 11:22:33 || echo "false"
3 false
4 $
5
6 ## ttest.2.ctst ends here
+0
-7
test/ttest.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest 12:00:04 --cmp 11:22:33; echo "${?}"
3 1
4 $
5
6 ## ttest.3.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest 12:00:04 --cmp 11:22:33; echo "${?}"
3 1
4 $
5
6 ## ttest.3.ctst ends here
+0
-7
test/ttest.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --cmp 11:22:33 12:00:04; echo "${?}"
3 2
4 $
5
6 ## ttest.4.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --cmp 11:22:33 12:00:04; echo "${?}"
3 2
4 $
5
6 ## ttest.4.ctst ends here
+0
-7
test/ttest.005.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --cmp 11:22:33 11:22:33; echo "${?}"
3 0
4 $
5
6 ## ttest.5.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --cmp 11:22:33 11:22:33; echo "${?}"
3 0
4 $
5
6 ## ttest.5.ctst ends here
+0
-7
test/ttest.006.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --eq 11:22:33 11:22:33 && echo "true"
3 true
4 $
5
6 ## ttest.6.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --eq 11:22:33 11:22:33 && echo "true"
3 true
4 $
5
6 ## ttest.6.ctst ends here
+0
-7
test/ttest.007.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dtest --ne 11:22:33 11:22:33 || echo "false"
3 false
4 $
5
6 ## ttest.7.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dtest --ne 11:22:33 11:22:33 || echo "false"
3 false
4 $
5
6 ## ttest.7.ctst ends here
+0
-7
test/tzmap.001.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone dummy:XETR 2012-03-04T12:04:11
3 2012-03-04T13:04:11+01:00 dummy:XETR
4 $
5
6 ## tzmap.001.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone dummy:XETR 2012-03-04T12:04:11
3 2012-03-04T13:04:11+01:00 dummy:XETR
4 $
5
6 ## tzmap.001.ctst ends here
+0
-7
test/tzmap.002.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dconv --from-zone dummy:XETR 2012-03-04T12:04:11
3 2012-03-04T11:04:11
4 $
5
6 ## tzmap.002.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dconv --from-zone dummy:XETR 2012-03-04T12:04:11
3 2012-03-04T11:04:11
4 $
5
6 ## tzmap.002.ctst ends here
+0
-7
test/tzmap.003.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dzone dummy:XETR --from-zone dummy:XLON 2012-03-04T12:04:11
3 2012-03-04T13:04:11+01:00 dummy:XETR
4 $
5
6 ## tzmap.003.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dzone dummy:XETR --from-zone dummy:XLON 2012-03-04T12:04:11
3 2012-03-04T13:04:11+01:00 dummy:XETR
4 $
5
6 ## tzmap.003.ctst ends here
+0
-7
test/tzmap.004.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ dadd --zone dummy:XETR --from-zone Europe/London 2012-03-04T12:04:11 +1h
3 2012-03-04T14:04:11
4 $
5
6 ## tzmap.004.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ dadd --zone dummy:XETR --from-zone Europe/London 2012-03-04T12:04:11 +1h
3 2012-03-04T14:04:11
4 $
5
6 ## tzmap.004.ctst ends here
+0
-7
test/tzmap_check_01.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ ignore-return find "${root}/lib" "${TZMAP_DIR}/../lib" -name '*.tzmap' | \
3 xargs "${TZMAP}" check
4 $
5
6 ## tzmap_check_01.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ ignore-return find "${root}/lib" "${TZMAP_DIR}/../lib" -name '*.tzmap' | \
3 xargs "${TZMAP}" check
4 $
5
6 ## tzmap_check_01.ctst ends here
+0
-6
test/tzmap_check_02.clit less more
0 #!/usr/bin/clitoris ## -*- shell-script -*-
1
2 $ find "${root}/lib" "${TZMAP_DIR}/../lib" -name '*.tzmcc' | xargs "${TZMAP}" check
3 $
4
5 ## tzmap_check_02.clit ends here
0 #!/usr/bin/clitosis ## -*- shell-script -*-
1
2 $ find "${root}/lib" "${TZMAP_DIR}/../lib" -name '*.tzmcc' | xargs "${TZMAP}" check
3 $
4
5 ## tzmap_check_02.ctst ends here