Home » Archimedes archive » Acorn Computing » 1995 01.adf » 9501 » Programs/Calendar/!Calendar/History
Programs/Calendar/!Calendar/History
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 » Acorn Computing » 1995 01.adf » 9501 |
Filename: | Programs/Calendar/!Calendar/History |
Read OK: | ✔ |
File size: | 03C4 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
31/12/93 1.00 1st release version. 10/08/94 1.10 Mod to allow calendar to straddle a year end. Change to user interface - custom code using one window to provide all input & output access, instead of a series of input requests followed by a transient save dbox. Now supports interactive help on main window. 26/09/94 1.11 Realised date range check isn't catching case where calendar straddles year end & end of calendar is past max calculable value. Note, while testing consequences of this, discovered that max value doesn't correspond to a maximal utc time of 2^40-1 (ie 5 bytes of 255's); the greatest workable utc is actually: (lsb first) 191,129,250,255,255 = &fffffa81bf, which is 360256 csecs under max 5 byte value = 1 hour & 256 csecs. Interesting. NB max workable utc corresponds to date: Saturday 3rd June 2248, time 06:57:57.75, so modify range check to prevent calendar going beyond 31/5/2248.
00000000 0a 33 31 2f 31 32 2f 39 33 09 31 2e 30 30 09 31 |.31/12/93.1.00.1| 00000010 73 74 20 72 65 6c 65 61 73 65 20 76 65 72 73 69 |st release versi| 00000020 6f 6e 2e 0a 0a 31 30 2f 30 38 2f 39 34 09 31 2e |on...10/08/94.1.| 00000030 31 30 09 4d 6f 64 20 74 6f 20 61 6c 6c 6f 77 20 |10.Mod to allow | 00000040 63 61 6c 65 6e 64 61 72 20 74 6f 20 73 74 72 61 |calendar to stra| 00000050 64 64 6c 65 20 61 20 79 65 61 72 20 65 6e 64 2e |ddle a year end.| 00000060 0a 09 09 09 43 68 61 6e 67 65 20 74 6f 20 75 73 |....Change to us| 00000070 65 72 20 69 6e 74 65 72 66 61 63 65 20 2d 20 63 |er interface - c| 00000080 75 73 74 6f 6d 20 63 6f 64 65 20 75 73 69 6e 67 |ustom code using| 00000090 20 6f 6e 65 0a 09 09 09 77 69 6e 64 6f 77 20 74 | one....window t| 000000a0 6f 20 70 72 6f 76 69 64 65 20 61 6c 6c 20 69 6e |o provide all in| 000000b0 70 75 74 20 26 20 6f 75 74 70 75 74 20 61 63 63 |put & output acc| 000000c0 65 73 73 2c 0a 09 09 09 69 6e 73 74 65 61 64 20 |ess,....instead | 000000d0 6f 66 20 61 20 73 65 72 69 65 73 20 6f 66 20 69 |of a series of i| 000000e0 6e 70 75 74 20 72 65 71 75 65 73 74 73 20 66 6f |nput requests fo| 000000f0 6c 6c 6f 77 65 64 20 62 79 20 61 0a 09 09 09 74 |llowed by a....t| 00000100 72 61 6e 73 69 65 6e 74 20 73 61 76 65 20 64 62 |ransient save db| 00000110 6f 78 2e 0a 09 09 09 4e 6f 77 20 73 75 70 70 6f |ox.....Now suppo| 00000120 72 74 73 20 69 6e 74 65 72 61 63 74 69 76 65 20 |rts interactive | 00000130 68 65 6c 70 20 6f 6e 20 6d 61 69 6e 20 77 69 6e |help on main win| 00000140 64 6f 77 2e 0a 0a 32 36 2f 30 39 2f 39 34 09 31 |dow...26/09/94.1| 00000150 2e 31 31 09 52 65 61 6c 69 73 65 64 20 64 61 74 |.11.Realised dat| 00000160 65 20 72 61 6e 67 65 20 63 68 65 63 6b 20 69 73 |e range check is| 00000170 6e 27 74 20 63 61 74 63 68 69 6e 67 20 63 61 73 |n't catching cas| 00000180 65 20 77 68 65 72 65 0a 09 09 09 63 61 6c 65 6e |e where....calen| 00000190 64 61 72 20 73 74 72 61 64 64 6c 65 73 20 79 65 |dar straddles ye| 000001a0 61 72 20 65 6e 64 20 26 20 65 6e 64 20 6f 66 20 |ar end & end of | 000001b0 63 61 6c 65 6e 64 61 72 20 69 73 0a 09 09 09 70 |calendar is....p| 000001c0 61 73 74 20 6d 61 78 20 63 61 6c 63 75 6c 61 62 |ast max calculab| 000001d0 6c 65 20 76 61 6c 75 65 2e 0a 09 09 09 4e 6f 74 |le value.....Not| 000001e0 65 2c 20 77 68 69 6c 65 20 74 65 73 74 69 6e 67 |e, while testing| 000001f0 20 63 6f 6e 73 65 71 75 65 6e 63 65 73 20 6f 66 | consequences of| 00000200 20 74 68 69 73 2c 0a 09 09 09 64 69 73 63 6f 76 | this,....discov| 00000210 65 72 65 64 20 74 68 61 74 20 6d 61 78 20 76 61 |ered that max va| 00000220 6c 75 65 20 64 6f 65 73 6e 27 74 20 63 6f 72 72 |lue doesn't corr| 00000230 65 73 70 6f 6e 64 20 74 6f 0a 09 09 09 61 20 6d |espond to....a m| 00000240 61 78 69 6d 61 6c 20 75 74 63 20 74 69 6d 65 20 |aximal utc time | 00000250 6f 66 20 32 5e 34 30 2d 31 20 28 69 65 20 35 20 |of 2^40-1 (ie 5 | 00000260 62 79 74 65 73 20 6f 66 20 32 35 35 27 73 29 3b |bytes of 255's);| 00000270 0a 09 09 09 74 68 65 20 67 72 65 61 74 65 73 74 |....the greatest| 00000280 20 77 6f 72 6b 61 62 6c 65 20 75 74 63 20 69 73 | workable utc is| 00000290 20 61 63 74 75 61 6c 6c 79 3a 0a 09 09 09 28 6c | actually:....(l| 000002a0 73 62 20 66 69 72 73 74 29 20 31 39 31 2c 31 32 |sb first) 191,12| 000002b0 39 2c 32 35 30 2c 32 35 35 2c 32 35 35 20 3d 20 |9,250,255,255 = | 000002c0 26 66 66 66 66 66 61 38 31 62 66 2c 0a 09 09 09 |&fffffa81bf,....| 000002d0 77 68 69 63 68 20 69 73 20 33 36 30 32 35 36 20 |which is 360256 | 000002e0 63 73 65 63 73 20 75 6e 64 65 72 20 6d 61 78 20 |csecs under max | 000002f0 35 20 62 79 74 65 20 76 61 6c 75 65 0a 09 09 09 |5 byte value....| 00000300 3d 20 31 20 68 6f 75 72 20 26 20 32 35 36 20 63 |= 1 hour & 256 c| 00000310 73 65 63 73 2e 20 49 6e 74 65 72 65 73 74 69 6e |secs. Interestin| 00000320 67 2e 0a 09 09 09 4e 42 20 6d 61 78 20 77 6f 72 |g.....NB max wor| 00000330 6b 61 62 6c 65 20 75 74 63 20 63 6f 72 72 65 73 |kable utc corres| 00000340 70 6f 6e 64 73 20 74 6f 20 64 61 74 65 3a 0a 09 |ponds to date:..| 00000350 09 09 53 61 74 75 72 64 61 79 20 33 72 64 20 4a |..Saturday 3rd J| 00000360 75 6e 65 20 32 32 34 38 2c 20 74 69 6d 65 20 30 |une 2248, time 0| 00000370 36 3a 35 37 3a 35 37 2e 37 35 2c 0a 09 09 09 73 |6:57:57.75,....s| 00000380 6f 20 6d 6f 64 69 66 79 20 72 61 6e 67 65 20 63 |o modify range c| 00000390 68 65 63 6b 20 74 6f 20 70 72 65 76 65 6e 74 20 |heck to prevent | 000003a0 63 61 6c 65 6e 64 61 72 20 67 6f 69 6e 67 0a 09 |calendar going..| 000003b0 09 09 62 65 79 6f 6e 64 20 33 31 2f 35 2f 32 32 |..beyond 31/5/22| 000003c0 34 38 2e 0a |48..| 000003c4