JP2730678B2 - Information processing device - Google Patents
Information processing deviceInfo
- Publication number
- JP2730678B2 JP2730678B2 JP31082386A JP31082386A JP2730678B2 JP 2730678 B2 JP2730678 B2 JP 2730678B2 JP 31082386 A JP31082386 A JP 31082386A JP 31082386 A JP31082386 A JP 31082386A JP 2730678 B2 JP2730678 B2 JP 2730678B2
- Authority
- JP
- Japan
- Prior art keywords
- date
- holiday
- day
- data
- input
- 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
Links
Landscapes
- Meter Arrangements (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Description
【発明の詳細な説明】
〔分 野〕
本発明は、振替休日を自動的に判定できる情報処理装
置に関する。
〔従来技術〕
現在のNTT(日本電信電話株式会社)の一般電話料金
は、土曜,日曜,正月3ケ日、及び祝祭日が割引料金と
なっている為、電話番号による推定課金方式の通信料金
計算装置(以下単にこれを課金計と呼ぶ事にする)で
は、その割引日の判定を行う必要がある。従来の課金計
では、内蔵する時計により、時刻と共にその日の曜日デ
ータを受け取り、さらに祝祭日のデータと日付を比較
し、土曜日か日曜日、あるいは祝祭日かの判定を行い、
当日が料金の割引日であるか否かの判定を行っていた。
この中には振替休日日の判定は含まれておらず、従っ
て利用者は、その誤差を黙認するか、あるいは、別に料
金割引日の設定入力手段を設けて、設定しなければなら
ないという不便があった。あるいは課金計の中には、課
金計は通常は一般家庭では使われる事は少なく、主とし
て会社等の組織でしか使われない為に、料金割引日に使
用する頻度が少ない事を前提として、最初から割引料金
の計算を行わないものもある。
〔目 的〕
本発明は前述従来の欠点を除去し、振替休日である月
曜日を自動的に判定し、振替休日である月曜日を休日と
して処理することが可能な情報処理装置を提供すること
にある。
〔実施例〕
以下に本発明の実施例について説明する。尚、曜日の
判定法は、時計用のIC等では、その殆どが、最初日付と
共に手動で曜日を入力設定し、以後7を基準として24時
間ごとに1個づつ曜日をずらすという方法、又は計算機
でカレンダーを作成する際の方法、即ちある年月日の曜
日を設定し与えられた年月日との差を求めて、与えられ
た日付の曜日を算出する方法は既知のものであるのでこ
こではその説明は省略し、上記いずれかの方法により与
えられた日付に対する曜日はすでに与えられたものとす
る。
曜日は日曜日から月曜日迄7個あるので、これらを0
〜6の数値で表わす。即ち、ここでは0を日曜日、1を
月曜日、以下同様に数値が1増す事に次の曜日とし最後
は6が土曜日とする。又、ハードウェアとしては第3図
の如くCPUプログラムメモリROM,データメモリRAM及びデ
ータ入出力装置K,Dの周知の構成であるので詳細は省略
する。以下フラグ及びレジスタはRAMの所定領域を利用
し、曜日データの入力はキーKを、曜日、振替休日の表
示は表示器Dにより行う。
第1,2図は本実施例のプログラムフロー図でありROMに
格納される。
第1図にてS1で与えられた年月日、曜日をレジスタに
読み込む、次にS2で曜日が0か否か、即ち日曜日である
か否かの判定を行い、そうでなければS3で土曜日か否か
の判定を行う。この土曜か否かの判定は本実施例が課金
計へ応用する事を想定しているので、このルーチンが入
っており、単なる休日の判定の為だけならばS3は省かれ
る、S3でもしそうでなければS4で月曜日か否かの判定を
行う。もし月曜日ならS5で与えられた日を1日だけ減算
し次のS6へ移り、もしそうでなければ減算せずにS6へ移
る。S6では与えられた月日をテーブル化された祝祭日の
データと比較し、もし一致すれば与えられた日が休日と
判定しS10に移る。与えられた月の検索が終了する迄プ
ログラムはS6,S7,S8を巡回しS8で終了した時点で、全デ
ータと日付が一致しなかった場合は、与えられた月日は
休日ではないと判定して、S9でFLAGを0にセットし終了
する。又、S2,S3で、それぞれ日曜日、あるいは土曜日
と判定されれば、与えられた月日は、休日(料金割引
日)と判定してS10に移る。S10では休日、(料金割引
日)のフラグを1にセツトし、終了する。尚S4で月曜日
であった場合、もし与えられた日付が1日であると、次
のS5では日のデータDAYが0になるので、S6で検索す
る。テーブル化されたデータには、月の一番最後が祝祭
日の場合には0を含めなければならない。
第2図は、本実施例を課金計に応用した例であり、課
金計算のプログラムフローを示す図である。まずS11で
発呼した電話番号をレジスタにロードする。続いてS12
で回線を保留していた時間をレジスタにロードする。次
にS13で前述の第1図のプログラムへ飛び同フローを実
行する。その実行が終了すると、すでにフラグがセツト
されているのでS14で同フラグの検定を行う。もしFLAG
=1、即ち休日であるならば料金割引日であるのでS15
で夜間の単位時間を昼間の単位時間に移し変えS16で課
金計算を行う。そうする事により料金割引日の通信は、
昼間であっても夜間の割引料金が適用される事になる。
又S14で休日ではないと判定すると、S16の課金計算では
通信する時間帯に応じて、昼間,夜間の単位時間が適用
され割引はない事になる。
〔効 果〕
以上述べたように本発明によれば、振替休日である月
曜日を自動的に判定し、振替休日である月曜日を休日と
して処理することが可能な情報処理装置を提供すること
ができる。[Field of the Invention] The present invention relates to an information processing apparatus capable of automatically determining a transfer holiday. [Prior art] The current general telephone charges of NTT (Nippon Telegraph and Telephone Corporation) are discounted on Saturdays, Sundays, the third day of the New Year, and public holidays, so communication charges are calculated based on the estimated billing method using telephone numbers. The device (hereinafter simply referred to as a charge meter) needs to determine the discount date. In the conventional billing meter, the built-in clock receives the day of the week data together with the time, further compares the date with the holiday data, determines whether it is a Saturday or Sunday, or a holiday,
It was determined whether or not the day was a discount day of the fee. This does not include the determination of the transfer holiday date, and therefore, the user has to inaccurate the error or set a separate fee discount date setting input means and set the inconvenience. there were. Alternatively, some charge meters are usually not used in ordinary households, and are mainly used only by organizations such as companies. Some do not calculate discount rates from. [Purpose] It is an object of the present invention to provide an information processing apparatus capable of eliminating the above-mentioned conventional drawbacks, automatically determining a Monday as a transfer holiday, and processing a Monday as a transfer holiday as a holiday. . [Example] An example of the present invention will be described below. Most of the methods for determining the day of the week are for clock ICs and the like, in which the day of the week is first manually input together with the date, and thereafter the day of the week is shifted by one every 24 hours based on 7 or a computer. Since the method of creating a calendar with, that is, the method of setting the day of the week of a certain date, finding the difference with the given date, and calculating the day of the week of the given date is known, here Then, the description is omitted, and the day of the week for the date given by any of the above methods is already given. There are seven days of the week from Sunday to Monday.
It is represented by a numerical value of ~ 6. That is, here, 0 is Sunday, 1 is Monday, and similarly, the numerical value is incremented by 1, the next day is set, and finally 6 is Saturday. The hardware has a well-known configuration including a CPU program memory ROM, a data memory RAM, and data input / output devices K and D as shown in FIG. In the following, flags and registers use a predetermined area of the RAM, the key K is used to input the day of the week, and the display D is used to display the day of the week and the transfer holiday. 1 and 2 are program flow diagrams of the present embodiment, which are stored in a ROM. Read date given in S 1 in FIG. 1, the day of the week in the register, then S 2 days of the week 0 whether in, that a determination is made whether a Sunday otherwise S At 3 it is determined whether it is Saturday. Since this Saturday is determined whether or not the present embodiment, it is assumed that the application to the billing meter, has entered this routine, S 3 if only because of the determination of mere holiday is omitted, even S 3 if it is not likely to do on Monday whether or not the determination in S 4. If Monday if the date given in the S 5 is subtracted only one day move to the next S 6, the process proceeds to S 6 without subtraction if it is not. The date given in S 6 compared with tabulated the holidays of data, a given day If there is a match, then moves to and S 10 determines that holiday. At the time the search of a given month program until the end of that ended in S 8 patrol the S 6, S 7, S 8 , if all of the data and the date does not match, a given month holiday and determined not to be, to set the FLAG to 0 in the S 9 to the end. Further, if it is determined in S 2 and S 3 that it is Sunday or Saturday, respectively, the given month and day are determined as holidays (charge discount days), and the process proceeds to S 10 . In S 10 holiday, and excisional to 1 the flag of the (discount date), to the end. Note If a Monday S 4, when is the date one day given if the data DAY day in the next S 5 becomes 0, to search S 6. The tabulated data must include 0 if the end of the month is a holiday. FIG. 2 is an example in which this embodiment is applied to a charge meter, and is a diagram showing a program flow of charge calculation. First, load the phone number that you call in the S 11 to register. Then S 12
Loads the time the line was held in the register. Then running the same flow jumps to above the first diagram of the program in S 13. When the execution is completed, the test of the same flag already S 14 since the flag has been excisional. If FLAG
= 1, that is, if it is a holiday, it is a charge discount day, so S 15
Performs billing calculation in the nighttime unit of time in the place of S 16 transferred to a daytime unit time. By doing so, communication on the discount day will be
Even in the daytime, the nightly discount rate will be applied.
Also if it is not determined that the holiday in S 14, depending on the time zone in which communication is in charge calculation of S 16, during the day, it is applied at night a unit of time there will be no discount. [Effect] As described above, according to the present invention, it is possible to provide an information processing apparatus capable of automatically determining Monday as a transfer holiday and processing Monday as a transfer holiday as a holiday. .
【図面の簡単な説明】
第1図は本発明のCPUプログラムフロー図、
第2図は課金計算に応用した場合のプログラムフロー
図、
第3図はシステムブロツク図である。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a CPU program flow diagram of the present invention, FIG. 2 is a program flow diagram when applied to billing calculation, and FIG. 3 is a system block diagram.
Claims (1)
日であるか否かを判別する判別手段と、 前記判別手段により前記入力される日付データの曜日が
月曜日であると判別された場合、前記入力される日付デ
ータの前日の日付を導出する導出手段と、 前記記憶手段に記憶される祝祭日データに基づいて、前
記導出手段により導出される日付の日が祝祭日であるか
否か、または、前記入力される日付データの日付の日が
祝祭日であるか否かを判定する判定手段と、 前記判定手段により前記導出される日付の日、または、
前記入力される日付データの日付の日が祝祭日であると
判定された場合、前記入力される日付データの日付の日
を休日として処理し、前記判定手段により前記導出され
る日付の日、または、前記入力される日付データの日付
の日が祝祭日でないと判定された場合、前記入力される
日付データの日付の日を平日として処理する処理手段と
を有することを特徴とする情報処理装置。 2.前記処理手段は、課金計算処理を行うことを特徴と
する特許請求の範囲第1項記載の情報処理装置。(57) [Claims] Storage means for storing holiday data; input means for inputting date data; determining means for determining whether or not the day of the date data input by the input means is Monday; If the day of the week of the date data is determined to be Monday, the deriving unit derives the date of the day before the input date data, and the deriving unit based on the holiday data stored in the storage unit. Determining means for determining whether or not the date of the date to be performed is a holiday, or determining whether or not the date of the input date data is a holiday; and the date of the date derived by the determining means. Or
If it is determined that the day of the date of the input date data is a holiday, the day of the date of the input date data is processed as a holiday, and the date of the derived date by the determination unit, or An information processing apparatus, comprising: a processing unit that, when it is determined that the date of the input date data is not a holiday, processes the date of the input date data as a weekday. 2. 2. The information processing apparatus according to claim 1, wherein said processing means performs a billing calculation process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31082386A JP2730678B2 (en) | 1986-12-26 | 1986-12-26 | Information processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31082386A JP2730678B2 (en) | 1986-12-26 | 1986-12-26 | Information processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS63164668A JPS63164668A (en) | 1988-07-08 |
JP2730678B2 true JP2730678B2 (en) | 1998-03-25 |
Family
ID=18009840
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP31082386A Expired - Fee Related JP2730678B2 (en) | 1986-12-26 | 1986-12-26 | Information processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2730678B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06131351A (en) * | 1992-10-21 | 1994-05-13 | Mitsubishi Denki Bill Techno Service Kk | Schedule controller |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS59105753A (en) * | 1982-12-08 | 1984-06-19 | Hitachi Heating Appliance Co Ltd | Call charge display device |
-
1986
- 1986-12-26 JP JP31082386A patent/JP2730678B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPS63164668A (en) | 1988-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6912382B2 (en) | System and method for enhanced telephone customer usage details | |
JPH08508858A (en) | How to prevent fraud for communication networks | |
US20030045266A1 (en) | Mobile wireless communication devices with airtime accounting and methods therefor | |
CN110348890A (en) | A kind of method and apparatus calculating Parking Fee | |
JP5167879B2 (en) | Electronic money deposit method, electronic money deposit support system, terminal device, and computer program | |
CN111932240A (en) | Property charging management service method and device | |
US20050032505A1 (en) | Calling plan time display and method of display for a cellular phone | |
JP2730678B2 (en) | Information processing device | |
JP6992576B2 (en) | Parking lot management equipment, parking lot management methods, and parking lot management programs | |
JP2003030412A (en) | System for supporting urging and collection business | |
JP2752875B2 (en) | Invoice issuing device | |
JP2549454Y2 (en) | Data bank device | |
JP4855371B2 (en) | Prepaid mobile phone system and control method of prepaid mobile phone system | |
JPH0683849A (en) | System for calculating number of operating days | |
JP2861924B2 (en) | Method and apparatus for controlling supplementary service of exchange | |
JP2001217960A (en) | Communication terminal with function for displaying charge by speech plan | |
JP2000125045A (en) | Communication terminal device | |
KR101460763B1 (en) | Apparatus and method providing communication terminal changing service | |
JPH079660B2 (en) | Transaction processor | |
JPS62141843A (en) | Telephone set with charging function | |
JPH05122407A (en) | Telephone set | |
CN116916264A (en) | Method, device, equipment and computer storage medium for generating ticket | |
JPH11272899A (en) | Method for calculating parking fee | |
JPH0330348B2 (en) | ||
JPH05207196A (en) | Charging system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |