home *** CD-ROM | disk | FTP | other *** search
- .pn 1
- .mt 3
- .mb 8
- .f1 Centurioε Softwarσ Corp.║ TIMECHEK
- .f2 Pagσ #
- TIMECHEK
-
- ß SMILEWAR┼ :-⌐ produc⌠ of
-
- Centurioε Softwarσ Corp.
- 391╖ GarfielΣ Drive
- Stonσ Mountain¼ G┴ 30083
-
- OPUS 133/302¼ (404⌐ 296-9681
- 2┤ hours¼ Filσ Request≤ ª Downloads
-
- UpdateΣ 9/22/87
-
- TIMECHE╦ ái≤ ácopyright¼ 1987¼ b∙ Centurioε áSoftwarσ áCorp« áanΣ ì
- releaseΣ áfo≥ publiπ usσ anΣ distribution« N∩ áfees¼ ároyalties¼ ì
- license≤ arσ required.
-
- TIMECHE╦ ái≤ aε outgrowtΦ oµ TIME96« TIMECHE╦ caε functioε ájus⌠ ì
- likσ áTIME9╢ á(i⌠ áha≤ al∞ oµ áTIME96'≤ ácapabilities⌐ áplu≤ áonσ ì
- additiona∞ áfeaturσ tha⌠ make≤ i⌠ mucΦ easie≥ t∩ áuse« á TIMECHE╦ ì
- check≤ áthσ systeφ clocδ fo≥ thσ timσ oµ day¼ da∙ oµ áweek¼ áetc¼ ì
- anΣ exit≤ witΦ aε ERRORLEVE╠ baseΣ oε tha⌠ timσ anΣ thσ argument≤ ì
- presenteΣ áwitΦ thσ command« Fo≥ thσ defaul⌠ mode¼ thσ á2┤ áhou≥ ì
- da∙ ái≤ brokeε int∩ 9╢ fifteeε minutσ intervals« á Thus¼ ábetweeε ì
- midnigh⌠ (00:00:00⌐ anΣ quarte≥ pas⌠ (00:14:59)¼ timecheδ return≤ ì
- aε áerrorleve∞ oµ 1╗ a⌠ 6:00:0░ AM¼ i⌠ return≤ aε áerrorleve∞ áoµ ì
- 25¼ a⌠ nooε aε errorleve∞ oµ 49¼ etc«
-
- ThrougΦ usσ oµ thi≤ program¼ ß batcΦ filσ caε d∩ differen⌠ thing≤ ì
- baseΣ oε timσ oµ day¼ da∙ oµ week¼ etc« I⌠ wa≤ writteε t∩ áallo≈ ì
- differen⌠ áparameter≤ t∩ bσ passeΣ t∩ OMM═ (thσ Opu≤ Matri° áMai∞ ì
- Manager⌐ baseΣ oε thσ time«
-
- .paèThσ á01/18/198╕ versioε oµ TIMECHE╦ ha≤ severa∞ áargument≤ áwhicΦ ì
- affec⌠ thσ program'≤ behaviour║
- .lm 5
- .pm 1
-
- Q: an∙ áargumen⌠ ábeginninτ áwitΦ ß -╤ á(quite⌐ ásuppresse≤ áthσ ì
- áááágeneratioε oµ thσ copyrigh⌠ anΣ timσ oµ da∙ printout╗
-
- W: an∙ argumen⌠ beginninτ witΦ ß -╫ cause≤ TIMECHE╦ t∩ returε aε ì
- ááááargumen⌠ baseΣ oε thσ DA┘ O╞ WEE╦ iε placσ oµ thσ TIM┼ O╞ DA┘ ì
- áááá(1=Sunday¼ 2=Monday¼ etc.);
-
- M: an∙ áargumen⌠ beginninτ witΦ ß -═ cause≤ timecheδ át∩ áreturε ì
- ááááthσ MONT╚ (Jaε ╜ 1¼ etc);
-
- D: an∙ áargumen⌠ beginninτ witΦ ß -─ cause≤ TIMECHE╦ át∩ áreturε ì
- ááááthσ da∙ oµ thσ montΦ (ie¼ 9/22/8╖ -╛ 22);
-
- Y: an∙ áargumen⌠ beginninτ witΦ ß -┘ cause≤ TIMECHE╦ át∩ áreturε ì
- ááááthσ yea≥ (▓ digit).
-
- R: an∙ argumen⌠ beginninτ witΦ ß -╥ put≤ TIMECHE╦ int∩ thσ RANG┼ ì
- áááámode« á Thσ áprograφ wil∞ scaε thσ áremaininτ áargument≤ áanΣ ì
- ááááreturε thσ numbe≥ oµ thσ FIRS╘ rangσ tha⌠ matche≤ thσ curren⌠ ì
- áááátime« Range≤ arσ oµ thσ forφ DD:sss≤-eeeσ wherσ D─ i≤ ß átw∩ ì
- áááácharacte≥ áda∙ oµ thσ weeδ (SU¼ MO¼ etc)¼ W╦ á(weekdays)¼ áW┼ ì
- áááá(weekends⌐ áo≥ A╠ (al∞ days)¼ anΣ sss≤ anΣ eeeσ arσ á┤ ádigi⌠ ì
- ááááSTAR╘ anΣ EN─ times« AL╠ ┤ DIGIT╙ MUS╘ B┼ SUPPLIED.
- .cp 10
- .lm 1
- Thσ M¼ D¼ W¼ ┘ anΣ ╥ option≤ arσ mutuall∙ exclusive¼ anΣ onl∙ thσ ì
- LAS╘ onσ entereΣ wil∞ bσ iε effect« Thesσ argument≤ caε bσ uppe≥ ì
- o≥ álowe≥ ácasσ áanΣ mus⌠ bσ precedeΣ b∙ ß ¡ o≥ ß » á[thi≤ ái≤ áß ì
- changσ froφ TIME96¼ wherσ thσ ¡ anΣ » werσ optional]« Al∞ oµ thσ ì
- followinτ arσ legal:
-
- .pm
- TIMECHE╦ W
- TIMECHE╦ ╤ m
- TIMECHE╦ /╤ /d
- TIMECHE╦ ≈ -q
- timechek
- timecheδ á-≥ al:040░-050░ al:230░-240░ al:000░-070░ ása:000░-240░ ì
- su:000░-1700
-
- (Thσ las⌠ samplσ i≤ to∩ lonτ t∩ fi⌠ oε onσ linσ iε thi≤ document¼ ì
- bu⌠ áthσ ásu:000░-170░ ágoe≤ áoε áthσ ásamσ álinσ áa≤ áthσ áothe≥ ì
- arguments« á Thi≤ basicall∙ says║ iµ thσ curren⌠ timσ i≤ ábetweeε ì
- 040░ áanΣ 0500¼ returε errorleve∞ 1¼ iµ thσ timσ i≤ betweeε á230░ ì
- anΣ 240░ returε 2¼ iµ thσ timσ i≤ betweeε midnigh⌠ anΣ 7aφ returε ì
- 3¼ iµ i⌠ i≤ Saturda∙ (anΣ no⌠ onσ oµ thσ preceedinτ times⌐ returε ì
- ┤ áanΣ iµ i⌠ i≤ Sunda∙ (again¼ no⌠ onσ oµ thσ ápreceedinτ átimes⌐ ì
- returε 5« Thus¼ witΦ onσ command¼ ß BA╘ filσ caε detec⌠ Nationa∞ ì
- Mai∞ Hou≥ (errorleve∞ 1⌐ anΣ chea≡ lonτ distancσ rate≤ iε thσ áU╙ ì
- (returε álevel≤ á▓-5)« ┴ errorleve∞ oµ ░ indicate≤ áhighe≥ áthaε ì
- minimuφ lonτ distancσ rate≤ anΣ no⌠ NMH.)
- .paè.lm 1
- .oj off
- Examplσ Tablσ oµ returε valuesì
-
- .lm 15
- ááááááááááááááDay Time defaul⌠ -╫ option
- .rr L------!-----------#-----------#------R
- ááááááááááááááSun 00:00 1 1
- ááááááááááááááSun 06:00 25 1
- ááááááááááááááSun 12:00 49 1
- ááááááááááááááSun 18:00 73 1
- ááááááááááááááSun 23:45 96 1
-
- ááááááááááááááMon 00:00 1 2
- ááááááááááááááMon 06:00 25 2
- ááááááááááááááMon 12:00 49 2
- ááááááááááááááMon 18:00 73 2
-
- ááááááááááááááTue 00:00 1 3
- ááááááááááááááWed 00:00 1 4
- ááááááááááááááThu 00:00 1 5
- ááááááááááááááFri 00:00 1 6
- ááááááááááááááSat 00:00 1 7
- ááááááááááááááSat 23:45 96 7
-
- .RR-!---!---!---!---!---!---!---!---!---!---!---!---!---!---!---R
-
- .paèSamplσ usσ ¡ time9╢ compatiblσ runs:
- .lm 10
- ááááááááátimechek -w
- áááááááááiµ errorleve∞ 7 got∩ SATURDAY
- áááááááááiµ errorleve∞ 6 got∩ FRIDAY
- áááááááááiµ errorleve∞ 5 got∩ THURSDAY
- áááááááááiµ errorleve∞ 4 got∩ WEDNESDAY
- áááááááááiµ errorleve∞ 3 got∩ TUESDAY
- áááááááááiµ errorleve∞ 2 got∩ MONDAY
-
- ááááááááá:SUNDAY
- áááááááááreφ Sunda∙ i≤ chea≡ unti∞ 5P═ (69)
- ááááááááátimechek
- áááááááááiµ errorleve∞ 6╣ got∩ OMMMHOLD
- ááááááááágot∩ OMMMSEND
-
- ááááááááá:MONDAY
- ááááááááá:TUESDAY
- ááááááááá:WEDNESDAY
- ááááááááá:THURSDAY
- ááááááááá:FRIDAY
- áááááááááreφ 9│ i≤ 23:00¼ 2╣ i≤ 07:0░ ¡ betweeε 7aφ ª ì
- áááááááááreφ 1▒ P═ HOL─ al∞ lonτ distance
- áááááááááreφ beforσ ╖ anΣ afte≥ 1▒ don'⌠ hold
- ááááááááátimechek
- áááááááááiµ errorleve∞ 9│ got∩ OMMMSEND
- áááááááááiµ errorleve∞ 2╣ got∩ OMMMHOLD
- ááááááááágot∩ OMMMSEND
-
- ááááááááá:SATURDAY
- áááááááááreφ Saturda∙ i≤ ALWAY╙ cheap¼ s∩ senΣ stuff
- ááááááááágot∩ OMMMSEND
-
- .lm 1
- Samplσ ruε ¡ RANG┼ option:
- .lm 10
- áááááá
- ááááááááátimecheδ -≥ al:040░-050░ sa:000░-240░ su:000░-170░ ì
- ááááááááá al:2300-240░ al:0000-0700
- áááááááááiµ errorleve∞ ▓ got∩ OMMMSEND
- áááááááááiµ errorleve∞ ▒ got∩ OMMMNMH
- ááááááááágot∩ OMMMHOLD
-
- .paè.lm 5
- .pm 1
- .oj on
-
- Note≤ anΣ caveats:
-
- 1) Thi≤ áprograφ áwa≤ compileΣ witΦ Turb∩ ├ versioε 1.░ áand¼ áa≤ ì
- áááásuch¼ ádoesn'⌠ reall∙ understanΣ timσ zones¼ s∩ n∩ timσ ázonσ ì
- áááái≤ displayed« [Thi≤ i≤ ß changσ froφ TIME96.]
-
- 2) Thσ á┘ anΣ ╥ option≤ arσ thσ onl∙ option≤ whicΦ caε returε áaε ì
- ááááerrorleve∞ oµ ░ (zero)« Al∞ other≤ returε ß minimuφ oµ ß á1« ì
- ááááN∩ áchecδ ái≤ ámadσ t∩ verif∙ tha⌠ áthσ áclock/calenda≥ ámakσ ì
- áááásense║ whateve≥ DO╙ reports¼ that'≤ wha⌠ i≤ returned.
-
- 3) Thi≤ prograφ ha≤ beeε testeΣ witΦ P├-DO╙ 3.2░ anΣ M╙-DO╙ 3.21« ì
- ááááOthe≥ áversion≤ áoµ DO╙ shoulΣ worδ fine¼ bu⌠ the∙ áhavσ áno⌠ ì
- áááábeeε tested.
-