JPH11184557A - Method and device for supporting time change and mechanically readable recording medium for recording program - Google Patents

Method and device for supporting time change and mechanically readable recording medium for recording program

Info

Publication number
JPH11184557A
JPH11184557A JP9365610A JP36561097A JPH11184557A JP H11184557 A JPH11184557 A JP H11184557A JP 9365610 A JP9365610 A JP 9365610A JP 36561097 A JP36561097 A JP 36561097A JP H11184557 A JPH11184557 A JP H11184557A
Authority
JP
Japan
Prior art keywords
time
generating means
correction
corrected
indicated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9365610A
Other languages
Japanese (ja)
Other versions
JP3087713B2 (en
Inventor
Takashi Komiyama
貴史 小見山
Shigeyuki Kawaguchi
重幸 川口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP09365610A priority Critical patent/JP3087713B2/en
Publication of JPH11184557A publication Critical patent/JPH11184557A/en
Application granted granted Critical
Publication of JP3087713B2 publication Critical patent/JP3087713B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

PROBLEM TO BE SOLVED: To immediately perform time correction by preventing an adverse influence from being exerted upon time correspondent processing even when an internal generated time is discontinuous by the time correction at a device with a clock function having a time generating means inside the device to perform the processing based on the generated time. SOLUTION: Based on the time period from an input device 1, a time changing means 3 immediately corrects the time of a time generating means 7. When the time is advanced by the time correction, a time change discriminating means 4 discriminates that a blank generates in the time and when the time is delayed, discriminates that overlap generates in the time. According to this discriminated result, a time correspondent processing control means 8 speedily starts the time correspondent processing to be started in the time zone becoming the blank and when the overlap in the time occurs, the means 8 is controlled so as not to double start the time correspondent processing.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は装置内に時刻生成手
段を有しその生成される時刻をもとに時刻対応処理を行
う時計機能付き装置に関し、特に時刻修正を即時に行い
且つ時刻修正によって時刻が不連続になることによる悪
影響を防止する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device with a clock function having a time generating means in the device and performing a time corresponding process based on the generated time, and more particularly to a device for immediately performing time correction and performing time correction. The present invention relates to a technique for preventing an adverse effect due to discontinuous time.

【0002】[0002]

【従来の技術】コンピュータシステム等の装置において
は、或る決まった時間帯に所定の処理を実行することが
多い。このように定時に実施される処理を時刻対応処理
と呼ぶ。このためコンピュータシステム等においては内
部に時刻生成手段を備え、この時刻生成手段で時々刻々
と生成される時刻をもとに処理の実行契機の到来を監視
している。従って、時刻生成手段の示す時刻が実際の時
刻と相違すると時刻対応処理の実行時刻が正確でなくな
る。そこで、時刻生成手段が常に正しい時刻を計時する
ようにする為、定期的に、外部から正確な時刻を入力し
て時刻生成手段の時刻を修正(補正)することが行われ
ている。
2. Description of the Related Art In an apparatus such as a computer system, a predetermined process is often executed in a predetermined time zone. The processing that is performed at a regular time in this manner is referred to as time corresponding processing. For this reason, a computer system or the like is provided with a time generating means inside, and monitors the arrival of a processing execution timing based on the time instantly generated by the time generating means. Therefore, if the time indicated by the time generating means is different from the actual time, the execution time of the time corresponding processing will not be accurate. Therefore, in order for the time generating means to always keep the correct time, an accurate time is input from the outside to correct (correct) the time of the time generating means on a regular basis.

【0003】ところで、例えば18時00分00秒から
同59秒までの時間帯において実施すべき処理Aがあ
り、時刻生成手段の示す時刻が17時58分00秒の時
点で時刻修正を行って正確な時刻である18時02分0
0秒に進める場合、図11(a)の矢印に示すように、
時刻生成手段の時刻を17時58分00秒から18時0
2分00秒に修正すると、破線で示す4分間の時間の空
白が生じ、処理Aが実施されない可能性がある。また、
例えば20時00分00秒から同59秒までの時間帯に
おいて実施すべき処理Bがあり、時刻生成手段の示す時
刻が20時02分00秒の時点で時刻修正を行って正確
な時刻である19時59分00秒に遅らせる場合、図1
1(b)の矢印に示すように、時刻生成手段の時刻を2
0時02分00秒から19時59分00秒に修正する
と、矢印が重なる3分間の時間だけ時間の重複が生じ、
時刻修正直前に既に実施されていた処理Bが時刻修正後
に再び実施されてしまう可能性がある。
By the way, there is a process A to be executed in a time zone from 18:00 to 59 seconds, for example, and the time is corrected when the time indicated by the time generating means is 17:58:00. 18: 02: 0 which is the exact time
When proceeding to 0 seconds, as shown by the arrow in FIG.
The time of the time generation means is changed from 17:58:00 to 18:00
If the time is corrected to 2:00 seconds, a time gap of 4 minutes indicated by a broken line occurs, and there is a possibility that the process A is not performed. Also,
For example, there is a process B to be performed in the time zone from 20:00:00 to 59:02, and the time indicated by the time generating means is correct by performing time correction at 20: 02: 00: 00. In the case of delaying at 19:59:00, FIG.
As shown by an arrow in FIG.
If you correct the time from 0:20:00 to 19:59:00, the time overlap occurs for 3 minutes when the arrows overlap,
There is a possibility that the process B that has been already performed immediately before the time correction is performed again after the time correction.

【0004】このため、装置内に時刻生成手段を有しそ
の生成される時刻をもとに処理を行う時計機能付き装置
においては、時刻修正による悪影響を防止する何らかの
技術が必要となる。
For this reason, in a device with a clock function that has a time generating means in the device and performs processing based on the generated time, some technique for preventing the adverse effect of time correction is required.

【0005】この防止技術の一つに、特開平5−536
84号公報に提案されている技術がある。同技術では、
外部から内部生成時刻の変更指示があると、即時に変更
するのではなく一定時間費やして通常より高速に時刻を
進めたり、また通常より低速で時刻を進めることによ
り、或る一定時間経過後の時点で最終的に時刻合わせを
完了することで、内部生成時刻の連続性を保証してい
る。
[0005] One of the prevention techniques is disclosed in Japanese Patent Application Laid-Open No. 5-536.
There is a technique proposed in Japanese Patent Application Publication No. 84-84. With this technology,
If there is an instruction to change the internally generated time from the outside, instead of changing it immediately, spend a certain amount of time and advance the time faster than usual, or advance the time slower than usual, and after a certain amount of time elapses The continuity of the internally generated time is guaranteed by finally completing the time adjustment at the time.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上記従
来技術では、一定時間を費やして通常より高速に時刻を
進めたり逆に通常より低速に時刻を進めたりして時刻合
わせを行うため、時刻変更を指示しても一定時間経過し
ないと正確な時刻に補正できない。正確な時刻に修正さ
れるまでに要する時間が長くなればなるほど、時刻対応
処理の実行時刻の精度低下を改善するのが遅れることに
なる。
However, in the above-mentioned prior art, the time is changed by spending a certain time to advance the time faster than usual or conversely to advance the time slower than usual. Even if it is instructed, it cannot be corrected to an accurate time until a certain time has elapsed. The longer the time required until the time is corrected to the correct time, the later the improvement in the decrease in accuracy of the execution time of the time corresponding processing is delayed.

【0007】そこで本発明の目的は、装置内に時刻生成
手段を有しその生成される時刻をもとに処理を行う時計
機能付き装置において、時刻修正によって内部生成時刻
が不連続になっても時刻対応処理へ悪影響を与えないよ
うにすることで、時刻修正を即時に行えるようにするこ
とにある。
Accordingly, an object of the present invention is to provide a device with a clock function that has time generating means in the device and performs processing based on the generated time even if the internally generated time becomes discontinuous due to time correction. An object of the present invention is to make it possible to correct time instantly by not affecting the time correspondence processing.

【0008】[0008]

【課題を解決するための手段】本発明の時刻変更支援方
法は上記の目的を達成するために、装置内に時刻生成手
段を有し、該時刻生成手段の示す時刻をもとに処理を行
う時計機能付き装置において、外部から与えられた時刻
に基づいて前記時刻生成手段の時刻を修正したとき、時
刻修正直前に前記時刻生成手段が示していた時刻とそれ
が修正された時刻とに基づいて、時刻に連動する処理の
実施の促進または実施の抑止を制御するようにしてい
る。具体的には、外部から与えられた時刻に基づいて前
記時刻生成手段の時刻を修正する時刻変更ステップと、
該時刻変更ステップによって前記時刻生成手段の時刻を
進めた場合、時刻修正直前に前記時刻生成手段が示して
いた時刻から前記時刻変更ステップによって修正された
時刻までに行うべき処理を速やかに実施させるステップ
と、前記時刻変更ステップによって前記時刻生成手段の
時刻を遅らせた場合、前記時刻変更ステップによって修
正された時刻から前記時刻修正直前に前記時刻生成手段
が示していた時刻までに行うべき処理の実施を抑止する
ステップとを含むことを特徴とする。
In order to achieve the above object, the time change support method of the present invention has a time generating means in an apparatus, and performs processing based on the time indicated by the time generating means. In the device with a clock function, when the time of the time generating unit is corrected based on a time given from the outside, based on the time indicated by the time generating unit immediately before the time correction and the time when the time is corrected. In addition, the promotion of the execution of the process linked to the time or the suppression of the execution is controlled. Specifically, a time changing step of correcting the time of the time generating means based on a time given from outside,
When the time of the time generating means is advanced by the time changing step, a step of promptly performing a process to be performed from the time indicated by the time generating means immediately before time correction to the time corrected by the time changing step And when the time of the time generating means is delayed by the time changing step, performing processing to be performed from the time corrected by the time changing step to the time indicated by the time generating means immediately before the time correction. And a step of inhibiting.

【0009】また本発明の時刻変更支援装置は上記の目
的を達成するために、装置内に時刻生成手段を有し、該
時刻生成手段の示す時刻をもとに処理を行う時計機能付
き装置において、外部から与えられた時刻に基づいて前
記時刻生成手段の時刻を修正する時刻変更手段と、該時
刻変更手段によって前記時刻生成手段の時刻を進めた場
合、時刻修正直前に前記時刻生成手段が示していた時刻
から前記時刻変更手段によって修正された時刻までに行
うべき処理を速やかに実施させ、前記時刻変更手段によ
って前記時刻生成手段の時刻を遅らせ場合、前記時刻変
更手段によって修正された時刻から前記時刻修正直前に
前記時刻生成手段が示していた時刻までに行うべき処理
の実施を抑止する時刻対応処理制御手段とを備えること
を特徴とする。
Further, in order to achieve the above object, the time change support device of the present invention is a device with a clock function which has a time generating means in the device and performs processing based on the time indicated by the time generating means. A time changing unit that corrects the time of the time generating unit based on a time given from outside; and, when the time of the time generating unit is advanced by the time changing unit, the time generating unit indicates the time immediately before the time correction. When the time to be performed from the time when the time has been corrected by the time changing means is promptly performed, and the time of the time generating means is delayed by the time changing means, the time corrected by the time changing means is And a time corresponding processing control means for suppressing execution of processing to be performed by the time indicated by the time generation means immediately before time correction.

【0010】このように構成された本発明の時刻変更支
援装置にあっては、外部から修正時刻が与えられると、
その時刻に基づいて時刻変更手段が時刻生成手段の示す
時刻を即時に修正する。そして、時刻対応処理制御手段
が、時刻生成手段の時刻が進められた場合、時刻修正直
前に時刻生成手段が示していた時刻から前記修正時刻ま
での間、即ち内部生成時刻の空白時間帯に行うべき処理
を速やかに実施させることで処理の未実行を回避し、反
対に、時刻生成手段の時刻を時刻修正によって遅らせた
場合、前記修正時刻から時刻修正直前に時刻生成手段が
示していた時刻までの間、即ち内部生成時刻の重複時間
帯に行うべき処理の実施を抑止することで二重実行を防
止する。
[0010] In the time change support device of the present invention configured as described above, when the correction time is given from the outside,
The time changing means immediately corrects the time indicated by the time generating means based on the time. Then, when the time of the time generating means is advanced, the time corresponding processing control means performs the time from the time indicated by the time generating means immediately before the time correction to the correction time, that is, during the blank time zone of the internally generated time. When the time of the time generation means is delayed by time correction, the time of the time generation means is delayed by time correction by causing the processing to be performed quickly, and conversely, from the correction time to the time indicated by the time generation means immediately before the time correction , That is, during the overlapping time period of the internally generated time, the execution of the process is suppressed, thereby preventing the double execution.

【0011】また本発明の時刻変更支援装置は上記目的
を達成すると共に、どのような時刻修正が過去に行われ
たかを調査し得るようにするために、装置内に時刻生成
手段を有し、該時刻生成手段の内部生成時刻をもとに処
理を行う時計機能付き装置において、装置外部から時刻
を入力する外部時刻入力手段と、前記時刻生成手段の示
す内部生成時刻を前記外部時刻入力手段において入力し
た外部入力時刻に修正する時刻変更手段と、前記外部時
刻入力手段において外部から入力した外部入力時刻と前
記時刻生成手段において内部生成した内部生成時刻との
差を計算する時刻差計算手段と、該時刻差計算手段にお
いて計算された時刻差を分析し、内部生成時刻がどれだ
け進められたか又は遅らせられたかを判定する時刻変更
判定手段と、該時刻変更判定手段の判定結果に基づい
て、時刻に連動する処理の実施抑止または実施促進を制
御する時刻対応処理制御手段と、前記時刻変更判定手段
の判定結果の情報と前記内部生成時刻の情報と前記外部
入力時刻の情報とを含む時刻変更履歴情報を生成する時
刻変更履歴情報生成手段と、該時刻変更履歴情報生成手
段で生成された時刻変更履歴情報を記憶する時刻変更履
歴情報記憶手段とを備えている。
The time change support device of the present invention has time generation means in the device so as to achieve the above object and to investigate what time correction has been performed in the past. In a device with a clock function that performs processing based on the internally generated time of the time generation unit, an external time input unit that inputs a time from outside the device, and an internally generated time indicated by the time generation unit is output by the external time input unit. Time changing means for correcting to the input external input time, time difference calculating means for calculating the difference between the external input time externally input in the external time input means and the internally generated time generated in the time generating means, Time change determining means for analyzing the time difference calculated by the time difference calculating means to determine how much the internally generated time has been advanced or delayed; Based on the determination result of the change determination unit, a time corresponding processing control unit that controls execution suppression or execution promotion of the process linked to the time, information of the determination result of the time change determination unit, information of the internally generated time, and Time change history information generation means for generating time change history information including information on an external input time; and time change history information storage means for storing time change history information generated by the time change history information generation means. ing.

【0012】このように構成された本発明の時刻変更支
援装置にあっては、利用者が修正時刻を装置外部から入
力すると、外部時刻入力手段がそれを入力し、時刻変更
手段が時刻生成手段の示す内部生成時刻を前記入力した
外部入力時刻に即時に修正する。このとき、時刻差計算
手段が外部入力時刻と時刻生成手段において内部生成し
た内部生成時刻(修正直前の時刻)との差を計算し、時
刻変更判定手段がこの計算された時刻差を分析し、内部
生成時刻がどれだけ進められたか又は遅らせられたかを
判定する。そして、時刻対応処理制御手段がその判定結
果に基づいて、時刻に連動する処理の実施抑止または実
施促進を制御すると共に、時刻変更履歴情報生成手段が
その判定結果の情報と前記内部生成時刻の情報と前記外
部入力時刻の情報とを含む時刻変更履歴情報を生成して
時刻変更履歴情報記憶手段に記憶する。
In the time change support apparatus of the present invention thus configured, when a user inputs a correction time from outside the apparatus, the external time input means inputs the time, and the time change means outputs the time generation means. Is immediately corrected to the input externally input time. At this time, the time difference calculation means calculates a difference between the external input time and the internally generated time (time immediately before correction) internally generated by the time generation means, and the time change determination means analyzes the calculated time difference, It is determined how much the internally generated time has been advanced or delayed. Then, the time corresponding processing control means controls the execution suppression or the promotion of the execution of the processing linked to the time based on the determination result, and the time change history information generating means outputs the information of the determination result and the information of the internal generation time. And generating the time change history information including the information of the external input time and storing the generated time change history information in the time change history information storage means.

【0013】[0013]

【発明の実施の形態】次に本発明の実施の形態の例につ
いて図面を参照して詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0014】図1は本発明の一実施例のブロック図であ
る。この例の時計機能付き装置10は、外部時刻入力手
段1と、時刻差計算手段2と、時刻変更手段3と、時刻
変更判定手段4と、時刻変更履歴情報生成手段5と、時
刻変更履歴情報記憶手段6と、時刻生成手段7と、時刻
対応処理制御手段8と、実行履歴情報記憶手段9とを備
えている。また、図2は時計機能付き装置10の処理の
概略を示すフローチャートである。なお、時計機能付き
装置10がマイクロプロセッサ等のコンピュータを制御
装置として備えている場合、上記各手段はコンピュータ
のハードウェア(CPU,メモリ等)とプログラムとで
実現することができる。この場合、図1に示すように、
時計機能付き装置10を構成するコンピュータ用のプロ
グラムを記憶した記録媒体13を設ける。記憶媒体13
中のプログラムはコンピュータに読み取られ、そのコン
ピュータの動作を制御することにより、そのコンピュー
タ上に外部時刻入力手段1,時刻差計算手段2,時刻変
更手段3,時刻変更判定手段4,時刻変更履歴情報生成
手段5,時刻生成手段7,時刻対応処理制御手段8を実
現する。
FIG. 1 is a block diagram of one embodiment of the present invention. The device with a clock function 10 of this example includes an external time input means 1, a time difference calculation means 2, a time change means 3, a time change determination means 4, a time change history information generation means 5, a time change history information The storage device includes a storage unit 6, a time generation unit 7, a time correspondence processing control unit 8, and an execution history information storage unit 9. FIG. 2 is a flowchart showing an outline of the processing of the device 10 with a clock function. In the case where the device with a clock function 10 includes a computer such as a microprocessor as a control device, each of the above units can be realized by hardware (a CPU, a memory, and the like) of the computer and a program. In this case, as shown in FIG.
A recording medium 13 storing a program for a computer constituting the device 10 with a clock function is provided. Storage medium 13
The program inside is read by a computer, and by controlling the operation of the computer, external time input means 1, time difference calculation means 2, time change means 3, time change determination means 4, time change history information The generating means 5, the time generating means 7, and the time corresponding processing control means 8 are realized.

【0015】時刻生成手段7は、装置内部にある時計で
あり、時々刻々と時を刻んでいる。この時刻生成手段7
が示す時刻は時刻差計算手段2に与えられると共に、所
定周期、例えば10秒,1分等の周期で割り込みによっ
て時刻対応処理制御手段8に通知される。また、時刻生
成手段7の時刻は時刻変更手段3によって修正できるよ
うになっている。
The time generating means 7 is a clock inside the apparatus, and keeps time every moment. This time generation means 7
Is given to the time difference calculating means 2 and is notified to the time corresponding processing control means 8 by interruption at a predetermined cycle, for example, 10 seconds, 1 minute, or the like. The time of the time generating means 7 can be corrected by the time changing means 3.

【0016】外部時刻入力手段1は、入力装置11から
修正時刻を入力する手段である。利用者は、入力装置1
1上の例えばテンキーを使用して修正時刻を入力して表
示装置12のモニタ表示によって内容を確認後、その修
正時刻となったタイミングで入力装置11上の時刻変更
開始キーを押すと、そのタイミングで外部時刻入力手段
1が上記修正時刻を入力し、外部入力時刻として時刻差
計算手段2に伝達する(ステップ1−1)。
The external time input means 1 is a means for inputting a correction time from the input device 11. The user can use the input device 1
After inputting the correction time using, for example, a ten key on the display device 1 and confirming the content by the monitor display of the display device 12, when the time change start key on the input device 11 is pressed at the timing when the correction time is reached, the timing Then, the external time input means 1 inputs the corrected time and transmits it to the time difference calculating means 2 as the external input time (step 1-1).

【0017】時刻差計算手段2は、外部時刻入力手段1
から外部入力時刻を受けると、時刻生成手段7のその時
点の時刻を内部生成時刻として読み取り、外部入力時刻
から内部生成時刻を差し引いて、両者の時刻差を求め、
外部入力時刻,内部生成時刻と共に時刻変更手段3に伝
達する(ステップ2−1)。時刻差は、内部生成時刻よ
り外部入力時刻の方が大きい場合には正の値となり、逆
の場合は負の値となる。
The time difference calculating means 2 comprises an external time inputting means 1
When the external input time is received from the device, the current time of the time generation means 7 is read as the internal generation time, and the internal generation time is subtracted from the external input time to obtain a time difference between the two.
The information is transmitted to the time changing means 3 together with the external input time and the internally generated time (step 2-1). The time difference has a positive value when the external input time is larger than the internally generated time, and has a negative value when the external input time is opposite.

【0018】時刻変更手段3は、時刻差計算手段2から
外部入力時刻,内部生成時刻および両者の時刻差を受け
ると、時刻生成手段7の時刻をその外部入力時刻に変更
することで、時刻生成手段7の時刻合わせを行い、時刻
合わせ完了メッセージを表示装置12に表示すると共
に、外部入力時刻,内部生成時刻および両者の時刻差を
時刻変更判定手段4に通知する(ステップ3−1)。
When the time changing means 3 receives the external input time, the internally generated time, and the time difference between the two from the time difference calculating means 2, the time changing means 3 changes the time of the time generating means 7 to the external input time to generate the time. The time setting of the means 7 is performed, a time setting completion message is displayed on the display device 12, and the external input time, the internally generated time, and the time difference between the two are notified to the time change determining means 4 (step 3-1).

【0019】時刻変更判定手段4は、時刻変更手段3か
ら外部入力時刻,内部生成時刻および両者の時刻差を受
けると、その時刻差を分析し、内部生成時刻がどれだけ
進められたか又は遅らせられたかを判定し(ステップ4
−1)、その判定結果に応じて以下の処理を行う。
When the time change judging means 4 receives the external input time, the internally generated time and the time difference between the two from the time changing means 3, it analyzes the time difference and determines how much the internally generated time has been advanced or delayed. (Step 4
-1) The following processing is performed according to the determination result.

【0020】時刻差が負のとき この場合、時刻修正によって時刻生成手段7の時刻が進
められたので、時間の空白が発生していると認識し、時
刻対応処理制御手段8に対して、時間の空白が発生した
旨と上記外部入力時刻および内部生成時刻とを指定した
時刻変更通知を出し、また、時刻変更履歴情報生成手段
5に対して、上記時刻差分の時間の空白が発生した旨と
上記外部入力時刻および内部生成時刻とを通知する。
When the time difference is negative In this case, since the time of the time generation means 7 has been advanced by time correction, it is recognized that a time gap has occurred, and the time correspondence processing control means 8 And a time change notification specifying the external input time and the internally generated time are issued, and the time change history information generating means 5 is notified that the time difference of the time has been generated. The external input time and the internally generated time are notified.

【0021】時刻差が正のとき この場合、時刻修正によって時刻生成手段7の時刻が遅
らせられたので、時間の重複が発生していると認識し、
時刻対応処理制御手段8に対して、時間の重複が発生し
た旨と上記内部生成時刻とを指定した時刻変更通知を出
し、また、時刻変更履歴情報生成手段5に対して、上記
時刻差分の時間の重複が発生した旨と上記外部入力時刻
および内部生成時刻とを通知する。
When the time difference is positive In this case, since the time of the time generation means 7 has been delayed by the time correction, it is recognized that time overlap has occurred,
A time change notification specifying the occurrence of time overlap and the internal generation time is issued to the time correspondence processing control means 8, and the time difference of the time difference is notified to the time change history information generation means 5. Are notified of the occurrence of duplication and the above-mentioned external input time and internally generated time.

【0022】なお、本実施例では、時刻差が零のときは
時刻差が負の場合と同じように扱っているが、正の場合
と同じように扱っても構わない。
In the present embodiment, when the time difference is zero, the time difference is handled in the same way as when the time difference is negative, but may be handled in the same way as when the time difference is positive.

【0023】時刻対応処理制御手段8は、時刻生成手段
7から一定周期の時刻割り込みがある毎に、その時刻に
おいて実行すべき処理の有無を調べ、実行すべき処理が
あるときはそれを実行させる。また、時刻変更判定手段
4から、時間の重複が発生した旨と内部生成時刻とが指
定された時刻変更通知を受けると時刻対応処理の抑止制
御処理(ステップ8−1)を実行し、時間の空白が発生
した旨と外部入力時刻および内部生成時刻とが指定され
た時刻変更通知を受けると時刻対応処理の促進制御処理
(ステップ8−2)を実行する。さらに、処理の実行履
歴情報を生成して実行履歴情報記憶手段9に記録する処
理も行っている。これらの各処理の詳細については後述
する。
Each time the time generating means 7 receives a time interrupt of a fixed period, the time corresponding processing control means 8 checks whether or not there is a process to be executed at that time, and if there is a process to be executed, executes it. . When a time change notification is received from the time change determining means 4 indicating that time overlap has occurred and the internally generated time has been designated, the time corresponding processing suppression control process (step 8-1) is executed, and the time Upon receiving a time change notification designating that a blank has occurred and the external input time and the internally generated time, a time-dependent processing promotion control process (step 8-2) is executed. Further, a process of generating execution history information of the process and recording the information in the execution history information storage unit 9 is also performed. Details of each of these processes will be described later.

【0024】他方、時刻変更履歴情報生成手段5は、時
刻変更判定手段4から、時刻差分の時間の重複が発生し
た旨と外部入力時刻および内部生成時刻とが通知される
と、時間重複有りの履歴情報記録処理(ステップ5−
1)を実行し、時刻差分の時間の空白が発生した旨と外
部入力時刻および内部生成時刻とが通知されると、時間
空白有りの履歴情報記録処理(ステップ5−2)を実行
する。
On the other hand, when the time change determination means 4 notifies the time change determining means 4 that the time difference of the time difference has occurred and the external input time and the internally generated time, the time change history information generating means 5 determines that there is a time overlap. History information recording processing (step 5-
When 1) is executed, and when the fact that the time gap of the time difference has occurred and the external input time and the internally generated time are notified, the history information recording processing with the time gap (step 5-2) is executed.

【0025】図3に時刻変更履歴情報記憶手段6の構成
例を示す。時刻変更履歴情報記憶手段6は半導体メモリ
や磁気ディスク装置などで構成される。時刻変更履歴情
報生成手段5は、時刻変更判定手段4から通知がある毎
に、時刻変更履歴情報記憶手段6上に2つの時刻変更履
歴情報記憶域6−1を確保し、各々の記憶域に以下のよ
うな情報を記録する。
FIG. 3 shows a configuration example of the time change history information storage means 6. The time change history information storage means 6 is composed of a semiconductor memory, a magnetic disk device, or the like. The time change history information generation means 5 secures two time change history information storage areas 6-1 on the time change history information storage means 6 each time there is a notification from the time change determination means 4, and stores Record the following information:

【0026】時刻差分Xの時間の空白が発生した旨と
外部入力時刻Yおよび内部生成時刻Zとが通知されたと
き 1つの時刻変更履歴情報記憶域6−1の時刻情報記憶域
6−1−1に内部生成時刻Zを、その時刻変更状況記憶
域6−1−2に「時間帯終了」を記録し、他の1つの時
刻変更履歴情報記憶域6−1の時刻情報記憶域6−1−
1に外部生成時刻Yを、その時刻変更状況記憶域6−1
−2に「時間帯開始」,「X間の空白有り」を記録す
る。例えば、時刻生成手段7が13時30分00秒を示
していた時点で13時45分00秒まで進める時刻修正
があった場合、時刻差分Xは+15分,外部入力時刻Y
は13時45分00秒,内部生成時刻Zは13時30分
00秒であり、図4に示すような情報が記録される。
When it is notified that a time gap of the time difference X has occurred and the external input time Y and the internally generated time Z are notified, the time information storage area 6-1 of one time change history information storage area 6-1. 1 and the “time zone end” in its time change status storage area 6-1-2, and the time information storage area 6-1 of another time change history information storage area 6-1. −
1, the external generation time Y and the time change status storage area 6-1.
In “−2”, “time zone start” and “there is a blank between X” are recorded. For example, if there is a time correction to advance to 13:45:00 when the time generation unit 7 indicates 13:30:00, the time difference X is +15 minutes, and the external input time Y
Is 13:45:00 and the internally generated time Z is 13:30:00, and information as shown in FIG. 4 is recorded.

【0027】時刻差分Xの時間の重複が発生した旨と
外部入力時刻Yおよび内部生成時刻Zとが通知されたと
き 1つの時刻変更履歴情報記憶域6−1の時刻情報記憶域
6−1−1に内部生成時刻Zを、その時刻変更状況記憶
域6−1−2に「時間帯終了」を記録し、他の1つの時
刻変更履歴情報記憶域6−1の時刻情報記憶域6−1−
1に外部生成時刻Yを、その時刻変更状況記憶域6−1
−2に「時間帯開始」,「X間の重複有り」を記録す
る。例えば、時刻生成手段7が13時30分00秒を示
していた時点で13時15分00秒まで遅らせる時刻修
正があった場合、時刻差分Xは−15分,外部入力時刻
Yは13時15分00秒,内部生成時刻Zは13時30
分00秒であり、図5に示すような情報が記録される。
When it is notified that time overlap of time difference X has occurred, and that external input time Y and internally generated time Z have been notified, time information storage area 6-1 of one time change history information storage area 6-1. 1 and the “time zone end” in its time change status storage area 6-1-2, and the time information storage area 6-1 of another time change history information storage area 6-1. −
1, the external generation time Y and the time change status storage area 6-1.
In "-2", "time zone start" and "X overlap" are recorded. For example, if the time generation unit 7 indicates that the time is 13:30, the time is delayed until 13:15:00, and the time difference X is -15 minutes, and the external input time Y is 13:15. Minute 00 seconds, internally generated time Z is 13:30
The minutes are 00 seconds, and information as shown in FIG. 5 is recorded.

【0028】図6は時刻対応処理制御手段8の構成例を
示すブロック図である。この例の時刻対応処理制御手段
8は、制御部81と、時刻対応処理毎の処理部82−1
〜82−nと、実行履歴情報生成部83と、タイムテー
ブル84と、重複処理制御テーブル85とから構成され
ている。
FIG. 6 is a block diagram showing a configuration example of the time corresponding processing control means 8. The time corresponding processing control means 8 in this example includes a control unit 81 and a processing unit 82-1 for each time corresponding processing.
82-n, an execution history information generation unit 83, a time table 84, and an overlap processing control table 85.

【0029】タイムテーブル84は、時間対応処理毎
に、実行すべき時間帯の情報と、実行済か否かを管理す
るための実行済フラグとを格納している。実行済フラグ
は当該処理が実行されたときに“1”にセットされ、所
定の時刻、例えば午前0時00分00秒に“0”にリセ
ットされる。
The time table 84 stores, for each time-corresponding process, information on a time zone to be executed and an executed flag for managing whether or not the execution has been completed. The executed flag is set to “1” when the process is executed, and is reset to “0” at a predetermined time, for example, 0:00:00 AM.

【0030】重複処理制御テーブル85は、時刻変更判
定手段4から時間の重複が発生した旨と内部生成時刻と
が通知された場合に、その後の時刻対応処理の抑止制御
処理のための制御情報を保持しておくテーブルである。
この重複処理制御テーブル85は、時刻変更判定手段4
から時間の重複が発生した旨が通知されたときに“1”
にセットされ、時刻対応処理の抑止制御処理の終了時に
リセットされる重複フラグと、時刻変更判定手段4から
通知された内部生成時刻を修正前時刻として格納する。
When the time change judging means 4 notifies that the time overlap has occurred and the internal generation time, the overlap processing control table 85 stores the control information for the subsequent suppression control processing of the time correspondence processing. It is a table to keep.
The overlap processing control table 85 is stored in the time change determination unit 4.
"1" when notified that time overlap has occurred
And the duplication flag reset at the end of the suppression control processing of the time corresponding processing and the internally generated time notified from the time change determination means 4 are stored as the pre-correction time.

【0031】処理部82−1〜82−nは時刻対応処理
を司る部分であり、制御部81から起動されることによ
り所定の時刻対応処理を実行する。時刻対応処理の具体
例としては、当該時計機能付き装置10が例えば時間帯
ごとに利用者に対する課金を変化させる例えば現金自動
支払い機等のサービス装置である場合には、内部的に課
金情報を変更する処理などがある。また、当該時計機能
付き装置10が例えば顧客に対してモーニングコールを
自動で行う装置である場合、各顧客に対して自動的に電
話をかけてメッセージを流す処理などがある。勿論、そ
の他各種の処理への適用が可能である。
The processing units 82-1 to 82-n are responsible for time corresponding processing, and execute predetermined time corresponding processing when activated by the control unit 81. As a specific example of the time correspondence processing, when the device 10 with a clock function is a service device such as a cash dispenser that changes the charge to the user for each time zone, the charge information is internally changed. Processing. When the device 10 with a clock function is a device that automatically performs a wake-up call to customers, for example, there is a process of automatically calling each customer and sending a message. Of course, application to various other processes is possible.

【0032】実行履歴情報生成部83は、処理部82−
1〜82−nの実行履歴情報を生成して実行履歴情報記
憶手段9に格納する手段である。図7に実行履歴情報記
憶手段9の構成例を示す。実行履歴情報記憶手段9は半
導体メモリや磁気ディスク装置などで構成される。実行
履歴情報生成手段83は、制御部81から或る処理部8
2−i(i=1〜n)を起動した旨とその起動時刻とを
受けると、実行履歴情報記憶手段9上に1つの実行履歴
情報記憶域9−1を確保し、その処理情報記憶域9−1
−1に起動された処理部の名前を、その実行時刻記憶域
9−1−2に起動時刻を記録する。例えば、時刻18時
00分10秒に処理Aという処理部が起動された場合、
図8に示すような情報が記録される。
The execution history information generating unit 83 includes a processing unit 82-
This is means for generating execution history information 1 to 82-n and storing it in the execution history information storage means 9. FIG. 7 shows a configuration example of the execution history information storage means 9. The execution history information storage means 9 is composed of a semiconductor memory, a magnetic disk device, or the like. The execution history information generating means 83 is provided from the control unit 81 to a certain processing unit 8.
2-i (i = 1 to n) is activated, and when the activation time is received, one execution history information storage area 9-1 is secured on the execution history information storage means 9 and the processing information storage area 9-1
-1 is stored in the execution time storage area 9-1-2. For example, when a processing unit called process A is activated at time 18:00:10 seconds,
Information as shown in FIG. 8 is recorded.

【0033】制御部81は、時刻生成手段7から一定周
期で発生する時刻割り込みによる時刻対応処理の起動制
御や、時刻対応処理の抑止制御,促進制御を司る手段で
ある。図9に時刻変更判定手段4から時刻変更通知があ
ったときに制御部81で実施される処理の一例を、図1
0に時刻生成手段7から時刻割り込みがあったときに制
御部81で実施される処理の一例を、それぞれ示す。
The control section 81 is a means for controlling start-up of time-dependent processing by time interruption generated at a fixed period from the time generating means 7, and control of suppression and promotion of time-dependent processing. FIG. 9 shows an example of processing performed by the control unit 81 when a time change notification is received from the time change determination unit 4 in FIG.
An example of a process performed by the control unit 81 when a time interrupt is issued from the time generation unit 7 at 0 is shown.

【0034】以下、各図を参照して時刻対応処理制御手
段8の動作を説明する。
The operation of the time corresponding processing control means 8 will be described below with reference to the drawings.

【0035】時刻変更判定手段4から時刻変更通知を受
けると、制御部81は図9に示す処理を開始する。先
ず、当該時刻変更通知の内容を判別し(ステップS
1)、時間の重複が発生しているときはステップS2の
処理を行い、時間の空白が発生しているときはステップ
S3〜S10の処理を行う。
Upon receiving the time change notification from the time change determining means 4, the control section 81 starts the processing shown in FIG. First, the content of the time change notification is determined (step S
1) If the time overlap occurs, the processing of step S2 is performed, and if the time gap occurs, the processing of steps S3 to S10 is performed.

【0036】時間の重複が発生していた場合、ステップ
S2では、時刻変更判定手段4から通知された内部生成
時刻(修正直前の時刻生成手段7の生成時刻)を重複処
理制御テーブル85の修正前時刻に設定すると共に重複
フラグを“1”にセットする。時間の重複が発生した旨
の通知を受けた時点での制御部81の処理はこのステッ
プS2だけであり、重複フラグが“1”にセットされる
ことにより図10を参照して説明する時刻割り込み時に
時刻対応処理の抑止制御が実施される。
If time overlap has occurred, in step S 2, the internal generation time notified by the time change determination means 4 (the generation time of the time generation means 7 immediately before correction) is set before the correction in the overlap processing control table 85. The time is set and the duplication flag is set to "1". The process of the control unit 81 at the time of receiving the notification that the time overlap has occurred is only this step S2. When the overlap flag is set to "1", the time interrupt described with reference to FIG. At times, the suppression control of the time corresponding processing is performed.

【0037】他方、時間の空白が発生していた場合、時
刻変更判定手段4から通知された内部生成時刻(修正直
前の時刻生成手段7の生成時刻)から外部入力時刻(時
刻生成手段7の修正された時刻)までの空白時間帯を内
部に保存し(ステップS3)、ステップS4〜S10の
時刻対応処理の促進制御を以下のように行う。
On the other hand, if a time gap occurs, the internal generation time (the generation time of the time generation unit 7 immediately before correction) notified from the time change determination unit 4 changes to the external input time (correction of the time generation unit 7). The blank time zone up to the specified time is internally stored (step S3), and the promotion control of the time corresponding process in steps S4 to S10 is performed as follows.

【0038】タイムテーブル84中の先頭の処理に注目
し(ステップS4)、その実行時間帯が空白時間帯と重
なるかどうかを調べ(ステップS5)、重なる場合はそ
の実行フラグが未実行を示す“0”か否かを調べる(ス
テップS6)。実行時間帯が空白時間帯と重ならない場
合、或いは重なっても実行済フラグが実行済を示す
“1”の場合はタイムテーブル84中の次の処理に注目
を移す(ステップS9)。実行時間帯が空白時間帯と重
複し、且つ実行済フラグが未実行を示す“0”の場合
は、当該処理を担当する処理部82−iを起動する(ス
テップS7)。そして、実行済フラグを“1”にセット
すると共に起動した処理名と起動時刻とを実行履歴情報
生成部83に通知して実行履歴情報の記録を行わせ(ス
テップS8)、その後、タイムテーブル84中の次の処
理に注目を移す(ステップS9)。なお、起動時刻とし
ては前回の時刻割り込み時に通知された時刻を使用して
も良く、新たに時刻生成手段7から取得するようにして
も良い。
Attention is paid to the first process in the time table 84 (step S4), and it is checked whether or not the execution time period overlaps with the blank time period (step S5). It is checked whether it is "0" (step S6). If the execution time period does not overlap with the blank time period, or if the execution time flag is "1" indicating that execution has been completed even if it overlaps, attention is shifted to the next process in the time table 84 (step S9). If the execution time period overlaps with the blank time period and the executed flag is “0” indicating no execution, the processing unit 82-i in charge of the process is activated (step S <b> 7). Then, the execution flag is set to "1", and at the same time, the name of the started process and the start time are notified to the execution history information generating unit 83 to record the execution history information (step S8). Attention is shifted to the next process in the middle (step S9). Note that the time notified at the previous time interruption may be used as the start time, or a new time may be obtained from the time generation means 7.

【0039】制御部81は、ステップS5〜S8の処理
をタイムテーブル84中に登録された最後の処理まで繰
り返すと(ステップS10でYES)、時刻対応処理の
促進制御を終了する。これによって、時間の空白時間帯
に起動すべき処理を漏れなく且つ速やかに起動すること
ができる。
When the control section 81 repeats the processing of steps S5 to S8 until the last processing registered in the time table 84 (YES in step S10), the control for promoting the time corresponding processing ends. As a result, the processes to be started during the blank time period can be started promptly without omission.

【0040】また制御部81は時刻生成手段7から時刻
割り込みがあると、図10に示す処理を開始する。ま
ず、重複処理制御テーブル85の重複フラグが“1”か
否かを判定し(ステップS11)、“0”であれば時刻
対応処理の抑止制御を実施する必要がないので、ステッ
プS12〜S18の通常処理を行い、重複フラグが1で
あればステップS19,S20の時刻対応処理の抑止制
御を実施する。
Further, when there is a time interrupt from the time generating means 7, the control section 81 starts the processing shown in FIG. First, it is determined whether or not the duplication flag of the duplication processing control table 85 is "1" (step S11). If it is "0", it is not necessary to execute the time-dependent processing suppression control. Normal processing is performed, and if the duplication flag is 1, control for suppressing the time corresponding processing in steps S19 and S20 is performed.

【0041】通常処理では、タイムテーブル84中の先
頭の処理に注目し(ステップS12)、今回割り込みに
よって通知された内部生成時刻がその処理の実行時間帯
に含まれるかどうかを調べ(ステップS13)、含まれ
る場合はその処理の実行済フラグが実行済を示す“1”
か否かを調べる(ステップS14)。内部生成時刻が実
行時間帯に含まれない場合、或いは含まれても実行済フ
ラグが“1”の場合はタイムテーブル84中の次の処理
に注目を移す(ステップS17)。内部生成時刻が実行
時間帯に含まれ、且つ実行済フラグが未実行を示す
“0”の場合は、当該処理を担当する処理部82−iを
起動する(ステップS15)。そして、実行済フラグを
“1”にセットすると共に起動した処理名と起動時刻と
を実行履歴情報生成部83に通知して実行履歴情報の記
録を行わせ(ステップS16)、その後、タイムテーブ
ル84中の次の処理に注目を移す(ステップS17)。
制御部81は、ステップS13〜S16の処理をタイム
テーブル84中に登録された最後の処理まで繰り返すと
(ステップS18でYES)、今回の時刻割り込みにか
かる処理を終了する。これによって、当該内部生成時刻
に起動すべき処理を漏れなく起動することができる。
In the normal processing, attention is paid to the first processing in the time table 84 (step S12), and it is checked whether or not the internally generated time notified this time by the interruption is included in the execution time zone of the processing (step S13). , If included, the executed flag of the process indicates “1” indicating that the process has been executed.
It is checked whether it is (Step S14). If the internally generated time is not included in the execution time slot, or if the executed flag is "1" even if it is included, the process is shifted to the next process in the time table 84 (step S17). If the internally generated time is included in the execution time zone and the executed flag is “0” indicating that the processing has not been executed, the processing unit 82-i responsible for the process is activated (step S <b> 15). Then, the execution flag is set to "1", and at the same time, the execution process name and the activation time are notified to the execution history information generation unit 83 to record the execution history information (step S16). Attention is shifted to the next processing in the middle (step S17).
When the control unit 81 repeats the processing of steps S13 to S16 until the last processing registered in the time table 84 (YES in step S18), the processing relating to the current time interruption ends. Thus, the process to be started at the internal generation time can be started without omission.

【0042】他方、重複フラグが“1”のときに行う時
刻対応処理の抑止制御では、今回の割り込みによって通
知された内部生成時刻が重複処理制御テーブル85に記
録された修正前時刻に達したかどうかを判定し(ステッ
プS19)、未だ達していなければ尚も重複中の時間で
あるため、通常処理で行ったようなステップS12〜S
18は実行せず、当該時刻割り込みにかかる処理を終了
する。反対に、今回の割り込みによって通知された内部
生成時刻が重複処理制御テーブル85に記録された修正
前時刻に達していれば(ステップS19でNO)、重複
時間帯を抜けたので、重複処理制御テーブル85の重複
フラグを“0”にリセットした後(ステップS20)、
ステップS12に移行し、上述した通常処理を行う。こ
のような制御によって、無駄な処理を行うことなく二重
起動を防止している。
On the other hand, in the suppression control of the time corresponding processing performed when the duplication flag is “1”, the internal generation time notified by the current interrupt has reached the pre-correction time recorded in the duplication processing control table 85. It is determined whether or not it has not yet reached (Step S19). If it has not yet reached, it is still the overlapping time, so Steps S12 to S as performed in the normal processing are performed.
Step 18 is not executed, and the process related to the time interruption ends. Conversely, if the internally generated time notified by the current interrupt has reached the pre-correction time recorded in the overlap processing control table 85 (NO in step S19), the overlap time period has passed and the overlap processing control table After resetting the duplication flag of No. 85 to “0” (step S20),
The process proceeds to step S12 to perform the above-described normal processing. By such control, double starting is prevented without performing unnecessary processing.

【0043】なお、以上の実施例では、時刻情報とし
て、時,分,秒を用いたが、時,分だけで時刻を示す場
合にも適用でき、また年月日を含んだ時刻やミリ秒まで
含んだ時刻を扱う装置に対しても適用可能である。
In the above embodiment, the hour, minute, and second are used as the time information. However, the present invention can be applied to a case where the time is indicated only by the hour and minute. The present invention is also applicable to a device that handles a time including the time up to.

【0044】[0044]

【発明の効果】以上説明したように本発明によれば以下
のような効果を得ることができる。
As described above, according to the present invention, the following effects can be obtained.

【0045】外部から与えられた時刻に基づいて時刻生
成手段の時刻が修正されたとき、時刻修正時点において
時刻生成手段が示していた時刻とそれが修正された時刻
とに基づいて、時刻に連動する処理の実施の促進または
実施の抑止を制御するようにした為、時刻修正によって
内部生成時刻が不連続になっても時刻対応処理が実行さ
れなかったり、二重に実行されることがなくなり、時刻
修正は即時に行うことが可能となる。
When the time of the time generating means is corrected based on a time provided from outside, the time is linked to the time based on the time indicated by the time generating means at the time of time correction and the time at which the time was corrected. In order to control the promotion or suppression of the execution of the processing to be performed, even if the internally generated time becomes discontinuous due to time correction, the time corresponding processing will not be executed or will not be executed twice, The time can be adjusted immediately.

【0046】時刻変更履歴情報を時刻変更履歴情報記憶
手段に記録するようにしたので、どのような時刻修正が
過去に行われたかを調査することができる。このため、
時刻対応処理の実行時刻が異常となった場合に、その原
因が時刻修正の誤りによるものか否かを確認すること等
が可能となる。
Since the time change history information is recorded in the time change history information storage means, it is possible to investigate what time correction has been performed in the past. For this reason,
When the execution time of the time corresponding process becomes abnormal, it is possible to confirm whether or not the cause is due to an incorrect time correction.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】時計機能付き装置の処理の概略を示すフローチ
ャートである。
FIG. 2 is a flowchart showing an outline of processing of the device with a clock function.

【図3】時刻変更履歴情報記憶手段の構成例を示す図で
ある。
FIG. 3 is a diagram showing a configuration example of a time change history information storage unit.

【図4】時刻修正によって時間の空白が発生した場合に
時刻変更履歴情報記憶手段に記録される時刻変更履歴情
報の例を示す図である。
FIG. 4 is a diagram showing an example of time change history information recorded in time change history information storage means when a time gap occurs due to time correction.

【図5】時刻修正によって時間の重複が発生した場合に
時刻変更履歴情報記憶手段に記録される時刻変更履歴情
報の例を示す図である。
FIG. 5 is a diagram showing an example of time change history information recorded in time change history information storage means when time overlap occurs due to time correction.

【図6】時刻対応処理制御手段の構成例を示すブロック
図である。
FIG. 6 is a block diagram illustrating a configuration example of a time corresponding processing control unit.

【図7】実行履歴情報記憶手段の構成例を示す図であ
る。
FIG. 7 is a diagram illustrating a configuration example of an execution history information storage unit.

【図8】実行履歴情報記憶手段に記憶される実行履歴情
報の例を示す図である。
FIG. 8 is a diagram illustrating an example of execution history information stored in an execution history information storage unit.

【図9】時刻変更判定手段から時刻変更通知があったと
きに時刻対応処理制御手段の制御部で実施される処理の
一例を示すフローチャートである。
FIG. 9 is a flowchart illustrating an example of a process performed by a control unit of a time corresponding process control unit when a time change notification is received from a time change determination unit.

【図10】時刻生成手段から時刻割り込みがあったとき
に時刻対応処理制御手段の制御部で実施される処理の一
例を示すフローチャートである。
FIG. 10 is a flowchart illustrating an example of a process performed by a control unit of a time corresponding process control unit when a time interrupt is issued from a time generation unit;

【図11】時刻生成手段の時刻を即時に変更した場合に
発生する時間の空白および時間の重複の説明図である。
FIG. 11 is an explanatory diagram of time blanks and time overlaps that occur when the time of the time generating means is immediately changed.

【符号の説明】[Explanation of symbols]

1…外部時刻入力手段 2…時刻差計算手段 3…時刻変更手段 4…時刻変更判定手段 5…時刻変更履歴情報生成手段 6…時刻変更履歴情報記憶手段 7…時刻生成手段 8…時刻対応処理制御手段 9…実行履歴情報記憶手段 10…時計機能付き装置 11…入力装置 12…表示装置 13…記録媒体 81…制御部 82−1〜82−n…処理部 83…実行履歴情報生成部 84…タイムテーブル 85…重複処理制御テーブル DESCRIPTION OF SYMBOLS 1 ... External time input means 2 ... Time difference calculation means 3 ... Time change means 4 ... Time change determination means 5 ... Time change history information generation means 6 ... Time change history information storage means 7 ... Time generation means 8 ... Time correspondence processing control Means 9 ... Execution history information storage means 10 ... Device with clock function 11 ... Input device 12 ... Display device 13 ... Recording medium 81 ... Control unit 82-1 to 82-n ... Processing unit 83 ... Execution history information generation unit 84 ... Time Table 85: Duplication processing control table

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 装置内に時刻生成手段を有し、該時刻生
成手段の示す時刻をもとに処理を行う時計機能付き装置
において、外部から与えられた時刻に基づいて前記時刻
生成手段の時刻を修正したとき、時刻修正直前に前記時
刻生成手段が示していた時刻とそれが修正された時刻と
に基づいて、時刻に連動する処理の実施の促進または実
施の抑止を制御するようにしたことを特徴とする時刻変
更支援方法。
1. An apparatus having a clock function for performing processing based on the time indicated by the time generating means in the apparatus, wherein the time of the time generating means is determined based on a time given from outside. When the time is corrected, based on the time indicated by the time generating means immediately before the time correction and the time at which the time is corrected, the promotion of the execution of the process linked to the time or the suppression of the execution is controlled. A time change support method, characterized in that:
【請求項2】 装置内に時刻生成手段を有し、該時刻生
成手段の示す時刻をもとに処理を行う時計機能付き装置
において、 外部から与えられた時刻に基づいて前記時刻生成手段の
時刻を修正する時刻変更ステップと、 該時刻変更ステップによって前記時刻生成手段の時刻を
進めた場合、時刻修正直前に前記時刻生成手段が示して
いた時刻から前記時刻変更ステップによって修正された
時刻までに行うべき処理を速やかに実施させるステップ
と、 前記時刻変更ステップによって前記時刻生成手段の時刻
を遅らせた場合、前記時刻変更ステップによって修正さ
れた時刻から前記時刻修正直前に前記時刻生成手段が示
していた時刻までに行うべき処理の実施を抑止するステ
ップとを含むことを特徴とする時刻変更支援方法。
2. An apparatus having a clock function for performing processing based on the time indicated by the time generating means in the apparatus, wherein the time of the time generating means is controlled based on a time given from outside. A time changing step of correcting the time, and when the time of the time generating means is advanced by the time changing step, the time is adjusted from a time indicated by the time generating means immediately before the time is corrected to a time corrected by the time changing step. When the time of the time generating means is delayed by the time changing step, the time indicated by the time generating means immediately before the time correction from the time corrected by the time changing step. And a step of suppressing execution of processing to be performed by the time.
【請求項3】 装置内に時刻生成手段を有し、該時刻生
成手段の示す時刻をもとに処理を行う時計機能付き装置
において、 外部から与えられた時刻に基づいて前記時刻生成手段の
時刻を修正する時刻変更手段と、 該時刻変更手段によって前記時刻生成手段の時刻を進め
た場合、時刻修正直前に前記時刻生成手段が示していた
時刻から前記時刻変更手段によって修正された時刻まで
に行うべき処理を速やかに実施させ、前記時刻変更手段
によって前記時刻生成手段の時刻を遅らせた場合、前記
時刻変更手段によって修正された時刻から前記時刻修正
直前に前記時刻生成手段が示していた時刻までに行うべ
き処理の実施を抑止する時刻対応処理制御手段とを備え
ることを特徴とする時刻変更支援装置。
3. An apparatus having a clock function for performing processing based on a time indicated by the time generating means in the apparatus, wherein the time of the time generating means is determined based on a time given from outside. A time changing means for correcting the time, when the time of the time generating means is advanced by the time changing means, from the time indicated by the time generating means immediately before time correction to the time corrected by the time changing means If the time generation means is to be executed quickly and the time of the time generation means is delayed by the time change means, the time from the time corrected by the time change means to the time indicated by the time generation means immediately before the time correction A time change support device, comprising: a time corresponding process control unit that suppresses execution of a process to be performed.
【請求項4】 装置内に時刻生成手段を有し、該時刻生
成手段の内部生成時刻をもとに処理を行う時計機能付き
装置において、 装置外部から時刻を入力する外部時刻入力手段と、 前記時刻生成手段の示す内部生成時刻を前記外部時刻入
力手段において入力した外部入力時刻に修正する時刻変
更手段と、 前記外部時刻入力手段において外部から入力した外部入
力時刻と前記時刻生成手段において内部生成した内部生
成時刻との差を計算する時刻差計算手段と、 該時刻差計算手段において計算された時刻差を分析し、
内部生成時刻がどれだけ進められたか又は遅らせられた
かを判定する時刻変更判定手段と、 該時刻変更判定手段の判定結果に基づいて、時刻に連動
する処理の実施抑止または実施促進を制御する時刻対応
処理制御手段と、 前記時刻変更判定手段の判定結果の情報と前記内部生成
時刻の情報と前記外部入力時刻の情報とを含む時刻変更
履歴情報を生成する時刻変更履歴情報生成手段と、 該時刻変更履歴情報生成手段で生成された時刻変更履歴
情報を記憶する時刻変更履歴情報記憶手段とを備えるこ
とを特徴とする時刻変更支援装置。
4. An apparatus having a clock function for performing processing based on an internally generated time of the time generating means, wherein the external time input means inputs a time from outside the apparatus. Time changing means for correcting the internally generated time indicated by the time generating means to the external input time input at the external time input means, and externally input time input from outside at the external time input means and internally generated at the time generating means. Time difference calculating means for calculating a difference from the internally generated time; analyzing the time difference calculated by the time difference calculating means;
Time change determining means for determining how much the internally generated time has been advanced or delayed, and time correspondence for controlling the suppression or promotion of the execution of the processing linked to the time based on the determination result of the time change determining means. Processing control means; time change history information generation means for generating time change history information including information on the determination result of the time change determination means, information on the internally generated time, and information on the external input time; A time change support device comprising: time change history information storage means for storing time change history information generated by history information generation means.
【請求項5】 コンピュータシステム内に時計装置を有
し、該時計装置の示す時刻をもとに処理を行うコンピュ
ータシステムにおいて、 コンピュータに、 外部から与えられた時刻に基づいて前記時計装置の時刻
を修正する時刻変更ステップと、 該時刻変更ステップによって前記時計装置の時刻を進め
た場合、時刻修正直前に前記時計装置が示していた時刻
から前記時刻変更ステップによって修正された時刻まで
に行うべき処理を速やかに実施させるステップと、 前記時刻変更ステップによって前記時計装置の時刻を遅
らせた場合、前記時刻変更ステップによって修正された
時刻から前記時刻修正直前に前記時計装置が示していた
時刻までに行うべき処理の実施を抑止するステップとを
実行させるプログラムを記録した機械読み取り可能な記
録媒体。
5. A computer system having a clock device in a computer system and performing processing based on the time indicated by the clock device, wherein a computer controls the time of the clock device based on a time given from outside. A time changing step to be corrected; and, if the time of the clock device is advanced by the time changing step, a process to be performed from a time indicated by the clock device immediately before time correction to a time corrected by the time changing step. A step of promptly executing, and, when the time of the clock device is delayed by the time changing step, a process to be performed from a time corrected by the time changing step to a time indicated by the clock device immediately before the time correction. And a machine-readable record of a program for executing the steps of: Media.
JP09365610A 1997-12-22 1997-12-22 Time change support method and apparatus, and machine-readable recording medium recording program Expired - Fee Related JP3087713B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09365610A JP3087713B2 (en) 1997-12-22 1997-12-22 Time change support method and apparatus, and machine-readable recording medium recording program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09365610A JP3087713B2 (en) 1997-12-22 1997-12-22 Time change support method and apparatus, and machine-readable recording medium recording program

Publications (2)

Publication Number Publication Date
JPH11184557A true JPH11184557A (en) 1999-07-09
JP3087713B2 JP3087713B2 (en) 2000-09-11

Family

ID=18484692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09365610A Expired - Fee Related JP3087713B2 (en) 1997-12-22 1997-12-22 Time change support method and apparatus, and machine-readable recording medium recording program

Country Status (1)

Country Link
JP (1) JP3087713B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56140285A (en) * 1980-04-01 1981-11-02 Idec Izumi Corp Adjusting device of week programmer at uncontinuous time
JPH08255088A (en) * 1995-03-17 1996-10-01 Mitsubishi Electric Corp Time interval and time processing management system
JPH11110232A (en) * 1997-10-08 1999-04-23 Fujitsu Ltd Time management change device and external interrupt protection device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56140285A (en) * 1980-04-01 1981-11-02 Idec Izumi Corp Adjusting device of week programmer at uncontinuous time
JPH08255088A (en) * 1995-03-17 1996-10-01 Mitsubishi Electric Corp Time interval and time processing management system
JPH11110232A (en) * 1997-10-08 1999-04-23 Fujitsu Ltd Time management change device and external interrupt protection device

Also Published As

Publication number Publication date
JP3087713B2 (en) 2000-09-11

Similar Documents

Publication Publication Date Title
JP3087713B2 (en) Time change support method and apparatus, and machine-readable recording medium recording program
JPH0654476B2 (en) Control memory error correction control method
JP2908343B2 (en) Transaction processing system
JP4313858B2 (en) calculator
JPS5878239A (en) Operation controlling circuit
CN111417011B (en) seek request response method, device, equipment, readable storage medium and player
JP2658854B2 (en) System clock correction method
JP3106601B2 (en) measuring device
JP3734042B2 (en) Process management method
US20040015741A1 (en) Watchdog device operation
JP2695785B2 (en) Processing state display method of processing unit
JP3478609B2 (en) Timing system
JPH11231071A (en) Electronic watch with auto-calendar
JP2812037B2 (en) Restart control method for business processing programs
KR100208711B1 (en) Facsimile equipment
CN115495327A (en) Method for realizing countdown on iOS system
JPH02280237A (en) System for controlling transaction processing time
JP2900885B2 (en) Time information correction device
JPS6054054A (en) Detection for program runaway
JPH0643963A (en) Computer system equipped with timer function
KR100762178B1 (en) Timer error correcting method of display apparatus
JP2987592B2 (en) Electronic clock
JPH0553684A (en) Computer system with time correcting function
JPH064175A (en) Timer managing system
JPH0643962A (en) Time varying device for software clock

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees