source: git/tests/cmd_date.svx @ 00d94ee

RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 00d94ee was e0c7cd1, checked in by Olly Betts <olly@…>, 19 years ago

cavern: Add validity checking for dates in *date commands with feature
test. A date entered as just "year" or "year.month" now becomes a date
range for the relevant period (previously it became a single date near
the middle of that period).

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3084 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 945 bytes
Line 
1; valid dates:
2*begin
3*date 70.01.01
4*date 70.01
5*date 70.02
6*date 70
7*date 99.12.31
8*date 1970-2000
9*date 1970.01.01
10*date 1970.01
11*date 1970.02
12*date 1970
13*date 1970-2000
14*date 1975.01.31
15*date 1975.02.28
16*date 1975.03.31
17*date 1975.04.30
18*date 1975.05.31
19*date 1975.06.30
20*date 1975.07.31
21*date 1975.08.31
22*date 1975.09.30
23*date 1975.10.31
24*date 1975.11.30
25*date 1975.12.31
26*date 1976.02.29
27*date 1976.03.31
28*date 1976.04.30
29*date 1976.05.31
30*date 1976.06.30
31*date 1976.07.31
32*date 1976.08.31
33*date 1976.09.30
34*date 1976.10.31
35*date 1976.11.30
36*date 1976.12.31
37*date 2000.01.31
38*date 2000.02.28
39*date 2000.03.31
40*date 2000.04.30
41*date 2000.05.31
42*date 2000.06.30
43*date 2000.07.31
44*date 2000.08.31
45*date 2000.09.30
46*date 2000.10.31
47*date 2000.11.30
48*date 2000.12.31
49*date 2000.01.31
50; these should generate one "date in future" warning each (unless it's now
51; 2037!)
52*date 2037.12.31
53*date 2037.06
54*date 2037
55*fix 1 0 0 0
561 2 1.0 020 -03
57*end
Note: See TracBrowser for help on using the repository browser.