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

Custom/CF_sheets/c_DatFormG

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_DatFormG
Read OK:
File size: 0697 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%WC2,1478,708,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,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)),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%Januar
Februar
M�rz
April
Mai
Juni
Juli
August
September
Oktober
November
Dezember
%CO:C,12,12%Sonntag
Montag
Dienstag
Mittwoch
Donnestag
Freitag
Samstag

,


en
en
en
en
en
en
en
en
en
en
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 57 43 32 2c 31 34 37  38 2c 37 30 38 2c 31 33  |%WC2,1478,708,13|
00000030  36 34 2c 30 2c 30 2c 30  2c 30 0a 25 4f 50 25 56  |64,0,0,0,0.%OP%V|
00000040  53 33 2e 38 31 20 54 65  73 74 20 28 4f 63 74 20  |S3.81 Test (Oct |
00000050  20 38 20 31 39 39 31 29  2c 20 43 6f 6c 74 6f 6e  | 8 1991), Colton|
00000060  20 53 6f 66 74 77 61 72  65 20 2d 20 44 65 76 65  | Software - Deve|
00000070  6c 6f 70 6d 65 6e 74 2c  20 52 30 31 32 33 20 34  |lopment, R0123 4|
00000080  35 36 37 20 38 39 30 31  20 32 33 34 35 0a 25 43  |567 8901 2345.%C|
00000090  4f 3a 41 2c 37 38 2c 30  25 25 56 25 25 4c 25 66  |O:A,78,0%%V%%L%f|
000000a0  75 6e 63 74 69 6f 6e 28  22 66 6f 72 6d 61 74 5f  |unction("format_|
000000b0  64 61 74 65 22 2c 22 77  68 65 6e 22 2c 22 64 61  |date","when","da|
000000c0  79 70 6c 22 2c 22 74 68  65 6f 6e 22 2c 22 64 61  |ypl","theon","da|
000000d0  74 65 6f 6e 22 2c 22 73  75 66 66 6f 6e 22 2c 22  |teon","suffon","|
000000e0  6f 66 6f 6e 22 2c 22 6d  6f 6e 70 6c 22 2c 22 79  |ofon","monpl","y|
000000f0  65 61 72 70 6c 22 2c 22  73 65 70 3a 74 65 78 74  |earpl","sep:text|
00000100  22 29 0a 25 56 25 25 4c  25 69 66 28 74 79 70 65  |").%V%%L%if(type|
00000110  28 40 77 68 65 6e 29 3c  3e 22 64 61 74 65 22 2c  |(@when)<>"date",|
00000120  72 65 73 75 6c 74 28 22  42 61 64 20 44 61 74 65  |result("Bad Date|
00000130  22 29 2c 29 0a 25 56 25  25 4c 25 73 65 74 5f 6e  |"),).%V%%L%set_n|
00000140  61 6d 65 28 22 79 65 61  72 74 65 78 74 22 2c 72  |ame("yeartext",r|
00000150  69 67 68 74 28 73 74 72  69 6e 67 28 79 65 61 72  |ight(string(year|
00000160  28 40 77 68 65 6e 29 2c  30 29 2c 40 79 65 61 72  |(@when),0),@year|
00000170  70 6c 29 29 0a 25 56 25  25 4c 25 73 65 74 5f 6e  |pl)).%V%%L%set_n|
00000180  61 6d 65 28 22 6d 6f 6e  74 68 5f 74 61 62 6c 65  |ame("month_table|
00000190  22 2c 62 31 62 31 32 29  0a 25 56 25 25 4c 25 73  |",b1b12).%V%%L%s|
000001a0  65 74 5f 6e 61 6d 65 28  22 77 65 65 6b 64 61 79  |et_name("weekday|
000001b0  73 22 2c 63 31 63 37 29  0a 25 56 25 25 4c 25 73  |s",c1c7).%V%%L%s|
000001c0  65 74 5f 6e 61 6d 65 28  22 64 69 67 69 74 22 2c  |et_name("digit",|
000001d0  6d 6f 64 28 64 61 79 28  40 77 68 65 6e 29 2c 31  |mod(day(@when),1|
000001e0  30 29 29 0a 25 56 25 25  4c 25 73 65 74 5f 6e 61  |0)).%V%%L%set_na|
000001f0  6d 65 28 22 73 75 66 66  69 78 6e 61 6d 65 73 22  |me("suffixnames"|
00000200  2c 63 31 32 63 32 31 29  0a 25 56 25 25 4c 25 73  |,c12c21).%V%%L%s|
00000210  65 74 5f 6e 61 6d 65 28  22 73 75 66 66 69 78 22  |et_name("suffix"|
00000220  2c 69 6e 64 65 78 28 73  75 66 66 69 78 6e 61 6d  |,index(suffixnam|
00000230  65 73 2c 31 2c 64 69 67  69 74 2b 31 29 29 0a 25  |es,1,digit+1)).%|
00000240  56 25 25 4c 25 69 66 28  40 6d 6f 6e 70 6c 3c 3e  |V%%L%if(@monpl<>|
00000250  2d 31 2c 73 65 74 5f 6e  61 6d 65 28 22 6d 6f 6e  |-1,set_name("mon|
00000260  74 68 74 65 78 74 22 2c  6d 69 64 28 69 6e 64 65  |thtext",mid(inde|
00000270  78 28 6d 6f 6e 74 68 5f  74 61 62 6c 65 2c 31 2c  |x(month_table,1,|
00000280  6d 6f 6e 74 68 28 40 77  68 65 6e 29 29 2c 31 2c  |month(@when)),1,|
00000290  40 6d 6f 6e 70 6c 29 29  2c 73 65 74 5f 6e 61 6d  |@monpl)),set_nam|
000002a0  65 28 22 6d 6f 6e 74 68  74 65 78 74 22 2c 73 74  |e("monthtext",st|
000002b0  72 69 6e 67 28 6d 6f 6e  74 68 28 40 77 68 65 6e  |ring(month(@when|
000002c0  29 2c 30 29 29 29 0a 25  56 25 25 4c 25 73 65 74  |),0))).%V%%L%set|
000002d0  5f 6e 61 6d 65 28 22 64  61 79 74 65 78 74 22 2c  |_name("daytext",|
000002e0  6d 69 64 28 69 6e 64 65  78 28 77 65 65 6b 64 61  |mid(index(weekda|
000002f0  79 73 2c 31 2c 77 65 65  6b 64 61 79 28 40 77 68  |ys,1,weekday(@wh|
00000300  65 6e 29 29 2c 31 2c 40  64 61 79 70 6c 29 29 0a  |en)),1,@daypl)).|
00000310  25 56 25 25 4c 25 69 66  28 40 64 61 79 70 6c 3c  |%V%%L%if(@daypl<|
00000320  3e 30 2c 73 65 74 5f 6e  61 6d 65 28 22 64 61 74  |>0,set_name("dat|
00000330  65 5f 74 65 78 74 22 2c  64 61 79 74 65 78 74 29  |e_text",daytext)|
00000340  2c 73 65 74 5f 6e 61 6d  65 28 22 64 61 74 65 5f  |,set_name("date_|
00000350  74 65 78 74 22 2c 22 22  29 29 0a 25 56 25 25 4c  |text","")).%V%%L|
00000360  25 69 66 28 40 74 68 65  6f 6e 3d 31 2c 73 65 74  |%if(@theon=1,set|
00000370  5f 6e 61 6d 65 28 22 64  61 74 65 5f 74 65 78 74  |_name("date_text|
00000380  22 2c 6a 6f 69 6e 28 64  61 74 65 5f 74 65 78 74  |",join(date_text|
00000390  2c 63 39 2c 40 73 65 70  29 29 2c 73 65 74 5f 6e  |,c9,@sep)),set_n|
000003a0  61 6d 65 28 22 64 61 74  65 5f 74 65 78 74 22 2c  |ame("date_text",|
000003b0  6a 6f 69 6e 28 64 61 74  65 5f 74 65 78 74 2c 40  |join(date_text,@|
000003c0  73 65 70 29 29 29 0a 25  56 25 25 4c 25 69 66 28  |sep))).%V%%L%if(|
000003d0  40 64 61 74 65 6f 6e 3d  31 2c 73 65 74 5f 6e 61  |@dateon=1,set_na|
000003e0  6d 65 28 22 64 61 74 65  5f 74 65 78 74 22 2c 6a  |me("date_text",j|
000003f0  6f 69 6e 28 64 61 74 65  5f 74 65 78 74 2c 73 74  |oin(date_text,st|
00000400  72 69 6e 67 28 64 61 79  28 40 77 68 65 6e 29 2c  |ring(day(@when),|
00000410  30 29 29 29 2c 30 29 0a  25 56 25 25 4c 25 69 66  |0))),0).%V%%L%if|
00000420  28 40 73 75 66 66 6f 6e  3d 31 2c 73 65 74 5f 6e  |(@suffon=1,set_n|
00000430  61 6d 65 28 22 64 61 74  65 5f 74 65 78 74 22 2c  |ame("date_text",|
00000440  6a 6f 69 6e 28 64 61 74  65 5f 74 65 78 74 2c 73  |join(date_text,s|
00000450  75 66 66 69 78 29 29 2c  30 29 0a 25 56 25 25 4c  |uffix)),0).%V%%L|
00000460  25 69 66 28 40 6f 66 6f  6e 3d 31 2c 73 65 74 5f  |%if(@ofon=1,set_|
00000470  6e 61 6d 65 28 22 64 61  74 65 5f 74 65 78 74 22  |name("date_text"|
00000480  2c 6a 6f 69 6e 28 64 61  74 65 5f 74 65 78 74 2c  |,join(date_text,|
00000490  40 73 65 70 2c 63 31 30  29 29 2c 73 65 74 5f 6e  |@sep,c10)),set_n|
000004a0  61 6d 65 28 22 64 61 74  65 5f 74 65 78 74 22 2c  |ame("date_text",|
000004b0  6a 6f 69 6e 28 64 61 74  65 5f 74 65 78 74 2c 40  |join(date_text,@|
000004c0  73 65 70 29 29 29 0a 25  56 25 25 4c 25 69 66 28  |sep))).%V%%L%if(|
000004d0  40 6d 6f 6e 70 6c 3c 3e  30 2c 73 65 74 5f 6e 61  |@monpl<>0,set_na|
000004e0  6d 65 28 22 64 61 74 65  5f 74 65 78 74 22 2c 6a  |me("date_text",j|
000004f0  6f 69 6e 28 64 61 74 65  5f 74 65 78 74 2c 6d 6f  |oin(date_text,mo|
00000500  6e 74 68 74 65 78 74 29  29 2c 30 29 0a 25 56 25  |nthtext)),0).%V%|
00000510  25 4c 25 69 66 28 40 79  65 61 72 70 6c 3c 3e 30  |%L%if(@yearpl<>0|
00000520  2c 73 65 74 5f 6e 61 6d  65 28 22 64 61 74 65 5f  |,set_name("date_|
00000530  74 65 78 74 22 2c 6a 6f  69 6e 28 64 61 74 65 5f  |text",join(date_|
00000540  74 65 78 74 2c 40 73 65  70 2c 79 65 61 72 74 65  |text,@sep,yearte|
00000550  78 74 29 29 2c 30 29 0a  25 56 25 25 4c 25 69 66  |xt)),0).%V%%L%if|
00000560  28 6c 65 66 74 28 64 61  74 65 5f 74 65 78 74 2c  |(left(date_text,|
00000570  31 29 3d 40 73 65 70 2c  73 65 74 5f 6e 61 6d 65  |1)=@sep,set_name|
00000580  28 22 64 61 74 65 5f 74  65 78 74 22 2c 72 69 67  |("date_text",rig|
00000590  68 74 28 64 61 74 65 5f  74 65 78 74 2c 6c 65 6e  |ht(date_text,len|
000005a0  67 74 68 28 64 61 74 65  5f 74 65 78 74 29 2d 31  |gth(date_text)-1|
000005b0  29 29 2c 30 29 0a 25 56  25 25 4c 25 72 65 73 75  |)),0).%V%%L%resu|
000005c0  6c 74 28 64 61 74 65 5f  74 65 78 74 29 0a 25 43  |lt(date_text).%C|
000005d0  4f 3a 42 2c 31 32 2c 32  34 25 4a 61 6e 75 61 72  |O:B,12,24%Januar|
000005e0  0a 46 65 62 72 75 61 72  0a 4d e4 72 7a 0a 41 70  |.Februar.M.rz.Ap|
000005f0  72 69 6c 0a 4d 61 69 0a  4a 75 6e 69 0a 4a 75 6c  |ril.Mai.Juni.Jul|
00000600  69 0a 41 75 67 75 73 74  0a 53 65 70 74 65 6d 62  |i.August.Septemb|
00000610  65 72 0a 4f 6b 74 6f 62  65 72 0a 4e 6f 76 65 6d  |er.Oktober.Novem|
00000620  62 65 72 0a 44 65 7a 65  6d 62 65 72 0a 25 43 4f  |ber.Dezember.%CO|
00000630  3a 43 2c 31 32 2c 31 32  25 53 6f 6e 6e 74 61 67  |:C,12,12%Sonntag|
00000640  0a 4d 6f 6e 74 61 67 0a  44 69 65 6e 73 74 61 67  |.Montag.Dienstag|
00000650  0a 4d 69 74 74 77 6f 63  68 0a 44 6f 6e 6e 65 73  |.Mittwoch.Donnes|
00000660  74 61 67 0a 46 72 65 69  74 61 67 0a 53 61 6d 73  |tag.Freitag.Sams|
00000670  74 61 67 0a 0a 2c 0a 0a  0a 65 6e 0a 65 6e 0a 65  |tag..,...en.en.e|
00000680  6e 0a 65 6e 0a 65 6e 0a  65 6e 0a 65 6e 0a 65 6e  |n.en.en.en.en.en|
00000690  0a 65 6e 0a 65 6e 0a                              |.en.en.|
00000697