Home » Archimedes archive » Acorn User » AU 1994-06.adf » !StarInfo_StarInfo » Marshall/!WorldTime/!Help

Marshall/!WorldTime/!Help

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 User » AU 1994-06.adf » !StarInfo_StarInfo
Filename: Marshall/!WorldTime/!Help
Read OK:
File size: 0875 bytes
Load address: 0000
Exec address: 0000
File contents
WORLD TIME   By P.E.Marshall.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This program displays the time in selected parts of the world, and shows
which parts are in daylight and which are in darkness.

When ticked, the 'step' feature allows the display to increment in steps
of minutes or days so that the passage of the sun can be observed.

Corrections for daylight saving time will be made automatically, but
assumptions have been made as to the dates clocks are put forward and 
back. There may therefore be errors for a week around clock change time,
but should be correct for 1994 and 1995. 

United States DST is taken from the first Sunday in April to the last
Sunday in October.

European Summer Time is taken from the last Sunday in March to the last 
Sunday in September. 

British Summer Time is taken from the last Sunday in March to the Sunday
after the forth Saturday in October (not the same as the 4th Sunday - see
1995!).

Note however, the change takes place at 00:00 UTC rather than the
usual 1 or 2 AM.


The original version of this program (BAU July 1993) was written for
RISC OS2. The implementation of territories in OS3 prevented the program
from working correctly because most Time/Date convertions produced a
result corrected to local time, which the program already took into
account.

Two versions of the program are now supplied as OS2 and OS3 convert dates
and times differently. The correct program will be selected automatically
at start-up. 



RISC OS-2 version 1.31 January 1994.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Time Zone set-up has been simplified in this version. The computer clock
is assumed to be set to LOCAL time. An option on the program menu 'Local
Offset' should be set to the difference between your local time and UTC.
For the UK this will be 0 in winter and 1 during British Summer Time. 



RISC OS-3 version 1.41 January 1994.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The computer real time clock should be set to UTC with the BST flag set
if appropriate. The alarm clock "Set clock..." feature is the easiest
way to do this. The TimeZone must also be configured correctly for where
you live (0 for the UK).


p.m. 6/10/93
00000000  57 4f 52 4c 44 20 54 49  4d 45 20 20 20 42 79 20  |WORLD TIME   By |
00000010  50 2e 45 2e 4d 61 72 73  68 61 6c 6c 2e 0a 7e 7e  |P.E.Marshall..~~|
00000020  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~~~~~~~~~~~~~|
00000030  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 0a 0a 54 68 69  |~~~~~~~~~~~..Thi|
00000040  73 20 70 72 6f 67 72 61  6d 20 64 69 73 70 6c 61  |s program displa|
00000050  79 73 20 74 68 65 20 74  69 6d 65 20 69 6e 20 73  |ys the time in s|
00000060  65 6c 65 63 74 65 64 20  70 61 72 74 73 20 6f 66  |elected parts of|
00000070  20 74 68 65 20 77 6f 72  6c 64 2c 20 61 6e 64 20  | the world, and |
00000080  73 68 6f 77 73 0a 77 68  69 63 68 20 70 61 72 74  |shows.which part|
00000090  73 20 61 72 65 20 69 6e  20 64 61 79 6c 69 67 68  |s are in dayligh|
000000a0  74 20 61 6e 64 20 77 68  69 63 68 20 61 72 65 20  |t and which are |
000000b0  69 6e 20 64 61 72 6b 6e  65 73 73 2e 0a 0a 57 68  |in darkness...Wh|
000000c0  65 6e 20 74 69 63 6b 65  64 2c 20 74 68 65 20 27  |en ticked, the '|
000000d0  73 74 65 70 27 20 66 65  61 74 75 72 65 20 61 6c  |step' feature al|
000000e0  6c 6f 77 73 20 74 68 65  20 64 69 73 70 6c 61 79  |lows the display|
000000f0  20 74 6f 20 69 6e 63 72  65 6d 65 6e 74 20 69 6e  | to increment in|
00000100  20 73 74 65 70 73 0a 6f  66 20 6d 69 6e 75 74 65  | steps.of minute|
00000110  73 20 6f 72 20 64 61 79  73 20 73 6f 20 74 68 61  |s or days so tha|
00000120  74 20 74 68 65 20 70 61  73 73 61 67 65 20 6f 66  |t the passage of|
00000130  20 74 68 65 20 73 75 6e  20 63 61 6e 20 62 65 20  | the sun can be |
00000140  6f 62 73 65 72 76 65 64  2e 0a 0a 43 6f 72 72 65  |observed...Corre|
00000150  63 74 69 6f 6e 73 20 66  6f 72 20 64 61 79 6c 69  |ctions for dayli|
00000160  67 68 74 20 73 61 76 69  6e 67 20 74 69 6d 65 20  |ght saving time |
00000170  77 69 6c 6c 20 62 65 20  6d 61 64 65 20 61 75 74  |will be made aut|
00000180  6f 6d 61 74 69 63 61 6c  6c 79 2c 20 62 75 74 0a  |omatically, but.|
00000190  61 73 73 75 6d 70 74 69  6f 6e 73 20 68 61 76 65  |assumptions have|
000001a0  20 62 65 65 6e 20 6d 61  64 65 20 61 73 20 74 6f  | been made as to|
000001b0  20 74 68 65 20 64 61 74  65 73 20 63 6c 6f 63 6b  | the dates clock|
000001c0  73 20 61 72 65 20 70 75  74 20 66 6f 72 77 61 72  |s are put forwar|
000001d0  64 20 61 6e 64 20 0a 62  61 63 6b 2e 20 54 68 65  |d and .back. The|
000001e0  72 65 20 6d 61 79 20 74  68 65 72 65 66 6f 72 65  |re may therefore|
000001f0  20 62 65 20 65 72 72 6f  72 73 20 66 6f 72 20 61  | be errors for a|
00000200  20 77 65 65 6b 20 61 72  6f 75 6e 64 20 63 6c 6f  | week around clo|
00000210  63 6b 20 63 68 61 6e 67  65 20 74 69 6d 65 2c 0a  |ck change time,.|
00000220  62 75 74 20 73 68 6f 75  6c 64 20 62 65 20 63 6f  |but should be co|
00000230  72 72 65 63 74 20 66 6f  72 20 31 39 39 34 20 61  |rrect for 1994 a|
00000240  6e 64 20 31 39 39 35 2e  20 0a 0a 55 6e 69 74 65  |nd 1995. ..Unite|
00000250  64 20 53 74 61 74 65 73  20 44 53 54 20 69 73 20  |d States DST is |
00000260  74 61 6b 65 6e 20 66 72  6f 6d 20 74 68 65 20 66  |taken from the f|
00000270  69 72 73 74 20 53 75 6e  64 61 79 20 69 6e 20 41  |irst Sunday in A|
00000280  70 72 69 6c 20 74 6f 20  74 68 65 20 6c 61 73 74  |pril to the last|
00000290  0a 53 75 6e 64 61 79 20  69 6e 20 4f 63 74 6f 62  |.Sunday in Octob|
000002a0  65 72 2e 0a 0a 45 75 72  6f 70 65 61 6e 20 53 75  |er...European Su|
000002b0  6d 6d 65 72 20 54 69 6d  65 20 69 73 20 74 61 6b  |mmer Time is tak|
000002c0  65 6e 20 66 72 6f 6d 20  74 68 65 20 6c 61 73 74  |en from the last|
000002d0  20 53 75 6e 64 61 79 20  69 6e 20 4d 61 72 63 68  | Sunday in March|
000002e0  20 74 6f 20 74 68 65 20  6c 61 73 74 20 0a 53 75  | to the last .Su|
000002f0  6e 64 61 79 20 69 6e 20  53 65 70 74 65 6d 62 65  |nday in Septembe|
00000300  72 2e 20 0a 0a 42 72 69  74 69 73 68 20 53 75 6d  |r. ..British Sum|
00000310  6d 65 72 20 54 69 6d 65  20 69 73 20 74 61 6b 65  |mer Time is take|
00000320  6e 20 66 72 6f 6d 20 74  68 65 20 6c 61 73 74 20  |n from the last |
00000330  53 75 6e 64 61 79 20 69  6e 20 4d 61 72 63 68 20  |Sunday in March |
00000340  74 6f 20 74 68 65 20 53  75 6e 64 61 79 0a 61 66  |to the Sunday.af|
00000350  74 65 72 20 74 68 65 20  66 6f 72 74 68 20 53 61  |ter the forth Sa|
00000360  74 75 72 64 61 79 20 69  6e 20 4f 63 74 6f 62 65  |turday in Octobe|
00000370  72 20 28 6e 6f 74 20 74  68 65 20 73 61 6d 65 20  |r (not the same |
00000380  61 73 20 74 68 65 20 34  74 68 20 53 75 6e 64 61  |as the 4th Sunda|
00000390  79 20 2d 20 73 65 65 0a  31 39 39 35 21 29 2e 0a  |y - see.1995!)..|
000003a0  0a 4e 6f 74 65 20 68 6f  77 65 76 65 72 2c 20 74  |.Note however, t|
000003b0  68 65 20 63 68 61 6e 67  65 20 74 61 6b 65 73 20  |he change takes |
000003c0  70 6c 61 63 65 20 61 74  20 30 30 3a 30 30 20 55  |place at 00:00 U|
000003d0  54 43 20 72 61 74 68 65  72 20 74 68 61 6e 20 74  |TC rather than t|
000003e0  68 65 0a 75 73 75 61 6c  20 31 20 6f 72 20 32 20  |he.usual 1 or 2 |
000003f0  41 4d 2e 0a 0a 0a 54 68  65 20 6f 72 69 67 69 6e  |AM....The origin|
00000400  61 6c 20 76 65 72 73 69  6f 6e 20 6f 66 20 74 68  |al version of th|
00000410  69 73 20 70 72 6f 67 72  61 6d 20 28 42 41 55 20  |is program (BAU |
00000420  4a 75 6c 79 20 31 39 39  33 29 20 77 61 73 20 77  |July 1993) was w|
00000430  72 69 74 74 65 6e 20 66  6f 72 0a 52 49 53 43 20  |ritten for.RISC |
00000440  4f 53 32 2e 20 54 68 65  20 69 6d 70 6c 65 6d 65  |OS2. The impleme|
00000450  6e 74 61 74 69 6f 6e 20  6f 66 20 74 65 72 72 69  |ntation of terri|
00000460  74 6f 72 69 65 73 20 69  6e 20 4f 53 33 20 70 72  |tories in OS3 pr|
00000470  65 76 65 6e 74 65 64 20  74 68 65 20 70 72 6f 67  |evented the prog|
00000480  72 61 6d 0a 66 72 6f 6d  20 77 6f 72 6b 69 6e 67  |ram.from working|
00000490  20 63 6f 72 72 65 63 74  6c 79 20 62 65 63 61 75  | correctly becau|
000004a0  73 65 20 6d 6f 73 74 20  54 69 6d 65 2f 44 61 74  |se most Time/Dat|
000004b0  65 20 63 6f 6e 76 65 72  74 69 6f 6e 73 20 70 72  |e convertions pr|
000004c0  6f 64 75 63 65 64 20 61  0a 72 65 73 75 6c 74 20  |oduced a.result |
000004d0  63 6f 72 72 65 63 74 65  64 20 74 6f 20 6c 6f 63  |corrected to loc|
000004e0  61 6c 20 74 69 6d 65 2c  20 77 68 69 63 68 20 74  |al time, which t|
000004f0  68 65 20 70 72 6f 67 72  61 6d 20 61 6c 72 65 61  |he program alrea|
00000500  64 79 20 74 6f 6f 6b 20  69 6e 74 6f 0a 61 63 63  |dy took into.acc|
00000510  6f 75 6e 74 2e 0a 0a 54  77 6f 20 76 65 72 73 69  |ount...Two versi|
00000520  6f 6e 73 20 6f 66 20 74  68 65 20 70 72 6f 67 72  |ons of the progr|
00000530  61 6d 20 61 72 65 20 6e  6f 77 20 73 75 70 70 6c  |am are now suppl|
00000540  69 65 64 20 61 73 20 4f  53 32 20 61 6e 64 20 4f  |ied as OS2 and O|
00000550  53 33 20 63 6f 6e 76 65  72 74 20 64 61 74 65 73  |S3 convert dates|
00000560  0a 61 6e 64 20 74 69 6d  65 73 20 64 69 66 66 65  |.and times diffe|
00000570  72 65 6e 74 6c 79 2e 20  54 68 65 20 63 6f 72 72  |rently. The corr|
00000580  65 63 74 20 70 72 6f 67  72 61 6d 20 77 69 6c 6c  |ect program will|
00000590  20 62 65 20 73 65 6c 65  63 74 65 64 20 61 75 74  | be selected aut|
000005a0  6f 6d 61 74 69 63 61 6c  6c 79 0a 61 74 20 73 74  |omatically.at st|
000005b0  61 72 74 2d 75 70 2e 20  0a 0a 0a 0a 52 49 53 43  |art-up. ....RISC|
000005c0  20 4f 53 2d 32 20 76 65  72 73 69 6f 6e 20 31 2e  | OS-2 version 1.|
000005d0  33 31 20 4a 61 6e 75 61  72 79 20 31 39 39 34 2e  |31 January 1994.|
000005e0  0a 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |.~~~~~~~~~~~~~~~|
000005f0  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~~~~~~~~~~~~~|
00000600  7e 7e 7e 7e 7e 7e 0a 54  69 6d 65 20 5a 6f 6e 65  |~~~~~~.Time Zone|
00000610  20 73 65 74 2d 75 70 20  68 61 73 20 62 65 65 6e  | set-up has been|
00000620  20 73 69 6d 70 6c 69 66  69 65 64 20 69 6e 20 74  | simplified in t|
00000630  68 69 73 20 76 65 72 73  69 6f 6e 2e 20 54 68 65  |his version. The|
00000640  20 63 6f 6d 70 75 74 65  72 20 63 6c 6f 63 6b 0a  | computer clock.|
00000650  69 73 20 61 73 73 75 6d  65 64 20 74 6f 20 62 65  |is assumed to be|
00000660  20 73 65 74 20 74 6f 20  4c 4f 43 41 4c 20 74 69  | set to LOCAL ti|
00000670  6d 65 2e 20 41 6e 20 6f  70 74 69 6f 6e 20 6f 6e  |me. An option on|
00000680  20 74 68 65 20 70 72 6f  67 72 61 6d 20 6d 65 6e  | the program men|
00000690  75 20 27 4c 6f 63 61 6c  0a 4f 66 66 73 65 74 27  |u 'Local.Offset'|
000006a0  20 73 68 6f 75 6c 64 20  62 65 20 73 65 74 20 74  | should be set t|
000006b0  6f 20 74 68 65 20 64 69  66 66 65 72 65 6e 63 65  |o the difference|
000006c0  20 62 65 74 77 65 65 6e  20 79 6f 75 72 20 6c 6f  | between your lo|
000006d0  63 61 6c 20 74 69 6d 65  20 61 6e 64 20 55 54 43  |cal time and UTC|
000006e0  2e 0a 46 6f 72 20 74 68  65 20 55 4b 20 74 68 69  |..For the UK thi|
000006f0  73 20 77 69 6c 6c 20 62  65 20 30 20 69 6e 20 77  |s will be 0 in w|
00000700  69 6e 74 65 72 20 61 6e  64 20 31 20 64 75 72 69  |inter and 1 duri|
00000710  6e 67 20 42 72 69 74 69  73 68 20 53 75 6d 6d 65  |ng British Summe|
00000720  72 20 54 69 6d 65 2e 20  0a 0a 0a 0a 52 49 53 43  |r Time. ....RISC|
00000730  20 4f 53 2d 33 20 76 65  72 73 69 6f 6e 20 31 2e  | OS-3 version 1.|
00000740  34 31 20 4a 61 6e 75 61  72 79 20 31 39 39 34 2e  |41 January 1994.|
00000750  0a 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |.~~~~~~~~~~~~~~~|
00000760  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~~~~~~~~~~~~~|
00000770  7e 7e 7e 7e 7e 7e 0a 54  68 65 20 63 6f 6d 70 75  |~~~~~~.The compu|
00000780  74 65 72 20 72 65 61 6c  20 74 69 6d 65 20 63 6c  |ter real time cl|
00000790  6f 63 6b 20 73 68 6f 75  6c 64 20 62 65 20 73 65  |ock should be se|
000007a0  74 20 74 6f 20 55 54 43  20 77 69 74 68 20 74 68  |t to UTC with th|
000007b0  65 20 42 53 54 20 66 6c  61 67 20 73 65 74 0a 69  |e BST flag set.i|
000007c0  66 20 61 70 70 72 6f 70  72 69 61 74 65 2e 20 54  |f appropriate. T|
000007d0  68 65 20 61 6c 61 72 6d  20 63 6c 6f 63 6b 20 22  |he alarm clock "|
000007e0  53 65 74 20 63 6c 6f 63  6b 2e 2e 2e 22 20 66 65  |Set clock..." fe|
000007f0  61 74 75 72 65 20 69 73  20 74 68 65 20 65 61 73  |ature is the eas|
00000800  69 65 73 74 0a 77 61 79  20 74 6f 20 64 6f 20 74  |iest.way to do t|
00000810  68 69 73 2e 20 54 68 65  20 54 69 6d 65 5a 6f 6e  |his. The TimeZon|
00000820  65 20 6d 75 73 74 20 61  6c 73 6f 20 62 65 20 63  |e must also be c|
00000830  6f 6e 66 69 67 75 72 65  64 20 63 6f 72 72 65 63  |onfigured correc|
00000840  74 6c 79 20 66 6f 72 20  77 68 65 72 65 0a 79 6f  |tly for where.yo|
00000850  75 20 6c 69 76 65 20 28  30 20 66 6f 72 20 74 68  |u live (0 for th|
00000860  65 20 55 4b 29 2e 0a 0a  0a 70 2e 6d 2e 20 36 2f  |e UK)....p.m. 6/|
00000870  31 30 2f 39 33                                    |10/93|
00000875