JP3743821B2 - Time switching device and recording medium - Google Patents

Time switching device and recording medium Download PDF

Info

Publication number
JP3743821B2
JP3743821B2 JP2000087249A JP2000087249A JP3743821B2 JP 3743821 B2 JP3743821 B2 JP 3743821B2 JP 2000087249 A JP2000087249 A JP 2000087249A JP 2000087249 A JP2000087249 A JP 2000087249A JP 3743821 B2 JP3743821 B2 JP 3743821B2
Authority
JP
Japan
Prior art keywords
time
memory
switching
date
current
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
JP2000087249A
Other languages
Japanese (ja)
Other versions
JP2001272487A5 (en
JP2001272487A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2000087249A priority Critical patent/JP3743821B2/en
Publication of JP2001272487A publication Critical patent/JP2001272487A/en
Publication of JP2001272487A5 publication Critical patent/JP2001272487A5/ja
Application granted granted Critical
Publication of JP3743821B2 publication Critical patent/JP3743821B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、サマータイムを導入している地域でその切替日に現在時刻をずらす時刻切替装置、及びそのような時刻切替装置の動作をコンピュータに実行させる命令を含むプログラムを格納したコンピュータが読み取り可能な記録媒体に関する。
【0002】
【従来の技術】
電子式キャッシュレジスタやPOS(ポイントオブセールス)ターミナル等の売上データ処理装置が、各種店舗で使用されている。
【0003】
このような売上データ処理装置では、売上データをレシートやジャーナル、時間帯レポート等の形式で印字する機能を備えている。この売上データ、即ち、何時どの商品が販売されたのかを管理するために、売上データ処理装置は、現在日時を計時するための計時手段を備えている。
【0004】
ところで、周知のように、我が国を除いた多くの先進諸国では、省エネルギー推進を目的として、夏季に生活時間を一斉に1時間程度早めるサマータイムが導入されている。そこで、そのようなサマータイムを導入している地域では、その切替日時に、計時手段で計時されている現在日時をずらす必要がある。従って、この現在日時の変更を、営業終了後又は営業開始前に、オペレータがマニュアルで実行しなければならず、煩わしいものであった。
【0005】
そこで、このような時間変更操作を自動的に行う機能を備えた売上データ処理装置も開発されてきている。
【0006】
【発明が解決しようとする課題】
しかしながら、従来の売上データ処理装置においては、上記のように時間変更を行えるものではあるが、その時間変更を営業時間中に行うような仕様は無かった。
【0007】
一方、近年、消費者の多様化により、24時間営業や深夜営業を行う店舗も増えてきている。そのような店舗では、上記サマータイム切替えが、その営業時間中に発生してしまう。
【0008】
よって、このようなときのレシート印字時刻、ジャーナル印字時刻、時間帯レポートの演算先などの時間があいまいになってしまい、時間帯合計を正しい時間配分で印字できないという問題が発生する。
【0009】
本発明の課題は、時間切替え時でも時間帯合計を正しい時間配分で印字できるようにし、それにより、時間切替による時間ずれを認識させて混乱を防げるようにすることである。
【0016】
【課題を解決するための手段】
請求項1の発明の手段は次の通りである。
時刻切替装置は、計時手段と、第1の判別手段と、現在時刻変更手段と、第2の判別手段と、印字手段とを具備することを特徴とする。
計時手段は、現在日時を計時する。
第1の判別手段は、上記計時手段で計時している現在日時が、所定の日時に至ったか否かを判別する。
現在時刻変更手段は、上記第1の判別手段により上記所定の日時に至ったと判別された際に、上記計時手段における現在時刻を所定時間ずらす。
第2の判別手段は、上記計時手段での計時結果に基づいて、上記現在時刻変更手段により現在時刻を所定時間ずらしてから所定時間が経過したか否かを判別する。
印字手段は、上記第2の判別手段により上記所定時間が経過したと判別されるまで、売上データを印字した用紙に対し、現在時刻を所定時間ずらしたことのメッセージ印字を行う。
【0017】
また、請求項の発明の手段は次の通りである。
コンピュータが読み取り可能な記録媒体は、所定の日時に現在時刻を所定時間ずらす際に、以下の処理をコンピュータに実行させる命令を含むプログラムを格納する。
第1の処理は、現在日時が上記所定の日時に至ったか否かを判別する処理である。
第2の処理は、上記所定の日時に至ったと判別された際に、現在日時を計時する計時手段における現在時刻を所定時間ずらす処理である。
第3の処理は、上記計時手段での計時結果に基づいて、上記現在時刻を所定時間ずらしてから所定時間が経過したか否かを判別する処理である。
第4の処理は、上記所定時間が経過したと判別されるまで、売上データを印字した用紙に対し、現在時刻を所定時間ずらしたことのメッセージ印字を行う処理である。
【0018】
請求項及び請求項の発明の手段の作用は次の通りである。
現在時刻を所定時間ずらすべき所定の日時に至った際に、現在時刻を上記所定時間ずらすと共に、その後、所定時間の間、現在時刻を所定時間ずらしたことを、売上データを印字した用紙に対しメッセージ印字をする。
従って、時間切替えを行ってから所定時間の間、時間切替を行ったことを警告でき、それにより、時間切替による時間ずれを認識させ、混乱を防ぐことができる。
【0022】
【発明の実施の形態】
以下、本発明の実施の形態を図1の(A)乃至図9の(D)を参照して説明する。
【0023】
[第1の実施の形態]
図1の(A)は、本発明の第1の実施の形態に係る時間切替装置の適用された売上データ処理装置としての電子式キャッシュレジスタの構成を示す図である。同図において、CPU10は、RAM12内にロードされている各種プログラムに従ってこの電子式キャッシュレジスタの全体動作を制御する中央演算装置である。記憶装置14は、オペレーティングシステムや各種アプリケーションプグラム、データファイル、文字フォントデータ等が予め格納されている記憶媒体16やその駆動系を有している。この記憶媒体16は固定的に設けたもの、もしくは着脱自在に装着可能なものであり、フロッピーディスク、ハードディスク、光ディスク、RAMカード等の磁気的・光学的記憶媒体、半導体メモリによって構成されている。また、記憶媒体16内のプログラムやデータは、必要に応じてCPU10の制御により、RAM12にロードされる。更に、CPU10は、通信回線18等を介して他の機器側から送信されてきたプログラム、データを受信して記憶媒体16に格納したり、他の機器側に設けられている記憶媒体に格納されているプログラム、データを通信回線18等を介して使用することもできる。
【0024】
CPU10には、その入出力周辺デバイスである入力装置20、表示装置22、印刷装置24、時計26、ドロア28がバスラインを介して接続されており、入出力プログラムに従ってCPU10はそれらの動作を制御する。
【0025】
入力装置20は、特に図示はしないが、金額データや売上個数等を置数するテンキー、商品登録時に操作される部門キー、PLU(プライス・ルック・アップ)キー、一取引分の登録を締める現金/預りキー等、通常備えられている各種のキーやモードスイッチが設けられている。モードスイッチは、その切り替え位置に応じて「REG(登録)」、「X(点検)」、「Z(清算)」等のモードを切り替えるもので、REGモードにセットされている状態においてCPU10は、入力装置20から入力された売上データを取り込んで表示装置22に表示出力させたり、印刷装置24に送ってレシート/レポート/ジャーナル印字させ、更にRAM12内のジャーナルメモリの内容を更新する登録処理を行う。ここで、レシートとは取引内容を印字して客に渡すものであり、ジャーナルとは取引内容を印字して店舗の営業記録として活用するためのものである。また、レポートとは、例えば時間帯別の売上合計等の期間集計結果を印字したものである。
【0026】
印刷装置24は、例えば2連装プリンタで、CPU10は売上データを登録する毎にレシート用、ジャーナル用のロール紙に対してレシート/ジャーナル印字を行うと共に一取引分の登録終了時に締め処理を行ってドロア28を開放させたり、レシート用紙を切断して売上明細レシートを発行する。
【0027】
図1の(B)は、上記RAM12の主要構成を示した図で、現在時刻メモリ12A、サマータイム切換設定メモリ12B、時間帯設定メモリ12C、時間帯合計メモリ12D、フラグエリア12E、切替メッセージキャラクタメモリ12F、ワークメモリ12G、ジャーナルメモリ12H、等、各種のメモリ領域が割り当てられている。
【0028】
ここで、現在時刻メモリ12Aは、上記時計26による計時に応じて現在日時を記憶するものである。
【0029】
サマータイム切換設定メモリ12Bは、図2の(A)に示すように、夏時間から冬時間に切替える日にちを記憶した冬時間切替え日メモリ12B1と、冬時間から夏時間に切替える日にちを記憶した夏時間切替え日メモリ12B2と、それら切替え時にどれだけ時間をずらすかを示すDelay時間(分)を記憶したDelay時間メモリ12B3とからなる。
【0030】
時間帯設定メモリ12Cは、図2の(B)に示すように、営業時間数を記憶する時間数メモリ12C1、営業開始時間である計算スタート時間を記憶する計算スタート時間メモリ12C2、レポートを印字出力する間隔であるインターバル時間(分)を記憶するインターバル時間メモリ12C3、及び最後に精算処理を実行した日付である最終Z日付を記憶する最終Z日付メモリ12C4、等からなる。
【0031】
時間帯合計メモリ12Dは、図2の(C)に示すように、時間帯別の合計を記憶する時間帯別メモリの1本分の時間(分)を記憶するメモリ1本分時間メモリ12D1と、複数本の時間帯別メモリとからなる。ここで、時間帯別メモリは、当該時間帯における売上データの合計件数を記憶する件数メモリ12D2Aと当該時間帯における売上データの合計金額を記憶する金額メモリ12D2Bとからなる。そして、この時間帯別メモリの本数は、上記時間数メモリ12C1の値をA、上記インターバル時間メモリ12C3の値をB、Delay時間メモリ12B3の値をC、メモリ1本分時間メモリ12D1の値をDとすると、
A×B/(CとDの最大公約数時間(分))
となる。例えば、A=8時間、B=60分、C=60分、D=30分とすれば、時間帯別メモリの本数は、8×60/30=16本となる。
【0032】
フラグエリア12Eは、図2の(D)に示すように、冬から夏への切替え日時にセットされる切替印字FLGSNを記憶する切替印字FLGSNメモリ12E1と、夏から冬への切替え日時にセットされる切替印字FLGNSを記憶する切替印字FLGNSメモリ12E2と、切替メッセージの印字を行うときにセットされる切替印字FLGを記憶する切替印字FLGメモリ12E3とからなる。
【0033】
キャラクタメモリ12Fは、任意の切替メッセージを記憶するものであり、例えば、冬から夏への切替え時に印字される切替メッセージとして「−−DST START−−」を、夏から冬への切替え時に印字される切替メッセージとして「−−DST END−−」を記憶する。
【0034】
ワークメモリ12Gは、CPU10が後述する「時間帯レポート発行処理」を実行する際に各種データを保持するのに使用されるもので、図2の(E)に示すように、印字SWork時刻メモリ12G1、印字EWork時刻メモリ12G2、件数・金額ワークメモリ12G3、メッセージワークメモリ12G4、Work時刻メモリ12G5、カウンタx12G6x、カウンタy12G6y、等を含む。
【0035】
ジャーナルメモリ12Hは、各種の売上合計器を構成するもので、その内容は売上データが登録される毎に更新される。即ち、図2の(F)に示すように、売上データが登録される毎にその印字データを順次記憶していく。また、現在時刻の切替えがあってときには、切替があったことを示すデータも記憶する。
【0036】
次に、このような構成における「時間帯レポート発行処理」の動作を、図3乃至図6の(A)に示す一連のフローチャートを参照して説明する。なおここで、これらのフローチャートに記述されている各機能を実現するためのプログラムは、CPU10が読み取り可能なプログラムコードの形態で記憶媒体16に記憶されており、その内容がRAM12にロードされている。なお、後述する実施の形態における他のフローチャートにおいても同様である。
【0037】
即ち、オペレータが入力装置20の所定の操作により時間帯レポートの発行を指示すると、CPU10は、まず、切替印字FLGSNメモリ12E1、切替印字FLGNSメモリ12E2、及び切替印字FLGメモリ12E3に記憶された切替印字FLGSN、切替印字FLGNS、及び切替印字FLGをそれぞれリセットする(ステップS10)。
【0038】
その後、現在時刻メモリ12Aに記憶されている現在時刻が、最終Z日付メモリ12C4に記憶されている最終Z日付を過ぎているかどうかを確認し(ステップS11)、過ぎていなければ、後述するステップS17に進む。
【0039】
これに対して、最終Z日付を過ぎていると判別した場合には、現在時刻メモリ12Aに記憶されている現在日付が、冬時間切替日メモリ12B1に記憶されている冬時間切替日乃至はそれ以降の日付となっているか否かを判別する(ステップS12)。そして、そうであった場合には、切替印字FLGSNメモリ12E1に記憶された切替印字FLGSNをオン(=1)した後(ステップS13)、後述するステップS17に進む。
【0040】
一方、現在日付が冬時間切替日に達していないと判別した場合には、次に、現在時刻メモリ12Aに記憶されている現在日付が、夏時間切替日メモリ12B2に記憶されている夏時間切替日乃至はそれ以降の日付となっているか否かを判別する(ステップS14)。そして、まだ現在日付が夏時間切替日に達していないと判別した場合には、後述するステップS17に進む。これに対して、現在日付が夏時間切替日乃至はそれ以降の日付となったと判別したときには、更に、現在時刻メモリ12Aに記憶されている現在日付(時刻)が0:00乃至はそれ以降の時刻となったか否かを判別し、そうでない場合には、後述するステップS17に進む。また、現在日付が0:00乃至はそれ以降の時刻となったと判別した場合には、切替印字FLGNSメモリ12E2に記憶された切替印字FLGNSをオン(=1)した後(ステップS16)、次のステップS17に進む。
【0041】
而して、ステップS17では、カウンタx12G6x及びカウンタy12G6yの値を共に「1」にリセットする。そしてその後、計算スタート時間メモリ12C2に記憶されている計算スタート時刻を読み出して、それを印字SWork時刻メモリ12G1に記憶する(ステップS18)。
【0042】
次に、計算終了時刻を演算する(ステップS19)。即ち、上記印字SWork時刻メモリ12G1に記憶した計算スタート時刻に、インターバル時間メモリ12C3に記憶してあるインターバル時間を加え、その計算結果を印字EWork時刻メモリ12G2に記憶する。
【0043】
そして、上記印字EWork時刻メモリ12G2に記憶した時間が24:00乃至はそれ以降となっているか否かを判別し(ステップS20)、そうでなければ、後述するステップS29に進む。一方、そうであれば、更に、切替印字FLGSNメモリ12E1に記憶されている切替印字FLGSNがオンか否かを判別する(ステップS21)。
【0044】
ここで、切替印字FLGSNがオンであると判別されたときには、現在時刻メモリ12Aに記憶されている現在時刻が、0:00にDelay時間メモリ12B3に記憶されたDelay時間を加えた時刻乃至はそれ以降となっているか否かを判別する(ステップS22)。そして、そうでない場合には、後述するステップS29に進む。一方、そうであれば、冬時間への切替処理を行う(ステップS23)。即ち、印字EWork時刻メモリ12G2に記憶した時間から24:00を減じ、更に、上記Delay時間メモリ12B3に記憶されたDelay時間を減じた結果を、上記印字EWork時刻メモリ12G2に上書き記憶する。そしてその後、切替メッセージキャラクタメモリ12Fに記憶してある印字データ(この場合は「−−DST END−−」)を印字準備のためメッセージワークメモリ12G4に読み出した後(ステップS24)、後述するステップS28に進む。
【0045】
また、上記ステップS21において、切替印字FLGSNがオンでないと判別されたときには、更に、切替印字FLGNSメモリ12E2に記憶されている切替印字FLGNSがオンか否かを判別する(ステップS25)。
【0046】
ここで、切替印字FLGNSがオンではないと判別されたときには、後述するステップS29に進む。これに対して、切替印字FLGNSがオンであると判別されたときには、夏時間への切替処理を行う(ステップS26)。即ち、印字EWork時刻メモリ12G2に記憶した時間から24:00を減じ、それに上記Delay時間メモリ12B3に記憶されたDelay時間を加えた結果を、上記印字EWork時刻メモリ12G2に上書き記憶する。そしてその後、切替メッセージキャラクタメモリ12Fに記憶してある印字データ(この場合は「−−DST START−−」)を印字準備のためメッセージワークメモリ12G4に読み出した後(ステップS27)、次のステップS28に進む。
【0047】
而して、ステップS28では、切替印字FLGメモリ12E3に記憶された切替印字FLGをオン(=1)にする。
【0048】
そしてその後、商品の件数及び金額を読み出す(ステップS29)。即ち、時間帯合計メモリ12Dの複数本の時間帯別メモリのうち、カウンタx12G6xの値で示されるx本目の時間帯別メモリの件数メモリ12D2Aと金額メモリ12D2Bからデータを読み出して、件数・金額ワークメモリ12G3に記憶する。そして、出力する最初の時刻を読み出す(ステップS30)。即ち、上記印字SWork時刻メモリ12G1に記憶した計算スタート時刻をWork時刻メモリ12G5に記憶する。
【0049】
次に、上記印字EWork時刻メモリ12G2に記憶した時刻が24:00乃至はそれ以降であるか否かを判別し(ステップS31)、そうでなければ、後述するステップS33に進み、また、そうであれば、上記印字EWork時刻メモリ12G2に記憶した時刻から24:00を減じた結果を上記印字EWork時刻メモリ12G2に上書き記憶した後(ステップS32)、次のステップS33に進む。
【0050】
而して、ステップS33では、カウンタx12G6xの値を「+1」する。その後、上記Work時刻メモリ12G5に記憶した時刻にメモリ1本分時間メモリ12D1に記憶してある時間帯別メモリの1本分の時間を加え、その結果を、Work時刻メモリ12G5に上書き記憶する(ステップS34)。そして、このWork時刻メモリ12G5に記憶した時間が、上記印字SWork時刻メモリ12G1に記憶した時刻にインターバル時間メモリ12C3に記憶してあるインターバル時間を加えた時刻に達していないか否かを判別し(ステップS35)、そうであれば、上記件数・金額ワークメモリ12G3に記憶している件数及び金額に、時間帯合計メモリ12Dの複数本の時間帯別メモリのうちカウンタx12G6xの値で示されるx本目の時間帯別メモリの件数メモリ12D2A及び金額メモリ12D2Bに記憶されている件数及び金額を加え、それらの結果を上記件数・金額ワークメモリ12G3に上書き記憶する(ステップS36)。そしてその後、上記ステップS33に戻る。
【0051】
こうして、上記ステップS35において、Work時刻メモリ12G5の時間が、上記印字SWork時刻メモリ12G1の時刻にインターバル時間を加えた時刻に達したならば、印字処理を行う(ステップS37)。即ち、上記印字SWork時刻メモリ12G1に記憶した時刻、上記印字EWork時刻メモリ12G21に記憶した時刻、及び上記件数・金額ワークメモリ12G3に記憶した件数及び金額を、印刷装置24によりレシート用紙に印字する。
【0052】
そしてその後、切替印字FLGメモリ12E3に記憶された切替印字FLGがオン(=1)であるか否かを判別し(ステップS38)、オンでなければ後述するステップS40に進む。これに対して、切替印字FLGがオンであれば、メッセージワークメモリ12G4に記憶した印字データを印刷装置24によりレシート用紙に印字する(ステップS39)。そして、計算スタート時刻を更新する(ステップS40)。即ち、上記印字SWork時刻メモリ12G1に記憶した計算スタート時刻に、インターバル時間メモリ12C3に記憶してあるインターバル時間を加え、その計算結果を上記印字SWork時刻メモリ12G1に上書き記憶する。
【0053】
その後、切替印字FLGメモリ12E3に記憶された切替印字FLGがオン(=1)であるか否かを判別し(ステップS41)、そうでなければ、後述するステップS46に進む。
【0054】
また、切替印字FLGがオンであれば、その切替印字FLGをリセット(=0)し(ステップS42)、その後、切替印字FLGSNメモリ12E1に記憶されている切替印字FLGSNがオンか否かを判別する(ステップS43)。
【0055】
ここで、切替印字FLGSNがオンであると判別されたときには、冬時間にする(ステップS44)。即ち、上記印字SWork時刻メモリ12G1に記憶した計算スタート時刻から、24:00を減じ、更に、上記Delay時間メモリ12B3に記憶されたDelay時間を減じた結果を、上記印字SWork時刻メモリ12G1に上書き記憶する。そして、上記切替印字FLGSNメモリ12E1に記憶されている切替印字FLGSNをリセットして(ステップS45)、後述するステップS48に進む。
【0056】
一方、上記ステップS43で、切替印字FLGSNがオンでないと判別されたときには、夏時間にする(ステップS46)。即ち、上記印字SWork時刻メモリ12G1に記憶した計算スタート時刻から、24:00を減じ、その結果に上記Delay時間メモリ12B3に記憶されたDelay時間を加え、その計算結果を、上記印字SWork時刻メモリ12G1に上書き記憶する。そして、上記切替印字FLGNSメモリ12E2に記憶されている切替印字FLGNSをリセットして(ステップS47)、次のステップS48に進む。
【0057】
而して、ステップS48では、カウンタy12G6yの値を「+1」する。そしてその後、その更新されたカウンタy12G6yの値が、レポート印字する明細の数を超えたか否かを判別し(ステップS49)、まだ超えていなければ、上記ステップS19に戻る。
【0058】
こうして上記処理を繰り返し、カウンタy12G6yの値がレポート印字する明細の数を超えたならば、レシートの発行、つまりレシート用紙の切断を行って(ステップS50)、この「時間帯レポート発行処理」の動作を終了する。
【0059】
なお、現在時刻メモリ12Aに記憶される現在日時の変更は、図6の(B)に示すようにして行われる。この動作は、定期的に行われるものである。
【0060】
即ち、まず、現在時刻メモリ12Aに記憶されている現在日時が、冬時間切替日メモリ12B1に記憶されている冬時間切替日になったか否かを判別する(ステップS60)。そして、そうでなければ、後述するステップS62に進み、そうであれば、現在時刻メモリ12Aに記憶されている現在日時に上記Delay時間メモリ12B3に記憶されたDelay時間を加え、その計算結果を現在時刻メモリ12Aに上書き記憶してから(ステップS61)、次のステップS62に進む。
【0061】
而して、ステップS62では、現在時刻メモリ12Aに記憶されている現在日時が、夏時間切替日メモリ12B2に記憶されている夏時間切替日になったか否かを判別する。そして、そうでなければ、この現在時刻切替処理を終了し、また、そうであれば、現在時刻メモリ12Aに記憶されている現在日時から上記Delay時間メモリ12B3に記憶されたDelay時間を減じ、その計算結果を現在時刻メモリ12Aに上書き記憶して(ステップS63)、この現在時刻切替処理を終了する。
【0062】
以上の処理により、図7の(A)乃至図8の(B)に示すようなレポートが得られる。
【0063】
即ち、図7の(A)及び(B)は、インターバル時間が60分、Delay時間が60分とした場合の例を示している。ここで、図7の(A)は、冬時間から夏時間への変更時の例であり、この場合は、冬時間の最終日24:00を過ぎた段階で、サマータイム開始を示す夏切替印字30を行っている。これに対して、図7の(B)は、夏時間から冬時間への変更時の例であり、この場合は、切替日となり、1:00となった時点にて時間が変わるので、0:00−1:00の時間帯売上データを印字した後に、サマータイム終了を示す冬切替印字32を行っている。
【0064】
また、図8の(A)及び(B)は、インターバル時間が60分、Delay時間が90分とした場合の例を示している。ここで、図8の(A)は、冬時間から夏時間への変更時の例であり、この場合は、冬時間の最終日24:00を過ぎた段階で、夏切替印字30を行っている。これに対して、図8の(B)は、夏時間から冬時間への変更時の例であり、この場合は、切替日となり、1:30となった時点にて時間が変わるが、その切替時にはまだインターバル時間を経過していないので、01:00−0:30の時間帯売上データを印字し、その後に、冬切替印字32を行うことになる。
【0065】
[第2の実施の形態]
次に、本発明の第2の実施の形態を説明する。
【0066】
本第2の実施の形態に係る時間切替装置の適用された売上データ処理装置としての電子式キャッシュレジスタの構成は、上記第1の実施の形態におけるそれと同様であり、よってその説明は省略する。
【0067】
図9の(A)は「レシート印字処理」のフローチャートである。
【0068】
即ち、オペレータが入力装置20の所定の操作により売上データを登録すると、CPU10は、まず、印刷装置24によりレシート用紙に、「レシート」というキャラクタと、現在時刻メモリ12Aに記憶されている現在日時と、ジャーナルメモリ12Hに登録された売上データとを印字させる(ステップS60)。そしてその後、現在時刻メモリ12Aに記憶されている現在日時が、冬時間切替日メモリ12B1に記憶されている冬時間切替日時又は夏時間切替日メモリ12B2に記憶されている夏時間切替日時の所定日数以内の日にちになっているか否かを判別する(ステップS61)。もしそうでなければ、更に、現在時刻メモリ12Aに記憶されている現在日時が、冬時間切替日メモリ12B1に記憶されている冬時間切替日時又は夏時間切替日メモリ12B2に記憶されている夏時間切替日時を経過しているか否かを判別する(ステップS62)。そして、そうでなければ、この「レシート印字処理」を終了する。
【0069】
一方、上記ステップS61において、現在日時が冬時間切替日時又は夏時間切替日時の所定日数以内の日にちになっていると判別した場合には、その切替日時より何日前かを算出し(ステップS63)、図9の(B)に示すように、その算出した日数を印刷装置24により印字して(ステップS64)、この「レシート印字処理」を終了する。
【0070】
また、上記ステップS62において現在日時が冬時間切替日時又は夏時間切替日時を経過していると判別したときには、現在日時が上記何れかの切替日の当日であるか否かを判別し(ステップS65)、そうであれば、図9の(B)に示すように、夏切替日であれば夏切替メッセージを印刷装置24により印字し、また冬切替日であれば冬切替メッセージを印刷装置24により印字して(ステップS66)、この「レシート印字処理」を終了する。
【0071】
一方、上記ステップS65において現在日時が上記何れかの切替日の当日でないと判別したときには、更に、現在日時が上記何れかの切替日のから所定日数以内であるかどうかを判別する(ステップS67)。そして、そうでなければ、この「レシート印字処理」を終了する。また、そうであった場合には、図9の(D)に示すように、切替開始日を印刷装置24により印字して(ステップS68)、この「レシート印字処理」を終了する。
【0072】
以上、本発明を実施の形態により説明したが、本発明は上記実施の形態に限定されるものではなく、種々の変形変更が可能なことは勿論である。
【0073】
例えば、上記実施の形態はレポート又はレシートに対する印字処理を説明したが、印刷対象はジャーナルであっても良い。
【0074】
また、上記第1の実施の形態では、「時間帯レポート発行処理」において切替日であるかを判別して切替メッセージキャラクタメモリ12Fに記憶してある印字データをメッセージワークメモリ12G4に記憶するようにしているが、現在時刻切替処理において現在時刻を所定時間ずらした際に、その印字データをメッセージワークメモリ12G4に記憶し、「時間帯レポート発行処理」においてはそれが記憶されていればそれを印字するというようにしても良い。
【0075】
【発明の効果】
本発明によれば、現在時刻を所定時間ずらすべき所定の日時に至った際に、現在時刻を上記所定時間ずらすと共に、そのことを、売上データを印字した用紙に対しメッセージ印字をするようにしているので、時間切替え時でも時間帯合計を正しい時間配分で印字でき、それにより、時間切替による時間ずれを認識させ、混乱を防ぐことができるようになる。
【図面の簡単な説明】
【図1】(A)は本発明の第1の実施の形態に係る時間切替装置の適用された売上データ処理装置としての電子式キャッシュレジスタの構成を示す図であり、(B)はRAMの主要構成を示した図である。
【図2】(A)はサマータイム切換設定メモリの構成を示す図、(B)は時間帯設定メモリの構成を示す図、(C)は時間帯合計メモリの構成を示す図、(D)はフラグエリアの構成を示す図、(E)はワークメモリの構成を示す図であり、(F)はジャーナルメモリの構成を示す図である。
【図3】時間帯レポート発行処理を説明するための一連の動作フローチャートの第1の部分を示す図である。
【図4】時間帯レポート発行処理を説明するための一連の動作フローチャートの第2の部分を示す図である。
【図5】時間帯レポート発行処理を説明するための一連の動作フローチャートの第3の部分を示す図である。
【図6】(A)は時間帯レポート発行処理を説明するための一連の動作フローチャートの第4の部分を示す図であり、(B)は現在時刻切替処理の動作フローチャートを示す図である。
【図7】(A)はインターバル時間が60分、Delay時間が60分とした場合の冬時間から夏時間への変更時のレポート印字例を示す図であり、(B)はインターバル時間が60分、Delay時間が60分とした場合の夏時間から冬時間への変更時のレポート印字例を示す図である。
【図8】(A)はインターバル時間が60分、Delay時間が90分とした場合の冬時間から夏時間への変更時のレポート印字例を示す図であり、(B)はインターバル時間が60分、Delay時間が90分とした場合の夏時間から冬時間への変更時のレポート印字例を示す図である。
【図9】(A)は第2の実施の形態に係る時間切替装置の適用された売上データ処理装置としての電子式キャッシュレジスタにおけるレシート印字処理を説明するための動作フローチャートを示す図であり、(B)乃至(D)はそれぞれレシートの印字例を示す図である。
【符号の説明】
10 CPU
12 RAM
12A 現在時刻メモリ
12B サマータイム切換設定メモリ
12B1 冬時間切替日メモリ
12B2 夏時間切替日メモリ
12B3 Delay時間メモリ
12C 時間帯設定メモリ
12C1 時間数メモリ
12C2 計算スタート時間メモリ
12C3 インターバル時間メモリ
12C4 最終Z日付メモリ
12D 時間帯合計メモリ
12D1 メモリ1本分時間メモリ
12D2A 件数メモリ
12D2B 金額メモリ
12E フラグエリア
12E1 切替印字FLGSNメモリ
12E2 切替印字FLGNSメモリ
12E3 切替印字FLGメモリ
12F 切替メッセージキャラクタメモリ
12G ワークメモリ
12G1 印字SWork時刻メモリ
12G2 印字EWork時刻メモリ
12G3 件数・金額ワークメモリ
12G4 メッセージワークメモリ
12G5 Work時刻メモリ
12G6x カウンタx
12G6y カウンタy
12H ジャーナルメモリ
14 記憶装置
16 記憶媒体
18 通信回線
20 入力装置
22 表示装置
24 印刷装置
26 時計
28 ドロア
30 夏切替印字
32 冬切替印字
[0001]
BACKGROUND OF THE INVENTION
The present invention can be read by a computer storing a time switching device that shifts the current time on the switching date in an area where daylight saving time is introduced, and a program that includes a command for causing the computer to execute the operation of such a time switching device. The present invention relates to a recording medium.
[0002]
[Prior art]
Sales data processing devices such as electronic cash registers and POS (Point of Sales) terminals are used in various stores.
[0003]
Such a sales data processing apparatus has a function of printing sales data in the form of a receipt, a journal, a time zone report, or the like. In order to manage the sales data, that is, when and what products are sold, the sales data processing apparatus includes a time measuring means for measuring the current date and time.
[0004]
By the way, as is well known, in many advanced countries except Japan, daylight saving time has been introduced in order to promote energy conservation in summer, which increases living time by about one hour at a time. Therefore, in an area where such daylight saving time is introduced, it is necessary to shift the current date and time counted by the timing means to the switching date and time. Therefore, the change of the current date and time has to be performed manually by the operator after the end of business or before the start of business, which is troublesome.
[0005]
Therefore, a sales data processing device having a function of automatically performing such a time change operation has been developed.
[0006]
[Problems to be solved by the invention]
However, although the conventional sales data processing apparatus can change the time as described above, there is no specification for changing the time during business hours.
[0007]
On the other hand, in recent years, with the diversification of consumers, an increasing number of stores are open 24 hours or late night. In such stores, the daylight saving time switching occurs during the business hours.
[0008]
Therefore, the time of receipt printing time, journal printing time, time zone report calculation destination, etc. at this time becomes ambiguous, and there arises a problem that the time zone total cannot be printed with correct time distribution.
[0009]
An object of the present invention is to make it possible to print the total time zone with a correct time distribution even at the time of switching, thereby recognizing a time shift due to the switching of time and preventing confusion.
[0016]
[Means for Solving the Problems]
Claim 1 The means of the invention is as follows.
The time switching device includes a time measuring means, a first discriminating means, a current time changing means, a second discriminating means, and a printing means.
The time measuring means measures the current date and time.
The first determining means determines whether or not the current date and time counted by the time measuring means has reached a predetermined date and time.
The current time changing means shifts the current time in the time measuring means by a predetermined time when it is determined by the first determining means that the predetermined date has been reached.
The second discriminating unit discriminates whether or not a predetermined time has elapsed since the current time was shifted by a predetermined time by the current time changing unit based on the time measurement result by the clocking unit.
The printing means prints a message indicating that the current time is shifted by a predetermined time on the paper on which the sales data is printed until it is determined by the second determination means that the predetermined time has elapsed.
[0017]
Claims 2 The means of the invention is as follows.
The computer-readable recording medium stores a program including an instruction that causes the computer to execute the following processing when the current time is shifted by a predetermined time at a predetermined date and time.
The first process is a process for determining whether or not the current date and time has reached the predetermined date and time.
The second process is a process of shifting the current time by a predetermined time in the time measuring means for measuring the current date and time when it is determined that the predetermined date and time has been reached.
The third process is a process for determining whether or not a predetermined time has elapsed since the current time was shifted by a predetermined time based on the time measurement result of the time measuring means.
The fourth process is a process of printing a message indicating that the current time is shifted by a predetermined time on the paper on which the sales data is printed until it is determined that the predetermined time has elapsed.
[0018]
Claim 1 And claims 2 The operation of the means of the present invention is as follows.
When the current time arrives at a predetermined date and time that should be shifted by a predetermined time, the current time is shifted by the predetermined time, and then the current time is shifted by a predetermined time for a predetermined time with respect to the sheet on which the sales data is printed. Print a message.
Accordingly, it is possible to warn that the time switching has been performed for a predetermined time after the time switching, thereby recognizing a time shift due to the time switching and preventing confusion.
[0022]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to FIGS. 1A to 9D.
[0023]
[First Embodiment]
FIG. 1A is a diagram showing a configuration of an electronic cash register as a sales data processing device to which the time switching device according to the first embodiment of the present invention is applied. In the figure, a CPU 10 is a central processing unit that controls the overall operation of the electronic cash register according to various programs loaded in a RAM 12. The storage device 14 includes a storage medium 16 in which an operating system, various application programs, data files, character font data, and the like are stored in advance, and a drive system thereof. This storage medium 16 is fixedly provided or detachably mountable, and is constituted by a magnetic / optical storage medium such as a floppy disk, a hard disk, an optical disk, a RAM card, or a semiconductor memory. Further, programs and data in the storage medium 16 are loaded into the RAM 12 as required by the control of the CPU 10. Further, the CPU 10 receives a program and data transmitted from another device via the communication line 18 or the like and stores them in the storage medium 16 or is stored in a storage medium provided on the other device. The program and data can be used via the communication line 18 or the like.
[0024]
An input device 20, a display device 22, a printing device 24, a clock 26, and a drawer 28, which are input / output peripheral devices, are connected to the CPU 10 via a bus line, and the CPU 10 controls their operations according to an input / output program. To do.
[0025]
Although not specifically shown, the input device 20 is a numeric keypad for entering monetary data, sales quantity, etc., a department key operated at the time of product registration, a PLU (price look-up) key, and cash for closing registration for one transaction. Various keys and mode switches that are normally provided, such as a / deposit key, are provided. The mode switch switches modes such as “REG (registration)”, “X (inspection)”, and “Z (clearing)” according to the switching position. In the state where the REG mode is set, the CPU 10 Sales data input from the input device 20 is captured and displayed on the display device 22, or sent to the printing device 24 for receipt / report / journal printing, and registration processing for updating the contents of the journal memory in the RAM 12 is performed. . Here, the receipt is for printing the transaction content and giving it to the customer, and the journal is for printing the transaction content and utilizing it as a business record of the store. In addition, the report is a printout of period totaling results such as total sales for each time zone.
[0026]
The printing device 24 is, for example, a dual printer, and the CPU 10 performs receipt / journal printing on receipt and journal roll paper each time sales data is registered, and performs a closing process at the end of registration for one transaction. The drawer 28 is opened or the receipt paper is cut to issue a sales detail receipt.
[0027]
FIG. 1B is a diagram showing the main configuration of the RAM 12. The current time memory 12A, summer time switching setting memory 12B, time zone setting memory 12C, time zone total memory 12D, flag area 12E, switching message character memory. Various memory areas such as 12F, work memory 12G and journal memory 12H are allocated.
[0028]
Here, the current time memory 12 </ b> A stores the current date and time according to the time measured by the clock 26.
[0029]
As shown in FIG. 2A, the summer time switching setting memory 12B includes a winter time switching date memory 12B1 that stores the date for switching from summer time to winter time, and a summer time switching date memory that stores the date for switching from winter time to summer time. 12B2 and a delay time memory 12B3 that stores a delay time (minutes) indicating how much time is shifted at the time of switching.
[0030]
As shown in FIG. 2 (B), the time zone setting memory 12C is a time number memory 12C1 that stores the number of business hours, a calculation start time memory 12C2 that stores a calculation start time that is a business start time, and a report that is printed out. An interval time memory 12C3 that stores an interval time (minute) that is an interval to be performed, and a final Z date memory 12C4 that stores a final Z date that is a date when the settlement process is executed last.
[0031]
As shown in FIG. 2C, the time zone total memory 12D includes one time memory 12D1 for storing one hour (minute) of one time zone memory for storing time zone totals. And a plurality of memories according to time zones. Here, the memory by time zone includes a number memory 12D2A for storing the total number of sales data in the time zone and a money amount memory 12D2B for storing the total amount of sales data in the time zone. Then, the number of the memory by time zone is as follows: the value of the time memory 12C1 is A, the value of the interval time memory 12C3 is B, the value of the delay time memory 12B3 is C, and the value of the time memory 12D1 is one memory. If D,
A x B / (the greatest common divisor of C and D (minutes))
It becomes. For example, if A = 8 hours, B = 60 minutes, C = 60 minutes, and D = 30 minutes, the number of memory by time zone is 8 × 60/30 = 16.
[0032]
As shown in FIG. 2D, the flag area 12E is set at the switching print FLGSN memory 12E1 for storing the switching print FLGSN set at the switching date and time from winter to summer, and at the switching date and time from summer to winter. The switching print FLGNS memory 12E2 for storing the switching print FLGNS and the switching print FLG memory 12E3 for storing the switching print FLG set when printing the switching message.
[0033]
The character memory 12F stores an arbitrary switching message. For example, "--DST START--" is printed as a switching message printed when switching from winter to summer, and printed when switching from summer to winter. "--DST END--" is stored as a switching message.
[0034]
The work memory 12G is used to hold various data when the CPU 10 executes a “time zone report issuing process” described later. As shown in FIG. 2E, the print memory time memory 12G1 , Print EWork time memory 12G2, number / money work memory 12G3, message work memory 12G4, work time memory 12G5, counter x12G6x, counter y12G6y, and the like.
[0035]
The journal memory 12H constitutes various sales totals, and the contents are updated every time sales data is registered. That is, as shown in FIG. 2F, the print data is sequentially stored every time sales data is registered. Further, when the current time is switched, data indicating that the switching has been performed is also stored.
[0036]
Next, the operation of the “time zone report issuance process” in such a configuration will be described with reference to a series of flowcharts shown in FIGS. Here, a program for realizing each function described in these flowcharts is stored in the storage medium 16 in the form of a program code readable by the CPU 10, and the contents thereof are loaded into the RAM 12. . The same applies to other flowcharts in the embodiments described later.
[0037]
That is, when the operator instructs the issuance of the time zone report by a predetermined operation of the input device 20, the CPU 10 first switches the switching printing stored in the switching printing FLGSN memory 12E1, the switching printing FLGNS memory 12E2, and the switching printing FLG memory 12E3. The FLGSN, the switching printing FLGNS, and the switching printing FLG are respectively reset (step S10).
[0038]
Thereafter, it is confirmed whether or not the current time stored in the current time memory 12A has passed the final Z date stored in the final Z date memory 12C4 (step S11). Proceed to
[0039]
On the other hand, if it is determined that the last Z date has passed, the current date stored in the current time memory 12A is the winter time switching date stored in the winter time switching date memory 12B1 or It is determined whether or not the date is later (step S12). If so, the switch print FLGSN stored in the switch print FLGSN memory 12E1 is turned on (= 1) (step S13), and the process proceeds to step S17 described later.
[0040]
On the other hand, if it is determined that the current date has not reached the winter time switching date, then the current date stored in the current time memory 12A is the daylight saving time switching date stored in the daylight saving time switching date memory 12B2. Determines whether or not the date is after that (step S14). If it is determined that the current date has not yet reached the daylight saving time switching date, the process proceeds to step S17 described later. On the other hand, when it is determined that the current date is the daylight saving time switching date or later date, the current date (time) stored in the current time memory 12A is further set to 0:00 or later time. If not, the process proceeds to step S17 to be described later. If it is determined that the current date is 0:00 or later, the switching print FLGNS stored in the switching print FLGNS memory 12E2 is turned on (= 1) (step S16), and the next time Proceed to step S17.
[0041]
Thus, in step S17, the values of the counter x12G6x and the counter y12G6y are both reset to “1”. After that, the calculation start time stored in the calculation start time memory 12C2 is read out and stored in the print work time memory 12G1 (step S18).
[0042]
Next, the calculation end time is calculated (step S19). That is, the interval time stored in the interval time memory 12C3 is added to the calculation start time stored in the printing SWork time memory 12G1, and the calculation result is stored in the printing EWork time memory 12G2.
[0043]
Then, it is determined whether or not the time stored in the print EWork time memory 12G2 is 24:00 or later (step S20). Otherwise, the process proceeds to step S29 described later. On the other hand, if so, it is further determined whether or not the switching printing FLGSN stored in the switching printing FLGSN memory 12E1 is on (step S21).
[0044]
Here, when it is determined that the switching print FLGSN is on, the current time stored in the current time memory 12A is the time obtained by adding the delay time stored in the delay time memory 12B3 to 0:00 or It is determined whether or not it is after (step S22). If not, the process proceeds to step S29 described later. On the other hand, if so, a process for switching to winter time is performed (step S23). That is, the result obtained by subtracting 24:00 from the time stored in the print EWork time memory 12G2 and further subtracting the Delay time stored in the Delay time memory 12B3 is overwritten and stored in the print EWork time memory 12G2. Then, after the print data (in this case, “--DST END--”) stored in the switching message character memory 12F is read out to the message work memory 12G4 in preparation for printing (step S24), step S28 described later is performed. Proceed to
[0045]
If it is determined in step S21 that the switching print FLGSN is not on, it is further determined whether or not the switching print FLGNS stored in the switching print FLGNS memory 12E2 is on (step S25).
[0046]
If it is determined that the switching print FLGNS is not ON, the process proceeds to step S29 described later. On the other hand, when it is determined that the switching print FLGNS is on, a process for switching to daylight saving time is performed (step S26). That is, a result obtained by subtracting 24:00 from the time stored in the print EWork time memory 12G2 and adding the Delay time stored in the Delay time memory 12B3 is overwritten and stored in the print EWork time memory 12G2. Then, after the print data (in this case, “--DST START--”) stored in the switching message character memory 12F is read out to the message work memory 12G4 for preparation for printing (step S27), the next step S28 is performed. Proceed to
[0047]
Thus, in step S28, the switching printing FLG stored in the switching printing FLG memory 12E3 is turned on (= 1).
[0048]
Thereafter, the number of items and the amount of the product are read (step S29). That is, out of a plurality of time zone total memories in the time zone total memory 12D, the data is read from the number memory 12D2A and the amount memory 12D2B of the xth time zone memory indicated by the value of the counter x12G6x, and the number and amount work Store in the memory 12G3. And the first time to output is read (step S30). That is, the calculation start time stored in the print work time memory 12G1 is stored in the work time memory 12G5.
[0049]
Next, it is determined whether or not the time stored in the print EWork time memory 12G2 is 24:00 or later (step S31). If not, the process proceeds to step S33 described later, and so on. If there is, the result obtained by subtracting 24:00 from the time stored in the print EWork time memory 12G2 is overwritten and stored in the print EWork time memory 12G2 (step S32), and the process proceeds to the next step S33.
[0050]
Thus, in step S33, the value of the counter x12G6x is incremented by "+1". Thereafter, the time stored in the time memory 12G5 is added to the time stored in the time memory 12D1 for one memory, and the result is overwritten and stored in the work time memory 12G5 ( Step S34). Then, it is determined whether or not the time stored in the work time memory 12G5 has reached the time obtained by adding the interval time stored in the interval time memory 12C3 to the time stored in the print SW work time memory 12G1 ( Step S35), if so, the number and amount stored in the number of cases / amount work memory 12G3 are the xth number indicated by the value of the counter x12G6x among the plurality of time zone memories in the time zone total memory 12D. The number of cases and the amount of money stored in the number-of-times memory 12D2A and the amount of money memory 12D2B of the time zone are added, and the results are overwritten and stored in the number of cases / amount work memory 12G3 (step S36). Then, the process returns to step S33.
[0051]
Thus, when the time in the work time memory 12G5 reaches the time obtained by adding the interval time to the time in the print SW memory time memory 12G1 in step S35, the printing process is performed (step S37). That is, the printing device 24 prints the time stored in the printing work time memory 12G1, the time stored in the printing Ework time memory 12G21, and the number and amount stored in the number / money work memory 12G3 on the receipt paper.
[0052]
Thereafter, it is determined whether or not the switching printing FLG stored in the switching printing FLG memory 12E3 is on (= 1) (step S38). If not, the process proceeds to step S40 described later. On the other hand, if the switching print FLG is on, the print data stored in the message work memory 12G4 is printed on the receipt paper by the printing device 24 (step S39). Then, the calculation start time is updated (step S40). That is, the interval time stored in the interval time memory 12C3 is added to the calculation start time stored in the print SW time time memory 12G1, and the calculation result is overwritten and stored in the print SW work time memory 12G1.
[0053]
Thereafter, it is determined whether or not the switching printing FLG stored in the switching printing FLG memory 12E3 is ON (= 1) (step S41). Otherwise, the process proceeds to step S46 described later.
[0054]
If the switching printing FLG is on, the switching printing FLG is reset (= 0) (step S42), and then it is determined whether or not the switching printing FLGSN stored in the switching printing FLGSN memory 12E1 is on. (Step S43).
[0055]
Here, when it is determined that the switching print FLGSN is on, the winter time is set (step S44). That is, a result obtained by subtracting 24:00 from the calculation start time stored in the print SW memory time memory 12G1 and further subtracting the delay time stored in the delay time memory 12B3 is overwritten and stored in the print SW work time memory 12G1. To do. Then, the switching printing FLGSN stored in the switching printing FLGSN memory 12E1 is reset (step S45), and the process proceeds to step S48 described later.
[0056]
On the other hand, if it is determined in step S43 that the switching print FLGSN is not on, the daylight saving time is set (step S46). That is, 24:00 is subtracted from the calculation start time stored in the print SW memory time memory 12G1, the delay time stored in the Delay time memory 12B3 is added to the result, and the calculation result is used as the print SW work time memory 12G1. Overwrite and memorize. Then, the switching printing FLGNS stored in the switching printing FLGNS memory 12E2 is reset (step S47), and the process proceeds to the next step S48.
[0057]
Thus, in step S48, the value of the counter y12G6y is incremented by "+1". Thereafter, it is determined whether or not the updated value of the counter y12G6y has exceeded the number of details to be printed on the report (step S49), and if not, the process returns to step S19.
[0058]
In this way, the above processing is repeated, and if the value of the counter y12G6y exceeds the number of details to be printed on the report, the receipt is issued, that is, the receipt paper is cut (step S50). Exit.
[0059]
Note that the current date and time stored in the current time memory 12A is changed as shown in FIG. This operation is performed periodically.
[0060]
That is, first, it is determined whether or not the current date and time stored in the current time memory 12A is the winter time switching date stored in the winter time switching date memory 12B1 (step S60). If not, the process proceeds to step S62, which will be described later. If so, the delay time stored in the delay time memory 12B3 is added to the current date and time stored in the current time memory 12A, and the calculation result is displayed as the current time. After overwriting the time memory 12A (step S61), the process proceeds to the next step S62.
[0061]
Thus, in step S62, it is determined whether or not the current date and time stored in the current time memory 12A is the daylight saving time switching date stored in the daylight saving time switching date memory 12B2. If not, the current time switching process is terminated, and if so, the delay time stored in the delay time memory 12B3 is subtracted from the current date and time stored in the current time memory 12A. The calculation result is overwritten and stored in the current time memory 12A (step S63), and the current time switching process is terminated.
[0062]
Through the above processing, reports as shown in FIGS. 7A to 8B are obtained.
[0063]
That is, (A) and (B) of FIG. 7 show an example in which the interval time is 60 minutes and the delay time is 60 minutes. Here, FIG. 7A is an example when changing from winter time to daylight saving time. In this case, summer switching print 30 indicating the start of daylight saving time at the stage when 24:00 of the last day of winter time has passed. It is carried out. On the other hand, FIG. 7B is an example when changing from summer time to winter time. In this case, the time changes when the time becomes 10:00, and the time changes to 0: After printing the time zone sales data of 00-1: 00, the winter switching printing 32 indicating the end of summer time is performed.
[0064]
8A and 8B show an example in which the interval time is 60 minutes and the delay time is 90 minutes. Here, FIG. 8A is an example when changing from winter time to daylight saving time. In this case, summer switching printing 30 is performed after the last day 24:00 of winter time. . On the other hand, FIG. 8B is an example when changing from summer time to winter time. In this case, the time changes when the time becomes 1:30, and the time changes. Sometimes the interval time has not passed yet, so sales data for the time zone of 01: 00-0: 30 is printed, and then the winter switching print 32 is performed.
[0065]
[Second Embodiment]
Next, a second embodiment of the present invention will be described.
[0066]
The configuration of the electronic cash register as the sales data processing apparatus to which the time switching apparatus according to the second embodiment is applied is the same as that in the first embodiment, and thus the description thereof is omitted.
[0067]
FIG. 9A is a flowchart of “receipt printing process”.
[0068]
That is, when the operator registers sales data by a predetermined operation of the input device 20, the CPU 10 first uses the printing device 24 to store the character “receipt” on the receipt paper and the current date and time stored in the current time memory 12A. The sales data registered in the journal memory 12H is printed (step S60). Thereafter, the current date and time stored in the current time memory 12A is within a predetermined number of days of the winter time switching date and time stored in the winter time switching date memory 12B1 or the daylight saving time switching date and time stored in the summer time switching date memory 12B2. It is determined whether or not the date is reached (step S61). If not, the current date and time stored in the current time memory 12A is the winter time switching date and time stored in the winter time switching date memory 12B1 or the daylight saving time switching date and time stored in the summer time switching date memory 12B2. Is determined (step S62). If not, the “receipt printing process” is terminated.
[0069]
On the other hand, if it is determined in step S61 that the current date / time is within a predetermined number of days of the winter time switching date / time or the daylight saving time switching date / time, the number of days before the switching date / time is calculated (step S63). As shown in FIG. 9B, the calculated number of days is printed by the printing device 24 (step S64), and this “receipt printing process” is terminated.
[0070]
If it is determined in step S62 that the current date / time has passed the winter time switching date / time or the daylight saving time switching date / time, it is determined whether the current date / time is the current day of any of the switching dates (step S65). If so, as shown in FIG. 9B, the summer switching message is printed by the printing device 24 if it is a summer switching day, and the winter switching message is printed by the printing device 24 if it is a winter switching day. Then, the “receipt printing process” is terminated.
[0071]
On the other hand, when it is determined in step S65 that the current date and time is not the current day of any of the switching dates, it is further determined whether or not the current date and time is within a predetermined number of days from any of the switching dates (step S67). . If not, the “receipt printing process” is terminated. If so, as shown in FIG. 9D, the switching start date is printed by the printing device 24 (step S68), and this “receipt printing process” is terminated.
[0072]
As mentioned above, although this invention was demonstrated by embodiment, this invention is not limited to the said embodiment, Of course, a various deformation | transformation change is possible.
[0073]
For example, although the above embodiment has described the printing process for a report or a receipt, the print target may be a journal.
[0074]
In the first embodiment, the print data stored in the switching message character memory 12F is stored in the message work memory 12G4 by determining whether it is the switching date in the “time zone report issuing process”. However, when the current time is shifted by a predetermined time in the current time switching process, the print data is stored in the message work memory 12G4, and if it is stored in the “time zone report issuance process”, it is printed. You may do it.
[0075]
【The invention's effect】
According to the present invention, when the current time arrives at a predetermined date and time when the current time should be shifted by a predetermined time, the current time is shifted by the predetermined time, and a message is printed on the paper on which the sales data is printed. Therefore, the time zone total can be printed with the correct time distribution even when the time is switched, thereby making it possible to recognize the time lag due to the time switching and prevent confusion.
[Brief description of the drawings]
FIG. 1A is a diagram showing a configuration of an electronic cash register as a sales data processing device to which a time switching device according to a first embodiment of the present invention is applied, and FIG. It is the figure which showed the main structures.
2A is a diagram showing a configuration of a daylight saving time switching setting memory, FIG. 2B is a diagram showing a configuration of a time zone setting memory, FIG. 2C is a diagram showing a configuration of a time zone total memory, and FIG. FIG. 5E is a diagram showing a configuration of a flag area, FIG. 5E is a diagram showing a configuration of a work memory, and FIG. 5F is a diagram showing a configuration of a journal memory.
FIG. 3 is a diagram showing a first part of a series of operation flowcharts for explaining time period report issuing processing;
FIG. 4 is a diagram showing a second part of a series of operation flowcharts for explaining time zone report issuing processing;
FIG. 5 is a diagram showing a third part of a series of operation flowcharts for explaining time zone report issuing processing;
FIG. 6A is a diagram showing a fourth part of a series of operation flowcharts for explaining time zone report issuance processing, and FIG. 6B is a diagram showing an operation flowchart of current time switching processing.
7A is a diagram showing a report print example when changing from winter time to daylight saving time when the interval time is 60 minutes and the delay time is 60 minutes, and FIG. 7B is an interval time of 60 minutes. FIG. 11 is a diagram illustrating a report print example when changing from summer time to winter time when the delay time is 60 minutes.
8A is a diagram showing a report print example when changing from winter time to daylight saving time when the interval time is 60 minutes and the delay time is 90 minutes, and FIG. 8B is an interval time of 60 minutes. FIG. 10 is a diagram illustrating a report print example when changing from summer time to winter time when the delay time is 90 minutes.
FIG. 9A is a diagram showing an operation flowchart for explaining a receipt printing process in an electronic cash register as a sales data processing apparatus to which a time switching apparatus according to a second embodiment is applied; (B) to (D) are diagrams showing examples of receipt printing.
[Explanation of symbols]
10 CPU
12 RAM
12A Current time memory
12B Daylight saving time switching setting memory
12B1 Winter time switching day memory
12B2 Daylight saving time switching memory
12B3 Delay time memory
12C time zone setting memory
12C1 hours memory
12C2 calculation start time memory
12C3 interval time memory
12C4 Last Z date memory
12D total time zone memory
12D1 memory time memory
12D2A memory
12D2B amount memory
12E Flag area
12E1 switching printing FLGSN memory
12E2 switching printing FLGNS memory
12E3 switching printing FLG memory
12F Switching message character memory
12G work memory
12G1 print SW time memory
12G2 printing EWork time memory
12G3 Cases / Price Work Memory
12G4 message work memory
12G5 Work time memory
12G6x counter x
12G6y counter y
12H Journal memory
14 Storage device
16 storage media
18 Communication line
20 input devices
22 Display device
24 Printing device
26 Clock
28 Drawer
30 Summer printing
32 Winter printing

Claims (2)

現在日時を計時する計時手段と、
上記計時手段で計時している現在日時が、所定の日時に至ったか否かを判別する第1の判別手段と、
上記第1の判別手段により上記所定の日時に至ったと判別された際に、上記計時手段における現在時刻を所定時間ずらす現在時刻変更手段と、
上記計時手段での計時結果に基づいて、上記現在時刻変更手段により現在時刻を所定時間ずらしてから所定時間が経過したか否かを判別する第2の判別手段と、
上記第2の判別手段により上記所定時間が経過したと判別されるまで、売上データを印字した用紙に対し、現在時刻を所定時間ずらしたことのメッセージ印字を行う印字手段と、
を具備することを特徴とする時刻切替装置。
A timing means for timing the current date and time;
First discriminating means for discriminating whether or not the current date and time measured by the timing means has reached a predetermined date and time;
Current time changing means for shifting the current time in the time measuring means by a predetermined time when it is determined by the first determining means that the predetermined date and time has been reached;
Second determination means for determining whether or not a predetermined time has elapsed since the current time is shifted by a predetermined time by the current time changing means, based on a time measurement result by the time measuring means;
Printing means for printing a message indicating that the current time is shifted by a predetermined time on the paper on which the sales data is printed until it is determined by the second determination means that the predetermined time has elapsed ;
A time switching device comprising:
所定の日時に現在時刻を所定時間ずらす際に、
現在日時が上記所定の日時に至ったか否かを判別する処理と、
上記所定の日時に至ったと判別された際に、現在日時を計時する計時手段における現在時刻を所定時間ずらす処理と、
上記計時手段での計時結果に基づいて、上記現在時刻を所定時間ずらしてから所定時間が経過したか否かを判別する処理と、
上記所定時間が経過したと判別されるまで、売上データを印字した用紙に対し、現在時刻を所定時間ずらしたことのメッセージ印字を行う処理と、
をコンピュータに実行させる命令を含むプログラムを格納した、コンピュータが読み取り可能な記録媒体。
When the current time is shifted by a predetermined time at a predetermined date and time,
Processing for determining whether or not the current date and time has reached the predetermined date and time;
When it is determined that the predetermined date and time has been reached, a process for shifting the current time by a predetermined time in the time measuring means for measuring the current date and time,
A process for determining whether or not a predetermined time has elapsed since the current time was shifted by a predetermined time based on a time measurement result by the time measuring means;
A process of printing a message indicating that the current time is shifted by a predetermined time on the paper on which the sales data is printed until it is determined that the predetermined time has passed;
The computer-readable recording medium which stored the program containing the instruction | indication which makes a computer perform.
JP2000087249A 2000-03-27 2000-03-27 Time switching device and recording medium Expired - Fee Related JP3743821B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000087249A JP3743821B2 (en) 2000-03-27 2000-03-27 Time switching device and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000087249A JP3743821B2 (en) 2000-03-27 2000-03-27 Time switching device and recording medium

Publications (3)

Publication Number Publication Date
JP2001272487A JP2001272487A (en) 2001-10-05
JP2001272487A5 JP2001272487A5 (en) 2004-11-04
JP3743821B2 true JP3743821B2 (en) 2006-02-08

Family

ID=18603286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000087249A Expired - Fee Related JP3743821B2 (en) 2000-03-27 2000-03-27 Time switching device and recording medium

Country Status (1)

Country Link
JP (1) JP3743821B2 (en)

Also Published As

Publication number Publication date
JP2001272487A (en) 2001-10-05

Similar Documents

Publication Publication Date Title
US4564904A (en) Electronic cash register
JP3699313B2 (en) Product sales registration device
JP3743821B2 (en) Time switching device and recording medium
JPS5896368A (en) Electronic cash register
JPH06131562A (en) Pos device with point managing function
JP2644643B2 (en) Product sales registration device
JP3845737B2 (en) Sales data processing apparatus and recording medium
JP3931535B2 (en) Billing amount processing apparatus and recording medium
JP2002008135A (en) Cash register
JP2003223680A (en) Pos system
JP3596444B2 (en) Cash register
JP2993794B2 (en) Product sales data processing device
JP2000048263A (en) Sales data processor and recording medium
JPH04101295A (en) Electronic cash register
JP2948017B2 (en) Electronic cash register
JPH11328535A (en) Sales data processor and program recording medium therefor
JP3965082B2 (en) Product sales data processing device
JP2022041358A (en) Sales data processing device, sales data processing method, and program
KR100193726B1 (en) Apparatus and method for incorporating registration contents generated by cashier&#39;s account
JP2901813B2 (en) Electronic cash register
JPH04357591A (en) Electronic cash register
JP2665403B2 (en) Product sales data processing device
JPH0373032B2 (en)
JP2001143161A (en) Cache register
JPS62174897A (en) Electronic cash register

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050614

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050727

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051018

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051031

R150 Certificate of patent or registration of utility model

Ref document number: 3743821

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091202

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101202

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111202

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111202

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121202

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121202

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131202

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees