Home » Archimedes archive » Zipped Apps » PipeDream » Custom/CF_sheets/c_DatFormE

Custom/CF_sheets/c_DatFormE

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Zipped Apps » PipeDream
Filename: Custom/CF_sheets/c_DatFormE
Read OK:
File size: 0760 bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
%OP%DP0
%OP%FX
%OP%FY
%OP%FS
%OP%NDsuffixnames,c12c21
%OP%NDdigit,9
%OP%NDmonth_table,b1b12
%OP%NDweekdays,c1c7
%OP%NDdaytext,""
%OP%NDdate_text,"9.10.91"
%OP%NDsuffix,c21
%OP%NDmonthtext,"10"
%OP%NDyeartext,"91"
%OP%WC2,1238,1012,1364,0,0,0,0
%OP%VS3.81 Test (Oct  8 1991), Colton Software - Development, R0123 4567 8901 2345
%CO:A,78,0%%V%%L%function("format_date","when","daypl","theon","dateon","suffon","ofon","monpl","yearpl","sep:text")
%V%%L%if(type(@when)<>"date",result("Bad Date"),)
%V%%L%set_name("yeartext",right(string(year(@when),0),@yearpl))
%V%%L%set_name("month_table",b1b12)
%V%%L%set_name("weekdays",c1c7)
%V%%L%set_name("digit",mod(day(@when),10))
%V%%L%set_name("suffixnames",c12c21)
%V%%L%set_name("suffix",index(suffixnames,1,digit+1))
%V%%L%if(@monpl<>-1,set_name("monthtext",mid(index(month_table,1,month(@when)),1,@monpl)),set_name("monthtext",string(month(@when),0)))
%V%%L%set_name("daytext",mid(index(weekdays,1,weekday(@when)),1,@daypl))
%V%%L%if(@daypl<>0,set_name("date_text",daytext),set_name("date_text",""))
%V%%L%if(@theon=1,set_name("date_text",join(date_text,@sep,c9,@sep)),set_name("date_text",join(date_text,@sep)))
%V%%L%if(@dateon=1,set_name("date_text",join(date_text,string(day(@when),0))),0)
%V%%L%if(@suffon=1,set_name("date_text",join(date_text,suffix)),0)
%V%%L%if(@ofon=1,set_name("date_text",join(date_text,@sep,c10,@sep)),set_name("date_text",join(date_text,@sep)))
%V%%L%if(@monpl<>0,set_name("date_text",join(date_text,monthtext)),0)
%V%%L%if(@yearpl<>0,set_name("date_text",join(date_text,@sep,yeartext)),0)
%V%%L%if(left(date_text,1)=@sep,set_name("date_text",right(date_text,length(date_text)-1)),0)
%V%%L%result(date_text)
%CO:B,12,24%January
February
March
April
May
June
July
August
September
October
November
December
%CO:C,12,12%Sunday
Monday
 Tuesday
Wednesday
Thursday
Friday
Saturday

the
of

th
st
nd
rd
th
th
th
th
th
th
00000000  25 4f 50 25 44 50 30 0a  25 4f 50 25 46 58 0a 25  |%OP%DP0.%OP%FX.%|
00000010  4f 50 25 46 59 0a 25 4f  50 25 46 53 0a 25 4f 50  |OP%FY.%OP%FS.%OP|
00000020  25 4e 44 73 75 66 66 69  78 6e 61 6d 65 73 2c 63  |%NDsuffixnames,c|
00000030  31 32 63 32 31 0a 25 4f  50 25 4e 44 64 69 67 69  |12c21.%OP%NDdigi|
00000040  74 2c 39 0a 25 4f 50 25  4e 44 6d 6f 6e 74 68 5f  |t,9.%OP%NDmonth_|
00000050  74 61 62 6c 65 2c 62 31  62 31 32 0a 25 4f 50 25  |table,b1b12.%OP%|
00000060  4e 44 77 65 65 6b 64 61  79 73 2c 63 31 63 37 0a  |NDweekdays,c1c7.|
00000070  25 4f 50 25 4e 44 64 61  79 74 65 78 74 2c 22 22  |%OP%NDdaytext,""|
00000080  0a 25 4f 50 25 4e 44 64  61 74 65 5f 74 65 78 74  |.%OP%NDdate_text|
00000090  2c 22 39 2e 31 30 2e 39  31 22 0a 25 4f 50 25 4e  |,"9.10.91".%OP%N|
000000a0  44 73 75 66 66 69 78 2c  63 32 31 0a 25 4f 50 25  |Dsuffix,c21.%OP%|
000000b0  4e 44 6d 6f 6e 74 68 74  65 78 74 2c 22 31 30 22  |NDmonthtext,"10"|
000000c0  0a 25 4f 50 25 4e 44 79  65 61 72 74 65 78 74 2c  |.%OP%NDyeartext,|
000000d0  22 39 31 22 0a 25 4f 50  25 57 43 32 2c 31 32 33  |"91".%OP%WC2,123|
000000e0  38 2c 31 30 31 32 2c 31  33 36 34 2c 30 2c 30 2c  |8,1012,1364,0,0,|
000000f0  30 2c 30 0a 25 4f 50 25  56 53 33 2e 38 31 20 54  |0,0.%OP%VS3.81 T|
00000100  65 73 74 20 28 4f 63 74  20 20 38 20 31 39 39 31  |est (Oct  8 1991|
00000110  29 2c 20 43 6f 6c 74 6f  6e 20 53 6f 66 74 77 61  |), Colton Softwa|
00000120  72 65 20 2d 20 44 65 76  65 6c 6f 70 6d 65 6e 74  |re - Development|
00000130  2c 20 52 30 31 32 33 20  34 35 36 37 20 38 39 30  |, R0123 4567 890|
00000140  31 20 32 33 34 35 0a 25  43 4f 3a 41 2c 37 38 2c  |1 2345.%CO:A,78,|
00000150  30 25 25 56 25 25 4c 25  66 75 6e 63 74 69 6f 6e  |0%%V%%L%function|
00000160  28 22 66 6f 72 6d 61 74  5f 64 61 74 65 22 2c 22  |("format_date","|
00000170  77 68 65 6e 22 2c 22 64  61 79 70 6c 22 2c 22 74  |when","daypl","t|
00000180  68 65 6f 6e 22 2c 22 64  61 74 65 6f 6e 22 2c 22  |heon","dateon","|
00000190  73 75 66 66 6f 6e 22 2c  22 6f 66 6f 6e 22 2c 22  |suffon","ofon","|
000001a0  6d 6f 6e 70 6c 22 2c 22  79 65 61 72 70 6c 22 2c  |monpl","yearpl",|
000001b0  22 73 65 70 3a 74 65 78  74 22 29 0a 25 56 25 25  |"sep:text").%V%%|
000001c0  4c 25 69 66 28 74 79 70  65 28 40 77 68 65 6e 29  |L%if(type(@when)|
000001d0  3c 3e 22 64 61 74 65 22  2c 72 65 73 75 6c 74 28  |<>"date",result(|
000001e0  22 42 61 64 20 44 61 74  65 22 29 2c 29 0a 25 56  |"Bad Date"),).%V|
000001f0  25 25 4c 25 73 65 74 5f  6e 61 6d 65 28 22 79 65  |%%L%set_name("ye|
00000200  61 72 74 65 78 74 22 2c  72 69 67 68 74 28 73 74  |artext",right(st|
00000210  72 69 6e 67 28 79 65 61  72 28 40 77 68 65 6e 29  |ring(year(@when)|
00000220  2c 30 29 2c 40 79 65 61  72 70 6c 29 29 0a 25 56  |,0),@yearpl)).%V|
00000230  25 25 4c 25 73 65 74 5f  6e 61 6d 65 28 22 6d 6f  |%%L%set_name("mo|
00000240  6e 74 68 5f 74 61 62 6c  65 22 2c 62 31 62 31 32  |nth_table",b1b12|
00000250  29 0a 25 56 25 25 4c 25  73 65 74 5f 6e 61 6d 65  |).%V%%L%set_name|
00000260  28 22 77 65 65 6b 64 61  79 73 22 2c 63 31 63 37  |("weekdays",c1c7|
00000270  29 0a 25 56 25 25 4c 25  73 65 74 5f 6e 61 6d 65  |).%V%%L%set_name|
00000280  28 22 64 69 67 69 74 22  2c 6d 6f 64 28 64 61 79  |("digit",mod(day|
00000290  28 40 77 68 65 6e 29 2c  31 30 29 29 0a 25 56 25  |(@when),10)).%V%|
000002a0  25 4c 25 73 65 74 5f 6e  61 6d 65 28 22 73 75 66  |%L%set_name("suf|
000002b0  66 69 78 6e 61 6d 65 73  22 2c 63 31 32 63 32 31  |fixnames",c12c21|
000002c0  29 0a 25 56 25 25 4c 25  73 65 74 5f 6e 61 6d 65  |).%V%%L%set_name|
000002d0  28 22 73 75 66 66 69 78  22 2c 69 6e 64 65 78 28  |("suffix",index(|
000002e0  73 75 66 66 69 78 6e 61  6d 65 73 2c 31 2c 64 69  |suffixnames,1,di|
000002f0  67 69 74 2b 31 29 29 0a  25 56 25 25 4c 25 69 66  |git+1)).%V%%L%if|
00000300  28 40 6d 6f 6e 70 6c 3c  3e 2d 31 2c 73 65 74 5f  |(@monpl<>-1,set_|
00000310  6e 61 6d 65 28 22 6d 6f  6e 74 68 74 65 78 74 22  |name("monthtext"|
00000320  2c 6d 69 64 28 69 6e 64  65 78 28 6d 6f 6e 74 68  |,mid(index(month|
00000330  5f 74 61 62 6c 65 2c 31  2c 6d 6f 6e 74 68 28 40  |_table,1,month(@|
00000340  77 68 65 6e 29 29 2c 31  2c 40 6d 6f 6e 70 6c 29  |when)),1,@monpl)|
00000350  29 2c 73 65 74 5f 6e 61  6d 65 28 22 6d 6f 6e 74  |),set_name("mont|
00000360  68 74 65 78 74 22 2c 73  74 72 69 6e 67 28 6d 6f  |htext",string(mo|
00000370  6e 74 68 28 40 77 68 65  6e 29 2c 30 29 29 29 0a  |nth(@when),0))).|
00000380  25 56 25 25 4c 25 73 65  74 5f 6e 61 6d 65 28 22  |%V%%L%set_name("|
00000390  64 61 79 74 65 78 74 22  2c 6d 69 64 28 69 6e 64  |daytext",mid(ind|
000003a0  65 78 28 77 65 65 6b 64  61 79 73 2c 31 2c 77 65  |ex(weekdays,1,we|
000003b0  65 6b 64 61 79 28 40 77  68 65 6e 29 29 2c 31 2c  |ekday(@when)),1,|
000003c0  40 64 61 79 70 6c 29 29  0a 25 56 25 25 4c 25 69  |@daypl)).%V%%L%i|
000003d0  66 28 40 64 61 79 70 6c  3c 3e 30 2c 73 65 74 5f  |f(@daypl<>0,set_|
000003e0  6e 61 6d 65 28 22 64 61  74 65 5f 74 65 78 74 22  |name("date_text"|
000003f0  2c 64 61 79 74 65 78 74  29 2c 73 65 74 5f 6e 61  |,daytext),set_na|
00000400  6d 65 28 22 64 61 74 65  5f 74 65 78 74 22 2c 22  |me("date_text","|
00000410  22 29 29 0a 25 56 25 25  4c 25 69 66 28 40 74 68  |")).%V%%L%if(@th|
00000420  65 6f 6e 3d 31 2c 73 65  74 5f 6e 61 6d 65 28 22  |eon=1,set_name("|
00000430  64 61 74 65 5f 74 65 78  74 22 2c 6a 6f 69 6e 28  |date_text",join(|
00000440  64 61 74 65 5f 74 65 78  74 2c 40 73 65 70 2c 63  |date_text,@sep,c|
00000450  39 2c 40 73 65 70 29 29  2c 73 65 74 5f 6e 61 6d  |9,@sep)),set_nam|
00000460  65 28 22 64 61 74 65 5f  74 65 78 74 22 2c 6a 6f  |e("date_text",jo|
00000470  69 6e 28 64 61 74 65 5f  74 65 78 74 2c 40 73 65  |in(date_text,@se|
00000480  70 29 29 29 0a 25 56 25  25 4c 25 69 66 28 40 64  |p))).%V%%L%if(@d|
00000490  61 74 65 6f 6e 3d 31 2c  73 65 74 5f 6e 61 6d 65  |ateon=1,set_name|
000004a0  28 22 64 61 74 65 5f 74  65 78 74 22 2c 6a 6f 69  |("date_text",joi|
000004b0  6e 28 64 61 74 65 5f 74  65 78 74 2c 73 74 72 69  |n(date_text,stri|
000004c0  6e 67 28 64 61 79 28 40  77 68 65 6e 29 2c 30 29  |ng(day(@when),0)|
000004d0  29 29 2c 30 29 0a 25 56  25 25 4c 25 69 66 28 40  |)),0).%V%%L%if(@|
000004e0  73 75 66 66 6f 6e 3d 31  2c 73 65 74 5f 6e 61 6d  |suffon=1,set_nam|
000004f0  65 28 22 64 61 74 65 5f  74 65 78 74 22 2c 6a 6f  |e("date_text",jo|
00000500  69 6e 28 64 61 74 65 5f  74 65 78 74 2c 73 75 66  |in(date_text,suf|
00000510  66 69 78 29 29 2c 30 29  0a 25 56 25 25 4c 25 69  |fix)),0).%V%%L%i|
00000520  66 28 40 6f 66 6f 6e 3d  31 2c 73 65 74 5f 6e 61  |f(@ofon=1,set_na|
00000530  6d 65 28 22 64 61 74 65  5f 74 65 78 74 22 2c 6a  |me("date_text",j|
00000540  6f 69 6e 28 64 61 74 65  5f 74 65 78 74 2c 40 73  |oin(date_text,@s|
00000550  65 70 2c 63 31 30 2c 40  73 65 70 29 29 2c 73 65  |ep,c10,@sep)),se|
00000560  74 5f 6e 61 6d 65 28 22  64 61 74 65 5f 74 65 78  |t_name("date_tex|
00000570  74 22 2c 6a 6f 69 6e 28  64 61 74 65 5f 74 65 78  |t",join(date_tex|
00000580  74 2c 40 73 65 70 29 29  29 0a 25 56 25 25 4c 25  |t,@sep))).%V%%L%|
00000590  69 66 28 40 6d 6f 6e 70  6c 3c 3e 30 2c 73 65 74  |if(@monpl<>0,set|
000005a0  5f 6e 61 6d 65 28 22 64  61 74 65 5f 74 65 78 74  |_name("date_text|
000005b0  22 2c 6a 6f 69 6e 28 64  61 74 65 5f 74 65 78 74  |",join(date_text|
000005c0  2c 6d 6f 6e 74 68 74 65  78 74 29 29 2c 30 29 0a  |,monthtext)),0).|
000005d0  25 56 25 25 4c 25 69 66  28 40 79 65 61 72 70 6c  |%V%%L%if(@yearpl|
000005e0  3c 3e 30 2c 73 65 74 5f  6e 61 6d 65 28 22 64 61  |<>0,set_name("da|
000005f0  74 65 5f 74 65 78 74 22  2c 6a 6f 69 6e 28 64 61  |te_text",join(da|
00000600  74 65 5f 74 65 78 74 2c  40 73 65 70 2c 79 65 61  |te_text,@sep,yea|
00000610  72 74 65 78 74 29 29 2c  30 29 0a 25 56 25 25 4c  |rtext)),0).%V%%L|
00000620  25 69 66 28 6c 65 66 74  28 64 61 74 65 5f 74 65  |%if(left(date_te|
00000630  78 74 2c 31 29 3d 40 73  65 70 2c 73 65 74 5f 6e  |xt,1)=@sep,set_n|
00000640  61 6d 65 28 22 64 61 74  65 5f 74 65 78 74 22 2c  |ame("date_text",|
00000650  72 69 67 68 74 28 64 61  74 65 5f 74 65 78 74 2c  |right(date_text,|
00000660  6c 65 6e 67 74 68 28 64  61 74 65 5f 74 65 78 74  |length(date_text|
00000670  29 2d 31 29 29 2c 30 29  0a 25 56 25 25 4c 25 72  |)-1)),0).%V%%L%r|
00000680  65 73 75 6c 74 28 64 61  74 65 5f 74 65 78 74 29  |esult(date_text)|
00000690  0a 25 43 4f 3a 42 2c 31  32 2c 32 34 25 4a 61 6e  |.%CO:B,12,24%Jan|
000006a0  75 61 72 79 0a 46 65 62  72 75 61 72 79 0a 4d 61  |uary.February.Ma|
000006b0  72 63 68 0a 41 70 72 69  6c 0a 4d 61 79 0a 4a 75  |rch.April.May.Ju|
000006c0  6e 65 0a 4a 75 6c 79 0a  41 75 67 75 73 74 0a 53  |ne.July.August.S|
000006d0  65 70 74 65 6d 62 65 72  0a 4f 63 74 6f 62 65 72  |eptember.October|
000006e0  0a 4e 6f 76 65 6d 62 65  72 0a 44 65 63 65 6d 62  |.November.Decemb|
000006f0  65 72 0a 25 43 4f 3a 43  2c 31 32 2c 31 32 25 53  |er.%CO:C,12,12%S|
00000700  75 6e 64 61 79 0a 4d 6f  6e 64 61 79 0a 20 54 75  |unday.Monday. Tu|
00000710  65 73 64 61 79 0a 57 65  64 6e 65 73 64 61 79 0a  |esday.Wednesday.|
00000720  54 68 75 72 73 64 61 79  0a 46 72 69 64 61 79 0a  |Thursday.Friday.|
00000730  53 61 74 75 72 64 61 79  0a 0a 74 68 65 0a 6f 66  |Saturday..the.of|
00000740  0a 0a 74 68 0a 73 74 0a  6e 64 0a 72 64 0a 74 68  |..th.st.nd.rd.th|
00000750  0a 74 68 0a 74 68 0a 74  68 0a 74 68 0a 74 68 0a  |.th.th.th.th.th.|
00000760