JP3087713B2 - Time change support method and apparatus, and machine-readable recording medium recording program - Google Patents

Time change support method and apparatus, and machine-readable recording medium recording program

Info

Publication number
JP3087713B2
JP3087713B2 JP09365610A JP36561097A JP3087713B2 JP 3087713 B2 JP3087713 B2 JP 3087713B2 JP 09365610 A JP09365610 A JP 09365610A JP 36561097 A JP36561097 A JP 36561097A JP 3087713 B2 JP3087713 B2 JP 3087713B2
Authority
JP
Japan
Prior art keywords
time
internally generated
correction
processing
change
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.)
Expired - Fee Related
Application number
JP09365610A
Other languages
Japanese (ja)
Other versions
JPH11184557A (en
Inventor
貴史 小見山
重幸 川口
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

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】そこで本発明の目的は、装置内に時刻生成
手段を有しその生成される時刻をもとに処理を行う時計
機能付き装置において、時刻修正によって内部生成時刻
が不連続になっても時刻対応処理へ悪影響を与えないよ
うにすることで、時刻修正を即時に行えるようにするこ
とにある。
An object of the present invention is to provide an apparatus with a clock function that has time generating means in the apparatus 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 internally generated time of the time generating means based on a time given from the outside, and the internally generated time is changed by the time changing step.
The time to determine whether it has been advanced or delayed
Change determination step and the time change determination step.
When it is determined that the time has advanced,
The time from the pre-correction time indicated by the time generation means
To be performed by the post-correction time corrected by the change step
Promptly perform the process to be performed, and
It is determined that the internally generated time has been delayed in the
At the same time, the duplication process control table
Setting a multiple flag;
When a time interrupt is issued at a fixed cycle from the
If the duplicate flag is not set in the
Start the process that is linked to the time of the time interrupt, and
The duplication flag is set in the duplication processing control table.
If the internal generation time reaches the pre-correction time,
The execution of the process linked to the time is suppressed, and the internal generation time is
Resets the duplication flag when the pre-correction time is reached.
And a step .

【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. External time to input the time from outside the device
Input means and the internal generation time indicated by the time generation means
The external time input by the external time input
The time change means to correct the time and the external time input means
The external input time input from the outside and the time generation means
Time difference to calculate the difference from the internally generated time
Calculating means, and a time calculated by the time difference calculating means
Analyze the difference and see how much the internally generated time has been advanced or
Time change determining means for determining whether the time has been delayed;
The change determination means has determined that the internally generated time has been advanced
Occasionally, the time generation means indicated just before
Correction made by the time change unit from the previous time
Processing to promptly execute processing to be performed by later time
When it is determined that the internally generated time has been delayed,
The time before correction and the duplication flag are set in the duplication processing control table.
Setting process, and one
When a time interrupt is issued at a fixed interval, the overlap processing control
If the duplicate flag is not set in the
Activate the process linked to the time of the interrupt, and
If the duplicate flag is set in the multiple processing control table
For example, the time until the internal generation time reaches the pre-correction time
The execution of the process linked to the
Time corresponding processing control means for resetting the duplication flag when the time immediately before the current time is reached .

【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】また本発明の時刻変更支援装置は上記目的
を達成すると共に、どのような時刻修正が過去に行われ
たかを調査し得るようにするために、更に、前記時刻変
更判定手段の判定結果の情報と前記内部生成時刻の情報
と前記外部入力時刻の情報とを含む時刻変更履歴情報を
生成する時刻変更履歴情報生成手段と、該時刻変更履歴
情報生成手段で生成された時刻変更履歴情報を記憶する
時刻変更履歴情報記憶手段とを備えている。
In addition, the time change support device of the present invention achieves the above object, and further includes a determination result of the time change determination means for enabling to investigate what time correction has been performed in the past. Time change history information generating means for generating time change history information including the information of the internal generation time and the information of the external input time, and the time change history information generated by the time change history information generation means. Time change history information storage means for storing.

【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 is changed. 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

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 1/14 G06F 1/00 370 G06F 9/46 315 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 1/14 G06F 1/00 370 G06F 9/46 315

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 装置内に時刻生成手段を有し、該時刻生
成手段の内部生成時刻をもとに処理を行う時計機能付き
装置における時刻変更支援方法において、 外部から与えられた時刻に基づいて前記時刻生成手段の
内部生成時刻を修正する時刻変更ステップと、該時刻変更ステップにより、内部生成時刻がどれだけ進
められたか又は遅らせられたかを判定する時刻変更判定
ステップと、 該時刻変更判定ステップで内部生成時刻が進められたと
判定された時に、時刻修正直前に前記時刻生成手段が示
していた修正前時刻から前記時刻変更ステップによって
修正された修正後時刻までに行うべき処理を速やかに実
施させるステップと、 前記時刻変更判定ステップで内部生成時刻が遅らせられ
たと判定された時に、重複処理制御テーブルに前記修正
前時刻と重複フラグをセットするステップと、 前記時刻生成手段から一定周期で出される時刻割り込み
時、前記重複処理制御テーブルに重複フラグがセットさ
れていなければ当該時刻割り込みにかかる時刻に連動す
る処理を起動し、前記重複処理制御テーブルに重複フラ
グがセットされていれば、内部生成時刻が前記修正前時
刻に達するまでは時刻に連動する処理の実施を抑止し、
内部生成時刻が前記修正前時刻に達すると前記重複フラ
グをリセットするステップ とを含むことを特徴とする時
刻変更支援方法。
1. An apparatus having a time generating means in an apparatus,
Of meansInternally generatedWith a clock function that performs processing based on the time
apparatusTime change support methodIn the above, the time generating means based on the time given from the outside
Internally generatedA time change step for correcting the time;By the time change step, how much the internally generated time advances
Time change judgment to determine whether the time has been delayed or delayed
Steps and That the internally generated time has been advanced in the time change determination step.
When it is determined, the time generation means indicates immediately before time correction.
From the pre-correction time
Immediately execute the processing to be performed by the corrected time
Performing the steps; The internally generated time is delayed in the time change determination step.
When it is determined that the
Setting a previous time and duplicate flag; Time interrupt issued from the time generating means at a constant cycle
When the duplication flag is set in the duplication processing control table,
If not, it is linked to the time of the time interrupt.
Process is started and duplicate flags are stored in the duplicate process control table.
If the flag is set, the internal generation time is
Until the time is reached, suppress the execution of the process linked to the time,
When the internally generated time reaches the pre-correction time, the overlapping flag
Steps to reset logging When characterized by including
Time change support method.
【請求項2】 装置内に時刻生成手段を有し、該時刻生
成手段の内部生成時刻をもとに処理を行う時計機能付き
装置において、 装置外部から時刻を入力する外部時刻入力手段と、 前記時刻生成手段の示す内部生成時刻を前記外部時刻入
力手段において入力した外部入力時刻に修正する時刻変
更手段と、 前記外部時刻入力手段において外部から入力した外部入
力時刻と前記時刻生成手段において内部生成した内部生
成時刻との差を計算する時刻差計算手段と、 該時刻差計算手段において計算された時刻差を分析し、
内部生成時刻がどれだけ進められたか又は遅らせられた
かを判定する時刻変更判定手段と、 該時刻変更判定手段で内部生成時刻が進められたと判定
された時に、時刻修正 直前に前記時刻生成手段が示して
いた修正前時刻から前記時刻変更手段によって修正され
た修正後時刻までに行うべき処理を速やかに実施させる
処理を行い、内部生成時刻が遅らせられたと判定された
時に、重複処理制御テーブルに前記修正前時刻と重複フ
ラグをセットする処理を行い、且つ、前記時刻生成手段
から一定周期で出される時刻割り込み時、前記重複処理
制御テーブルに重複フラグがセットされていなければ当
該時刻割り込みにかかる時刻に連動する処理を起動し、
前記重複処理制御テーブルに重複フラグがセットされて
いれば、内部生成時刻が前記修正前時刻に達するまでは
時刻に連動する処理の実施を抑止し、内部生成時刻が前
記修正前時刻に達すると前記重複フラグをリセットする
時刻対応処理制御手段とを備えることを特徴とする時刻
変更支援装置。
2. 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 determining that the internally generated time has been advanced by the time change determining means
When the time is generated, the time generating means indicates immediately before the time is corrected.
From the time before the correction
Process to be performed by the time after the correction
Performed processing and determined that the internally generated time was delayed
Sometimes, the time before correction and the duplicate
Lag setting processing, and the time generation means
When a time interrupt issued at a fixed cycle from the
If the duplicate flag is not set in the control table,
Activate the process linked to the time of the time interrupt,
The duplication flag is set in the duplication processing control table
If the internal generation time reaches the pre-correction time,
Suppress the execution of the process linked to the time, and
Serial time changing support device, characterized in that it comprises modifying the previous time to reach a <br/> time correction controller means for resetting the overlap flag.
【請求項3】 前記時刻変更判定手段の判定結果の情報
と前記内部生成時刻の情報と前記外部入力時刻の情報と
を含む時刻変更履歴情報を生成する時刻変更履歴情報生
成手段と、 該時刻変更履歴情報生成手段で生成された時刻変更履歴
情報を記憶する時刻変更履歴情報記憶手段とを備えるこ
とを特徴とする請求項2記載の時刻変更支援装置。
(3)Information on the determination result of the time change determination unit
And the information of the internal generation time and the information of the external input time
Generate time change history information including time change history information
Means, Time change history generated by the time change history information generating means
Time change history information storage means for storing information.
The time change support device according to claim 2, wherein:
【請求項4】 コンピュータシステム内に時計装置を有
し、該時計装置の示す内部生成時刻をもとに処理を行う
コンピュータシステムにおいて、 コンピュータに、 外部から与えられた時刻に基づいて前記時計装置の内部
生成時刻を修正する時刻変更ステップと、該時刻変更ステップにより、内部生成時刻がどれだけ進
められたか又は遅らせられたかを判定する時刻変更判定
ステップと、 該時刻変更判定ステップで内部生成時刻が進められたと
判定された時に、時刻修正直前に前記時計装置が示して
いた修正前時刻から前記時刻変更ステップによって修正
された修正後時刻までに行うべき処理を速やかに実施さ
せるステップと、 前記時刻変更判定ステップで内部生成時刻が遅らせられ
たと判定された時に、重複処理制御テーブルに前記修正
前時刻と重複フラグをセットするステップと、 前記時計装置から一定周期で出される時刻割り込み時、
前記重複処理制御テーブルに重複フラグがセットされて
いなければ当該時刻割り込みにかかる時刻に連動する処
理を起動し、前記重複処理制御テーブルに重複フラグが
セットされていれば、内部生成時刻が前記修正前時刻に
達するまでは時刻に連動する処理の実施を抑止し、内部
生成時刻が前記修正前時刻に達すると前記重複フラグを
リセットするステップ とを実行させるプログラムを記録
した機械読み取り可能な記録媒体。
4. A clock device in a computer system.
And the timepiece deviceInternally generatedPerform processing based on time
In a computer system, a computer is provided with a clock device based on an externally provided time.internal
GenerateA time change step for correcting the time;By the time change step, how much the internally generated time advances
Time change judgment to determine whether the time has been delayed or delayed
Steps and That the internally generated time has been advanced in the time change determination step.
When determined, the timepiece indicates immediately before the time is corrected.
Corrected by the time change step from the previous time before correction
Process to be performed by the post-correction time
Steps to make The internally generated time is delayed in the time change determination step.
When it is determined that the
Setting a previous time and duplicate flag; At the time of a time interrupt issued from the clock device at a constant cycle,
The duplication flag is set in the duplication processing control table
If not, a process linked to the time
And the duplication flag is displayed in the duplication processing control table.
If set, the internally generated time will be
Until the time is reached, the execution of processing linked to the time is
When the generation time reaches the pre-correction time, the duplicate flag is set.
Steps to reset And record the program that runs
Machine readable recording medium.
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 JPH11184557A (en) 1999-07-09
JP3087713B2 true 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)

Family Cites Families (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
JP3690555B2 (en) * 1997-10-08 2005-08-31 富士通株式会社 Time management change device and external interrupt protection device

Also Published As

Publication number Publication date
JPH11184557A (en) 1999-07-09

Similar Documents

Publication Publication Date Title
JP3523225B2 (en) Clock monitoring apparatus and monitoring method
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
JP2002365385A (en) Time information supply device
JP3734042B2 (en) Process management method
JP3106601B2 (en) measuring device
JP2924154B2 (en) Time measurement method
US20040015741A1 (en) Watchdog device operation
JP2000112746A (en) Resource procuring auxiliary device and storage medium
CN108345494B (en) Method and device for executing code at fixed time
JP2695785B2 (en) Processing state display method of processing unit
JP4507627B2 (en) measuring device
JPH02280237A (en) System for controlling transaction processing time
JPH0643962A (en) Time varying device for software clock
KR100762178B1 (en) Timer error correcting method of display apparatus
JP3473002B2 (en) Data processing device and data processing method
JPS60164852A (en) Monitor system of program runaway
JP2842293B2 (en) Automatic setting of actual data recording date
JPH08122466A (en) Timing system
JPH064175A (en) Timer managing system
JP2792310B2 (en) Notification device
JPS6054054A (en) Detection for program runaway
JP3538059B2 (en) Alarm generating device, alarm generating method, and computer-readable recording medium recording alarm generating program
JP2004020402A (en) Method or system for corresponding to seasonal period

Legal Events

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