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

Custom/CF_sheets/c_DatFormF

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_DatFormF
Read OK:
File size: 069A 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,1652,944,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)),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%Janvier
F�vrier
Mars
Avril
Mai
Juin
Juillet
Ao�t
S�ptembre
Octobre
Novembre
D�cembre
%CO:C,12,12%dimanche
lundi
mardi
mercredi
jeudi
vendredi
samedi

,le


me
�re
me
me
me
me
me
me
me
me
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 36 35  32 2c 39 34 34 2c 31 33  |%WC2,1652,944,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 40 73 65 70 2c 63 39  2c 40 73 65 70 29 29 2c  |,@sep,c9,@sep)),|
000003a0  73 65 74 5f 6e 61 6d 65  28 22 64 61 74 65 5f 74  |set_name("date_t|
000003b0  65 78 74 22 2c 6a 6f 69  6e 28 64 61 74 65 5f 74  |ext",join(date_t|
000003c0  65 78 74 2c 40 73 65 70  29 29 29 0a 25 56 25 25  |ext,@sep))).%V%%|
000003d0  4c 25 69 66 28 40 64 61  74 65 6f 6e 3d 31 2c 73  |L%if(@dateon=1,s|
000003e0  65 74 5f 6e 61 6d 65 28  22 64 61 74 65 5f 74 65  |et_name("date_te|
000003f0  78 74 22 2c 6a 6f 69 6e  28 64 61 74 65 5f 74 65  |xt",join(date_te|
00000400  78 74 2c 73 74 72 69 6e  67 28 64 61 79 28 40 77  |xt,string(day(@w|
00000410  68 65 6e 29 2c 30 29 29  29 2c 30 29 0a 25 56 25  |hen),0))),0).%V%|
00000420  25 4c 25 69 66 28 40 73  75 66 66 6f 6e 3d 31 2c  |%L%if(@suffon=1,|
00000430  73 65 74 5f 6e 61 6d 65  28 22 64 61 74 65 5f 74  |set_name("date_t|
00000440  65 78 74 22 2c 6a 6f 69  6e 28 64 61 74 65 5f 74  |ext",join(date_t|
00000450  65 78 74 2c 73 75 66 66  69 78 29 29 2c 30 29 0a  |ext,suffix)),0).|
00000460  25 56 25 25 4c 25 69 66  28 40 6f 66 6f 6e 3d 31  |%V%%L%if(@ofon=1|
00000470  2c 73 65 74 5f 6e 61 6d  65 28 22 64 61 74 65 5f  |,set_name("date_|
00000480  74 65 78 74 22 2c 6a 6f  69 6e 28 64 61 74 65 5f  |text",join(date_|
00000490  74 65 78 74 2c 40 73 65  70 2c 63 31 30 29 29 2c  |text,@sep,c10)),|
000004a0  73 65 74 5f 6e 61 6d 65  28 22 64 61 74 65 5f 74  |set_name("date_t|
000004b0  65 78 74 22 2c 6a 6f 69  6e 28 64 61 74 65 5f 74  |ext",join(date_t|
000004c0  65 78 74 2c 40 73 65 70  29 29 29 0a 25 56 25 25  |ext,@sep))).%V%%|
000004d0  4c 25 69 66 28 40 6d 6f  6e 70 6c 3c 3e 30 2c 73  |L%if(@monpl<>0,s|
000004e0  65 74 5f 6e 61 6d 65 28  22 64 61 74 65 5f 74 65  |et_name("date_te|
000004f0  78 74 22 2c 6a 6f 69 6e  28 64 61 74 65 5f 74 65  |xt",join(date_te|
00000500  78 74 2c 6d 6f 6e 74 68  74 65 78 74 29 29 2c 30  |xt,monthtext)),0|
00000510  29 0a 25 56 25 25 4c 25  69 66 28 40 79 65 61 72  |).%V%%L%if(@year|
00000520  70 6c 3c 3e 30 2c 73 65  74 5f 6e 61 6d 65 28 22  |pl<>0,set_name("|
00000530  64 61 74 65 5f 74 65 78  74 22 2c 6a 6f 69 6e 28  |date_text",join(|
00000540  64 61 74 65 5f 74 65 78  74 2c 40 73 65 70 2c 79  |date_text,@sep,y|
00000550  65 61 72 74 65 78 74 29  29 2c 30 29 0a 25 56 25  |eartext)),0).%V%|
00000560  25 4c 25 69 66 28 6c 65  66 74 28 64 61 74 65 5f  |%L%if(left(date_|
00000570  74 65 78 74 2c 31 29 3d  40 73 65 70 2c 73 65 74  |text,1)=@sep,set|
00000580  5f 6e 61 6d 65 28 22 64  61 74 65 5f 74 65 78 74  |_name("date_text|
00000590  22 2c 72 69 67 68 74 28  64 61 74 65 5f 74 65 78  |",right(date_tex|
000005a0  74 2c 6c 65 6e 67 74 68  28 64 61 74 65 5f 74 65  |t,length(date_te|
000005b0  78 74 29 2d 31 29 29 2c  30 29 0a 25 56 25 25 4c  |xt)-1)),0).%V%%L|
000005c0  25 72 65 73 75 6c 74 28  64 61 74 65 5f 74 65 78  |%result(date_tex|
000005d0  74 29 0a 25 43 4f 3a 42  2c 31 32 2c 32 34 25 4a  |t).%CO:B,12,24%J|
000005e0  61 6e 76 69 65 72 0a 46  e9 76 72 69 65 72 0a 4d  |anvier.F.vrier.M|
000005f0  61 72 73 0a 41 76 72 69  6c 0a 4d 61 69 0a 4a 75  |ars.Avril.Mai.Ju|
00000600  69 6e 0a 4a 75 69 6c 6c  65 74 0a 41 6f fb 74 0a  |in.Juillet.Ao.t.|
00000610  53 e9 70 74 65 6d 62 72  65 0a 4f 63 74 6f 62 72  |S.ptembre.Octobr|
00000620  65 0a 4e 6f 76 65 6d 62  72 65 0a 44 e9 63 65 6d  |e.Novembre.D.cem|
00000630  62 72 65 0a 25 43 4f 3a  43 2c 31 32 2c 31 32 25  |bre.%CO:C,12,12%|
00000640  64 69 6d 61 6e 63 68 65  0a 6c 75 6e 64 69 0a 6d  |dimanche.lundi.m|
00000650  61 72 64 69 0a 6d 65 72  63 72 65 64 69 0a 6a 65  |ardi.mercredi.je|
00000660  75 64 69 0a 76 65 6e 64  72 65 64 69 0a 73 61 6d  |udi.vendredi.sam|
00000670  65 64 69 0a 0a 2c 6c 65  0a 0a 0a 6d 65 0a e8 72  |edi..,le...me..r|
00000680  65 0a 6d 65 0a 6d 65 0a  6d 65 0a 6d 65 0a 6d 65  |e.me.me.me.me.me|
00000690  0a 6d 65 0a 6d 65 0a 6d  65 0a                    |.me.me.me.|
0000069a