JPH0289153A - Number of days calculator for electronic apparatus - Google Patents

Number of days calculator for electronic apparatus

Info

Publication number
JPH0289153A
JPH0289153A JP63240486A JP24048688A JPH0289153A JP H0289153 A JPH0289153 A JP H0289153A JP 63240486 A JP63240486 A JP 63240486A JP 24048688 A JP24048688 A JP 24048688A JP H0289153 A JPH0289153 A JP H0289153A
Authority
JP
Japan
Prior art keywords
date
calendar
days
key
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.)
Pending
Application number
JP63240486A
Other languages
Japanese (ja)
Inventor
Chieji Katou
加藤 千悦治
Shigeru Shindo
進藤 茂
Shiyouichi Kawai
河合 匠一
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP63240486A priority Critical patent/JPH0289153A/en
Publication of JPH0289153A publication Critical patent/JPH0289153A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To use the number of days calculating device through simple operation by fetching a designated date being indicated on a calendar and the date at present from a time counting means into a processing part when a prescribed input is inputted from an inputting part. CONSTITUTION:A circuit 16 which counts the date and time at present by real time according to the calendar as considering the date initialized by various kinds of inputting keys 3 to 8 to be a standard point is provided, and in the case where the calendar within some range is indicated on an indicating part 2 and in addition, either of the dates is designated previously, when the prescribed input is inputted from the inputting part 3 to 8, a CPU 11 fetches the designated date on the calendar being indicated and the date at present from the time counting means 16, and calculates the number of days from the date at present up to the designated date according to the calendar, and indicates a calculated result by the indicating part 2. Thus, the number of days can be easily calculated without inputting the date by performing the simple operation.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、カレンダ機能等を有する電子機器における日
数計算装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a number-of-days calculation device in an electronic device having a calendar function or the like.

〔従来の技術〕[Conventional technology]

近年、計時機能やカレンダ機能等に基づき各種情報処理
を行うマイクロコンピュータシステムからなる手帳型又
はカード型の電子機器がビジネスマン等の間で大いに普
及している。
2. Description of the Related Art In recent years, notebook-type or card-type electronic devices comprising microcomputer systems that perform various information processing based on timekeeping functions, calendar functions, etc. have become widely popular among businessmen and the like.

このような電子機器は、手帳型の見開きやカード型の板
面に、入力部として文字キーや数字キー、カーソルキー
及び各種機能キーが設けられ、出力部としてLCD (
液晶)等の表示装置が設けられている。また、内部には
、処理部としてCPU(中央処理装置)や記憶装置及び
RTC(リアルタイムクロツタ)等を有し、記憶装置内
のプログラムに基づき入力部からの入力に従って、CP
Uが各種処理を行うようになっている。
Such electronic devices are equipped with character keys, numeric keys, cursor keys, and various function keys as input sections on a notebook-type spread or card-type board, and an LCD (LCD) as an output section.
A display device such as a liquid crystal display is provided. Also, the inside has a CPU (central processing unit), storage device, RTC (real-time clock), etc. as a processing section, and according to the input from the input section based on the program in the storage device, the CPU
U performs various processing.

従って、ユーザが所定の機能キーを押せば、計時機能に
より現在の日付や時刻を表示させたり、カレンダ機能に
より任意の月のカレンダを表示させることができる。
Therefore, when the user presses a predetermined function key, the current date and time can be displayed using the timekeeping function, or a calendar for any month can be displayed using the calendar function.

さらに、従来のこのような電子機器には、例えば何らか
の予定日の日付と現在の日付を入力すれば、計時機能や
カレンダ機能で用いる暦に基づいて、その予定日までの
日数を計算することができるような日数計算機能を有す
るものもあった。
Furthermore, conventional electronic devices such as this have the ability to calculate the number of days until the scheduled date based on the calendar used by the clock function or calendar function, for example, by inputting the date of a certain scheduled date and the current date. Some had a function to calculate the number of days.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところが、このような日数計算機能は、数字キー等によ
り2つの日付の年月日をそれぞれ入力しなければならず
、操作が煩わしいものであった。
However, such a number-of-days calculation function requires inputting the year, month, and day of two dates using numerical keys or the like, which is cumbersome to operate.

従って、従来の手帳型等の電子機器では、日数計算機能
があるにもかかわらず、操作が面倒であるために十分に
利用することができないという問題点を有していた。
Therefore, although conventional electronic devices such as notebook-type devices have a function to calculate the number of days, they have a problem in that they cannot be fully utilized because they are cumbersome to operate.

〔課題を解決するための手段〕[Means to solve the problem]

本発明に係る電子機器の日数計算装置は、上記課題を解
決するために、操作内容を入力する入力部と、この入力
に従って所定の処理を行う処理部と、この処理結果を表
示する表示部とを有し、少なくとも、暦に基づいて現在
の日付を計時する計時機能と、暦に基づいて指示された
範囲のカレンダを表示部に表示するカレンダ機能とが設
けられた電子機器において、カレンダ機能によって表示
されたカレンダ上で任意の日付を指定する日付指定手段
と、ある範囲のカレンダが表示され、かついずれかの日
付が指定されている場合に、入力部から所定の入力があ
ると、表示されているカレンダ上の指定された日付と計
時手段からの現在の日付とを処理部に取り込む日付取込
手段と、この日付取込手段が2つの日付を処理部に取り
込むと、暦に基づいて現在の日付から指定された日付ま
での日数を計算する日数計算手段と、この計算手段が日
数を計算すると、その計算結果を表示部で表示させる日
数表示手段とからなることを特徴としている。
In order to solve the above-mentioned problem, an electronic device days calculation device according to the present invention includes an input section for inputting operation details, a processing section for performing predetermined processing according to the input, and a display section for displaying the processing results. , and is equipped with at least a timekeeping function that measures the current date based on a calendar, and a calendar function that displays a calendar within a specified range based on the calendar on the display. There is a date specification means for specifying any date on the displayed calendar, and when a certain range of calendars is displayed and any date is specified, if a predetermined input is made from the input section, the date is displayed. a date importing means that imports a specified date on a calendar and the current date from the timekeeping means into a processing unit; The present invention is characterized by comprising a number of days calculation means for calculating the number of days from the date to a designated date, and a number of days display means for displaying the calculation result on a display unit when the calculation means calculates the number of days.

〔作 用〕[For production]

計時機能は、初期設定によって得た日付を基点とし、暦
に基づいて現在の日付をリアルタイムで計時するもので
ある。従って、この計時機能の計時結果を処理部に取り
込めば、現在の日付や時刻等の情報を得ることができ、
これを表示部で表示させることもできる。暦は、大の月
や小の月、閏年等のデータ、又は、グレオリオ暦に基づ
いてこれらを計算する手段等からなる。
The time measurement function uses the date obtained through initial settings as a base point and measures the current date in real time based on the calendar. Therefore, by importing the time measurement results of this time measurement function into the processing unit, information such as the current date and time can be obtained.
This can also be displayed on the display unit. A calendar consists of data such as major months, minor months, leap years, etc., or means for calculating these based on the Greorian calendar.

カレンダ機能は、この暦に基づいて例えば−箇月骨の日
付と曜日を一覧するカレンダを表示部に表示するもので
ある。この際、ユーザは、暦が対応し得る限度において
、過去、現在又は将来における任意の月を指示すること
ができる。なお、表示されるカレンダの範囲は、月単位
に限定されるものではなく、また、カレンダの表示形式
も任意に設定することができる。
The calendar function is for displaying, for example, a calendar listing dates and days of the week on the display unit based on this calendar. At this time, the user can specify any month in the past, present, or future within the limits that the calendar can accommodate. Note that the range of the displayed calendar is not limited to monthly units, and the display format of the calendar can also be set arbitrarily.

日付指定手段は、このカレンダ機能によって表示された
カレンダ上で任意の日付を指定するものであり、ユーザ
が例えばカーソルをいずれかの表示日付上に移動させる
ことにより指定を行う。この際、例えば、カレンダ機能
の実行当初は、自動的に現在の日付が含まれる範囲を指
示してそのカレンダを表示すると共に、そのカレンダ上
の現在の日付を指定するようにし、また、新たに指示さ
れた範囲のカレンダが表示された当初には、自動的にそ
の範囲の最初の日付を指定するようにして、それぞれデ
フォルト状態を設定しておくことにより、ユーザによる
明示の指示や指定を省略することもできる。
The date designation means designates an arbitrary date on the calendar displayed by the calendar function, and the user designates the date by, for example, moving a cursor over one of the displayed dates. At this time, for example, when the calendar function is first executed, it automatically specifies the range that includes the current date and displays that calendar, and also specifies the current date on the calendar, and also displays the range that includes the current date. When a calendar in the specified range is initially displayed, the first date in the range is automatically specified, and the default state is set for each, thereby eliminating the need for explicit instructions or specifications by the user. You can also.

日付取込手段は、カレンダ機能によっである範囲のカレ
ンダが表示され、かついずれかの日付が指定されている
場合に、入力部から所定の入力があると、表示されてい
るカレンダ上で指定された日付と計時手段からの現在の
日付とを処理部に取り込む。所定の入力は、例えば本発
明の一連の処理を行うための機能キーを入力部に設けて
おき、ユーザがこの機能キーを押すことにより実行され
るようにすればよい。また、カレンダの表示時には使用
しない他の目的のためのキーを1又は2以上押すことに
より、所定の入力がなされるようにしてもよい。
When a range of calendars is displayed by the calendar function and any date is specified, when a specified input is received from the input section, the date import method is used to import the specified date on the displayed calendar. The received date and the current date from the clock means are taken into the processing section. The predetermined input may be performed by, for example, providing a function key on the input unit for performing a series of processes of the present invention and having the user press the function key. Furthermore, a predetermined input may be made by pressing one or more keys for other purposes that are not used when displaying the calendar.

なお、従来の日数計算装置は、上記2つの日付をそれぞ
れ入力部の数字キー等によって入力しなければならなか
った。
In addition, in the conventional number of days calculation device, each of the above two dates had to be inputted using the numeric keys or the like on the input section.

この日付取込手段が2つの日付を処理部に取り込むと、
日数計算手段が暦に基づいて現在の日付から指定された
日付までの日数を計算する。日数の計算は、2つの日付
が同年同月の場合には単なる減算によって求めることが
できる。しかし、月をまたぐ場合には、その間の月が大
の月であるか小の月であるかの情報を暦から得る必要が
ある。
When this date importing means imports two dates into the processing section,
The number of days calculation means calculates the number of days from the current date to the designated date based on the calendar. The number of days can be calculated by simple subtraction if the two dates are in the same year and month. However, when crossing months, it is necessary to obtain information from the calendar as to whether the months in between are large or small.

また、2月の末日を介する場合には、その年が閏年であ
るかどうかの情報も必要となる。
Furthermore, if the last day of February is used, information on whether the year is a leap year is also required.

この計算手段が日数を計算すると、日数表示手段がその
計算結果を表示部で表示させる。この際、日数を示す数
字と共に、上記2つの日付とこれらの間の日数を示す旨
のメツセージを併せて表示れば、ユーザにとって分かり
易いものとなる。また、日付指定手段によって指定され
た日付が過去のものであった場合には、表示する日数に
マイナス符号を付記する等によって現在までの経過日数
を示すことができる。
When the calculation means calculates the number of days, the number of days display means displays the calculation result on the display section. At this time, if a message indicating the two dates and the number of days between them is displayed together with the number indicating the number of days, it will be easier for the user to understand. Further, if the date specified by the date specifying means is in the past, the number of days that have passed up to the present can be indicated by adding a minus sign to the number of days to be displayed.

なお、上記日数計算手段と日数表示手段は、従来の日数
計算装置で用いたものと同様のものであってもよい。
Note that the number of days calculation means and the number of days display means may be the same as those used in conventional number of days calculation devices.

ここで、ユーザは、例えば−箇月分の日付と曜日を一覧
できるカレンダを見ながらスケジュールを定めたり確認
するのが一般的であり、この際に日数計算の必要を生じ
ることが多い。そして、この日数計算の初日は、はとん
どが現在の日付となる。従って、カレンダを表示させた
際に、その1]からカレンダ上で指示した日までの日数
を本発明によって計算できるようになれば、日数計算を
行う必要があるほとんどの場合に、筒車な操作でこの日
数を知り得ることになる。
Here, the user generally determines or confirms the schedule while looking at a calendar that can list dates and days of the week for -months, for example, and it is often necessary to calculate the number of days at this time. The first day of this calculation of days is usually the current date. Therefore, if the present invention makes it possible to calculate the number of days from point 1 to the specified date on the calendar when the calendar is displayed, in most cases where it is necessary to calculate the number of days, it will be possible to use the hour wheel operation. Now you can know the number of days.

〔実施例〕〔Example〕

本発明の一実施例を第1図乃至第5図の記載に基づいて
説明すれば、以下の通りである。
An embodiment of the present invention will be described below based on the descriptions in FIGS. 1 to 5.

本実施例は、いわゆる電子手帳と呼ばれる電子機器につ
いて示す。
This embodiment describes an electronic device called a so-called electronic notebook.

この電子機器は、第2図に示すように、本体lが二つに
折れて手帳状をなし、見開きが開閉自在となるように構
成されている。
As shown in FIG. 2, this electronic device is constructed so that the main body 1 is folded into two to form a notebook shape, and the two-page spread can be opened and closed.

そして、第3図に示すように、この見開きの左側上部に
表示部2が設けられている。表示部2はドツトマトリク
ス構成のLCDからなり、英数字及び仮名漢字等を複数
行表示できるようになっている。
As shown in FIG. 3, a display section 2 is provided at the upper left side of this double-page spread. The display section 2 consists of an LCD with a dot matrix structure, and is capable of displaying alphanumeric characters, kana, kanji, etc. in multiple lines.

この見開きの他の部分は、全てメンブレンスイッチから
なる入力部となっている。入力部には、見開き左側中央
部に機能キー3が配置されている。機能キー3は、各種
機能を実行するためのキーであり、カレンダキー3a、
スケジュールキー3b、日数計算キー3c、時計キー3
d及び呼出キー3e等が設けられている。カレンダキー
3aは、表示部2に一箇月分の日付と曜日を一覧するカ
レンダを表示させるためのキーである。スケジュールキ
ー3bは、スケジュール機能を実行するためのキーであ
る。なお、スケジュール機能については、本発明と直接
関係がないので、詳細な説明を省略する。日数計算キー
3cは、2つの日付間の日数を計算するためのキーであ
る。時計キー3dは、表示部2に現在の日付や時刻を表
示させるためのキーである。呼出キー3eは、表示部2
の画面情報をその指定した方向に応じて切り換えるため
のキーである。
The other parts of this double-page spread are all input sections consisting of membrane switches. In the input section, a function key 3 is arranged at the center on the left side of the two-page spread. The function keys 3 are keys for executing various functions, and include calendar keys 3a,
Schedule key 3b, number of days calculation key 3c, clock key 3
d, a call key 3e, etc. are provided. The calendar key 3a is a key for displaying a calendar listing dates and days of the week for one month on the display unit 2. The schedule key 3b is a key for executing a schedule function. Note that the schedule function is not directly related to the present invention, so a detailed explanation will be omitted. The number of days calculation key 3c is a key for calculating the number of days between two dates. The clock key 3d is a key for displaying the current date and time on the display unit 2. The call key 3e is
This key is used to switch screen information according to the specified direction.

見開きの左側における上記機能キー3の下方には、電源
の0N10FFを行う大キー4a及び切キー4b、及び
入力データのクリアや各種機能のモードを終了させるた
めのC−CE主キー等が設けられている。また、この機
能キー3の下方には、後に説明する表示部2上のカーソ
ルを移動させるためのカーソルキー6が設けられている
。このカーソルキー6は、それぞれカーソルを上下左右
に移動させるための上キー6a、下キー6b、左キー6
c及び右キー6dからなる。さらに、見開きの左側下部
には、電卓機能のための数字キーや演算子キー等からな
る電卓キー7が設けられている。
Below the function keys 3 on the left side of the spread are provided a large key 4a and an off key 4b for turning the power on and off, and a C-CE main key for clearing input data and ending various function modes. ing. Further, below the function key 3, a cursor key 6 for moving a cursor on the display section 2, which will be described later, is provided. The cursor keys 6 include an up key 6a, a down key 6b, and a left key 6 for moving the cursor up, down, left and right, respectively.
c and right key 6d. Furthermore, a calculator key 7 consisting of numeric keys, operator keys, etc. for calculator functions is provided at the lower left side of the double-page spread.

見開きの右側には、文字入力のための文字キーや変換キ
ー及び編集キー等からなる文字入カキ−8が全面に設け
られている。
On the right side of the two-page spread, character entry keys 8 consisting of character keys, conversion keys, editing keys, etc. for character input are provided over the entire surface.

上記電子機器における制御部の構成を第4図に基づいて
説明する。
The configuration of the control section in the electronic device will be explained based on FIG. 4.

この制御部は、電子機器の本体l内に収納され、CPU
IIを中心としたマイクロコンピュータによって構成さ
れている。このCPUI 1は、LCDドライバ12を
介して前記表示部2に接続している。LCDドライバ1
2は、CPUIIからの指令に従って表示部2を駆動す
る駆動回路である。また、このCPLJI 1には、I
10ボート13を介して前記各種入カキ−3〜8が接続
されている。従って、CPU11は、I10ポート13
のアドレスによりいずれの入カキ−3〜8が押されたか
を判別することができる。
This control unit is housed within the main body of the electronic device, and is
It is composed of microcomputers centered around II. This CPU 1 is connected to the display section 2 via an LCD driver 12. LCD driver 1
2 is a drive circuit that drives the display section 2 according to commands from the CPU II. In addition, this CPLJI 1 includes I
The various input keys 3 to 8 are connected via a 10 boat 13. Therefore, the CPU 11
It is possible to determine which input key 3 to 8 was pressed based on the address.

電子機器の本体l内には、ROM14、RAM15及び
RTC16が配設され、それぞれ上記CFullに接続
されている。ROM14は、本電子機器の動作プログラ
ム及び各種データが格納された読み出し専用の記憶装置
である。RAM15は、各種入カキ−3〜8から入力さ
れたデータの記録やCPUIIの作業用に使用される読
み書き可能な記憶装置である。RTC16は、リアルタ
イムクロックであり、各種入力キー3〜8等によって初
期設定された日時を基点とし、暦に基づいて現在の日付
及び時刻をリアルタイムで計時する回路である。
A ROM 14, a RAM 15, and an RTC 16 are provided in the main body 1 of the electronic device, and each is connected to the CFull. The ROM 14 is a read-only storage device that stores operating programs and various data for the electronic device. The RAM 15 is a readable and writable storage device used for recording data input from various input keys 3 to 8 and for working with the CPU II. The RTC 16 is a real-time clock, and is a circuit that measures the current date and time in real time based on a calendar, with the date and time initially set by the various input keys 3 to 8 as a base point.

電子機器の本体l内には、さらに電池17が収納され、
上記各回路に電源を供給するようになっている。また、
この電池17は、電子機器の電源OFF時にもRAM1
5をバックアップして、記憶内容を保持させるようにな
っている。
A battery 17 is further housed within the main body l of the electronic device,
Power is supplied to each of the above circuits. Also,
This battery 17 remains in RAM1 even when the power of the electronic device is turned off.
5 is backed up and the stored contents are retained.

上記構成の電子機器は、CPUIIがROMI4内の動
作プログラムに基づき入カキ−3〜8からの入力に従つ
て所定の処理を行い、この処理結果を表示部2に表示さ
せること等により、各種機能の実行を行う。
The electronic device with the above configuration can perform various functions by having the CPU II perform predetermined processing in accordance with the input from the input keys 3 to 8 based on the operation program in the ROMI 4, and displaying the processing results on the display unit 2. Execute.

この電子機器における日数計算機能の具体的な動作を第
1図のフローチャートと第5図の表示例に基づいて説明
する。
The specific operation of the number of days calculation function in this electronic device will be explained based on the flowchart of FIG. 1 and the display example of FIG. 5.

カレンダキー3aを押してカレンダモードに入ると、ま
ずステップ(以下「S」という)lにおいて、RTC1
6から現在の日付を読み込み、次に、プログラムとして
構成された暦に基づき、その日付が含まれる月のカレン
ダを表示部2に表示させる(S2)。また、この際、表
示部2上のカーソル2aが現在の日付を示す数字の上に
配置される。従って、例えば当日が1989年1月1日
の場合、第5図(a)のように表示されることになる。
When you press the calendar key 3a to enter the calendar mode, first in step (hereinafter referred to as "S") l, the RTC1
The current date is read from 6, and then, based on the calendar configured as a program, the calendar of the month that includes that date is displayed on the display unit 2 (S2). Also, at this time, the cursor 2a on the display section 2 is placed on the number indicating the current date. Therefore, for example, if the current day is January 1, 1989, the display will be as shown in FIG. 5(a).

このカレンダが表示されると、日数計算キー3Cが押さ
れたかどうかの判断を行う(S3)。また、この日数計
算キー3Cが押されていない場合には、呼出キー3eが
押されたかどうかの判断を行う(S4)。さらに、この
呼出キー3eも押されていない場合には、カーソルキー
6が押されたかどうかの判断を行う(S5)。
When this calendar is displayed, it is determined whether the number of days calculation key 3C has been pressed (S3). If the number of days calculation key 3C is not pressed, it is determined whether the call key 3e is pressed (S4). Further, if the call key 3e is not pressed either, it is determined whether the cursor key 6 has been pressed (S5).

ここでは、まず目的の日付を指定する必要があるので、
呼出キー3e又はカーソルキー6が押されることになる
。呼出キー30が押されると、そのキーが示す方向に応
じて、表示部2の表示を先月又は今月のカレンダに書き
換える(S6)。この際、表示部2上のカーソル2aは
、新たな月の1日を示す数字の上に配置される。そして
、新たなカレンダが表示されると再びS3に戻るので、
このS3、S4及びS6の処理を繰り返すことにより、
目的の日付の年及び月を指定し、その月のカレンダを表
示させることができる。
Here, you first need to specify the desired date, so
The call key 3e or the cursor key 6 will be pressed. When the call key 30 is pressed, the display on the display section 2 is rewritten to last month's or this month's calendar depending on the direction indicated by the key (S6). At this time, the cursor 2a on the display section 2 is placed on the number indicating the first day of the new month. Then, when a new calendar is displayed, it returns to S3 again, so
By repeating the processes of S3, S4 and S6,
By specifying the year and month of the desired date, you can display the calendar for that month.

このようにしである月のカレンダが表示されると、次に
カーソルキー6を押してカーソル2aを移動させ、目的
の日付の日を指定することになる、カーソルキー6が押
されると、表示部2上のカーソル2aが移動する(S7
)。この際、カーソル2aは、押されたカーソルキー6
が右キー6dである場合に翌日の日付に移動し、下キー
6bである場合に次週の同じ曜日の日付に移動する。ま
た、左キー6cでは、前日の日付に戻り、上キー6aの
場合には先週の同じ曜日の日付に移動する。そして、カ
ーソル2aがいずれかの方向に移動すると再びS3に戻
るので、このS3、S4、S5及びS7の処理を繰り返
すことにより、目的の日付上にカーソル2aを移動させ
、その日付を指定することができる。例えば、上記の例
において、同年2月10日が目的の日付である場合、呼
出キー3eの翌月方向を1回押して2月のカレンダを表
示させ、カーソルキー6における下キー6bを1回押し
右キー6dを2回押す(又はカーソル2aが2日分移動
する間、押し続ける)ことにより、第5図(b)に示す
ような表示を得ることができる。
When the calendar for a certain month is displayed in this way, the next step is to press the cursor key 6 to move the cursor 2a and specify the day of the desired date. The upper cursor 2a moves (S7
). At this time, the cursor 2a is moved to the pressed cursor key 6.
When the right key 6d is pressed, the button moves to the next day's date, and when the down key 6b is pressed, the button moves to the date of the same day of the week next week. Further, the left key 6c returns to the previous day's date, and the up key 6a moves to the date of the same day of the week last week. Then, when the cursor 2a moves in any direction, the process returns to S3, so by repeating the processes of S3, S4, S5, and S7, the cursor 2a can be moved to the desired date and the date specified. Can be done. For example, in the above example, if the target date is February 10th of the same year, press the next month direction of the call key 3e once to display the February calendar, and press the down key 6b of the cursor key 6 once to the right. By pressing the key 6d twice (or continuing to press it while the cursor 2a moves for two days), a display as shown in FIG. 5(b) can be obtained.

なお、目的の日付が今月である場合には、先に呼出キー
3eを押すことなく、直接カーソルキー6を押してカー
ソル2aをその日付に移動させる。また、ある月の1日
が目的の日付である場合には、呼出キー3eを押してそ
の月のカレンダを表示させれば、既にカーソル2aが1
日上にあるので、改めてカーソルキー6を押す必要はな
い。
If the target date is this month, the user directly presses the cursor key 6 to move the cursor 2a to that date without pressing the call key 3e first. If the desired date is the 1st of a month, press the call key 3e to display the calendar for that month, and the cursor 2a will already be at 1.
Since it is located above the sun, there is no need to press cursor key 6 again.

なお、S5においてカーソルキー6も押されなかった場
合には、カレンダモードで使用する他の入カキ−3〜8
の検出を行う。そして、ここでいずれの人カキ−3〜B
も押されていなかったときには、S3に戻り、再びいず
れかの入カキ−3〜8が押されるまで上記の処理を繰り
返すことになる。また、いずれかの人カキ−3〜8が押
された場合には、そのキーに対応する処理が実行される
ことになる。
Note that if cursor key 6 is not pressed in S5, other input keys 3 to 8 used in calendar mode are pressed.
Detection is performed. And here, either person oyster-3~B
If none of the input keys have been pressed, the process returns to S3 and the above process is repeated until any of the input keys 3 to 8 is pressed again. Further, if any of the keys 3 to 8 is pressed, the process corresponding to that key will be executed.

目的の日付上にカーソル2aが移動した状態で、S3に
おいて日数計算キー3Cが押されると、まず表示された
カレンダの年及び月とカーソル2aが位置する日とから
なる日付と、RTC16から得た現在の日付をRAM1
5上の所定のアドレス等にセットしくS8)、次に、こ
れらの日付に基づいて日数計算を行う(S9)。ここで
の日数の計算は、ROM14に格納された日数計算のた
めのプログラムルーチンを呼び出すことによって行われ
る。そして、このルーチンは、プログラムとして構成さ
れた暦に基づいて、上記2つの日付間の日数を計算する
When the number of days calculation key 3C is pressed in S3 with the cursor 2a moved to the target date, first the date consisting of the year and month of the displayed calendar, the day on which the cursor 2a is located, and the date obtained from the RTC 16 are calculated. Save the current date to RAM1
Then, the number of days is calculated based on these dates (S9). The calculation of the number of days here is performed by calling a program routine for calculating the number of days stored in the ROM 14. This routine then calculates the number of days between the two dates based on a programmatically configured calendar.

日数の計算が完了すると、表示部2をこの計算結果の表
示に書き換える(SIO)。上記1月1日と2月10日
の例では計算結果が40日となるので、表示部2には、
第5図(C)に示すように、この日数がメツセージと共
に表示される。そして、この日数の表示が行われると、
再びS3に戻ってキー人力待ちとなる。
When the calculation of the number of days is completed, the display unit 2 is rewritten to display the calculation result (SIO). In the above example of January 1st and February 10th, the calculation result is 40 days, so the display section 2 shows
As shown in FIG. 5(C), this number of days is displayed together with the message. And when this number of days is displayed,
The process returns to S3 and waits for key personnel.

上記処理の結果、ユーザは、目的の日付をカレンダ上で
6’i認した際に、その日付上にカーソル2aを移動さ
せ日数計算キー3Cを押すという簡単な操作を行うだけ
で、当日から目的の日までの日数を容易に知ることがで
きる。
As a result of the above processing, when the user recognizes the desired date on the calendar, he or she can move the cursor 2a over the date and press the number of days calculation key 3C, and the user can start the desired date from that day. You can easily find out the number of days until the next day.

また、上記日数計算例における第5図(a)の状態から
、例えば呼出キー3eにより先月のカレンダを表示させ
、カーソルキー6によって10日を指定すると、第5図
(d)に示すような表示となる。そして、ここで日数計
算キー3Cが押されると、上記の例と同様に88及びS
9の処理によって日数の計算が行われる。ただし、この
場合は、計算結果がマイナスの値となるので、SIOで
の表示部2の表示は、第5図(e)に示すように、日数
にマイナス符号を付したものとなる。従って、ユーザは
、目的の日付から現在までの経過日数を知ることができ
る。
In addition, from the state shown in FIG. 5(a) in the above example of calculating the number of days, for example, if you display last month's calendar using the call key 3e and specify the 10th day using the cursor key 6, a display as shown in FIG. 5(d) is displayed. becomes. Then, when the number of days calculation key 3C is pressed here, 88 and S
The number of days is calculated by the process in step 9. However, in this case, since the calculation result is a negative value, the display on the display section 2 in the SIO will be the number of days with a negative sign, as shown in FIG. 5(e). Therefore, the user can know the number of days that have passed since the target date.

〔発明の効果〕〔Effect of the invention〕

本発明に係る電子機器の日数計算装置は、以上のように
、操作内容を入力する入力部と、この入力に従って所定
の処理・を行う処理部と、この処理結果を表示する表示
部とを有し、少なくとも、暦に基づいて現在の日付を計
時する計時機能と、暦に基づいて指示された範囲のカレ
ンダを表示部に表示するカレンダ機能とが設けられた電
子機器において、カレンダ機能によって表示されたカレ
ンダ上で任意の日付を指定する日付指定手段と、ある範
囲のカレンダが表示され、かついずれかの日付が指定さ
れている場合に、入力部から所定の入力があると、表示
されているカレンダ上の指定された日付と計時手段から
の現在の日付とを処理部に取り込む日付取込手段と、こ
の日付取込手段が2つの日付を処理部に取り込むと、暦
に基づいて現在の日付から指定された日付までの日数を
計算する日数計算手段と、この計算手段が日数を計算す
ると、その計算結果を表示部で表示させる日数表示手段
とからなることを特徴としている。
As described above, the electronic device days calculation device according to the present invention includes an input section for inputting operation details, a processing section for performing predetermined processing according to the input, and a display section for displaying the processing results. However, in an electronic device that is equipped with at least a timekeeping function that measures the current date based on a calendar, and a calendar function that displays a calendar within a specified range based on the calendar, A date specifying means for specifying an arbitrary date on a calendar, and when a certain range of calendars are displayed and any date is specified, when a predetermined input is made from the input section, the date is displayed. A date importing means imports a specified date on the calendar and the current date from the timekeeping means into the processing unit, and when the date importing means imports the two dates into the processing unit, the current date is determined based on the calendar. It is characterized by comprising a number of days calculation means for calculating the number of days from to a specified date, and a number of days display means for displaying the calculation result on a display unit when the calculation means calculates the number of days.

これにより、カレンダが表示され、かついずれかの日付
が指定されている場合に、簡単な操作を行うことによっ
て、日付入力を行うことなく容易に日数を計算すること
ができるようになる。
As a result, when a calendar is displayed and any date is specified, the number of days can be easily calculated by performing a simple operation without inputting the date.

従って、本発明は、日数計算を必要とする際のほとんど
の場合に、簡単な操作で日数計算装置を利用することが
できるという効果を奏する。
Therefore, the present invention has the effect that the number of days calculation device can be used with simple operations in most cases when calculation of the number of days is required.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図乃至第5図は本発明の一実施例を示すものであっ
て、第1図は日数計算装置の動作を説明するためのフロ
ーチャート、第2図は日数計算装置を有する電子機器の
斜視図、第3図は電子機器の見開きの平面図、第4図は
電子機器における制御部のブロック図、第5図は電子機
器における表示部の表示例を示すものであって、同図(
a)〜(C)はそれぞれ将来のカレンダ上で日数を計算
した際の各表示を示す表示部の平面図、同図(d)及び
(e)はそれぞれ過去のカレンダ上で日数を計算した際
の各表示を示す表示部の平面図である。 2は表示部、2aはカーソル、3〜8は入カキ−(入力
部)、3aはカレンダキー 30は日数計算キー、3e
は呼出キー、6はカーソルキー11はCPU、16はR
TCである。 第5図(a) 第5図(b) 第5図(c) 第5図(d) 第5図(e)
1 to 5 show an embodiment of the present invention, in which FIG. 1 is a flowchart for explaining the operation of the days calculation device, and FIG. 2 is a perspective view of an electronic device having the days calculation device. 3 is a two-page plan view of the electronic device, FIG. 4 is a block diagram of the control section in the electronic device, and FIG. 5 is a display example of the display section of the electronic device.
a) to (C) are plan views of the display section showing each display when the number of days is calculated on the future calendar, and (d) and (e) are plan views of the display when the number of days is calculated on the past calendar, respectively. FIG. 3 is a plan view of the display unit showing each display. 2 is the display section, 2a is the cursor, 3 to 8 are the input keys (input section), 3a is the calendar key, 30 is the number of days calculation key, 3e
is the call key, 6 is the cursor key 11 is the CPU, 16 is the R
It is TC. Figure 5(a) Figure 5(b) Figure 5(c) Figure 5(d) Figure 5(e)

Claims (1)

【特許請求の範囲】 1、操作内容を入力する入力部と、この入力に従って所
定の処理を行う処理部と、この処理結果を表示する表示
部とを有し、少なくとも、暦に基づいて現在の日付を計
時する計時機能と、暦に基づいて指示された範囲のカレ
ンダを表示部に表示するカレンダ機能とが設けられた電
子機器において、 カレンダ機能によって表示されたカレンダ上で任意の日
付を指定する日付指定手段と、ある範囲のカレンダが表
示され、かついずれかの日付が指定されている場合に、
入力部から所定の入力があると、表示されているカレン
ダ上の指定された日付と計時手段からの現在の日付とを
処理部に取り込む日付取込手段と、この日付取込手段が
2つの日付を処理部に取り込むと、暦に基づいて現在の
日付から指定された日付までの日数を計算する日数計算
手段と、この計算手段が日数を計算すると、その計算結
果を表示部で表示させる日数表示手段とからなることを
特徴とする電子機器の日数計算装置。
[Claims] 1. It has an input section for inputting operation details, a processing section for performing predetermined processing according to the input, and a display section for displaying the processing results, and at least displays the current information based on the calendar. In an electronic device that is equipped with a timekeeping function that measures the date and a calendar function that displays a specified range of calendars on the display based on the calendar, specifying any date on the calendar displayed by the calendar function. If a date specification method and a certain range of calendars are displayed, and any date is specified,
When a predetermined input is received from the input section, a date importing means imports the specified date on the displayed calendar and the current date from the clocking means into the processing section, and this date importing means inputs two dates. When input into the processing section, a days calculation means calculates the number of days from the current date to a specified date based on the calendar, and when this calculation means calculates the number of days, the calculation result is displayed on the display section. 1. A day counting device for an electronic device, comprising: means.
JP63240486A 1988-09-26 1988-09-26 Number of days calculator for electronic apparatus Pending JPH0289153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63240486A JPH0289153A (en) 1988-09-26 1988-09-26 Number of days calculator for electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63240486A JPH0289153A (en) 1988-09-26 1988-09-26 Number of days calculator for electronic apparatus

Publications (1)

Publication Number Publication Date
JPH0289153A true JPH0289153A (en) 1990-03-29

Family

ID=17060231

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63240486A Pending JPH0289153A (en) 1988-09-26 1988-09-26 Number of days calculator for electronic apparatus

Country Status (1)

Country Link
JP (1) JPH0289153A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5289393A (en) * 1991-08-06 1994-02-22 Sharp Kabushiki Kaisha Portable electronic apparatus
US5796397A (en) * 1994-11-04 1998-08-18 Sharp Kabushiki Kaisha Information processing device with input data sharing among several applications

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5289393A (en) * 1991-08-06 1994-02-22 Sharp Kabushiki Kaisha Portable electronic apparatus
US5796397A (en) * 1994-11-04 1998-08-18 Sharp Kabushiki Kaisha Information processing device with input data sharing among several applications

Similar Documents

Publication Publication Date Title
JPH09319717A (en) Information processor
JPS6066298A (en) Information processor
JPH01288894A (en) Calendar display device with graphic symbol
JPH0289153A (en) Number of days calculator for electronic apparatus
JPS5919880A (en) Clock device
JPH0289152A (en) Number of days calculator for electronic apparatus
JPH04235658A (en) Compact electronic computer with graph display function
JPS61229149A (en) Electronic equipment
JP2791114B2 (en) Electronics
JPH04219858A (en) Small-sized electronic computer with graph display function
JP3224880B2 (en) Data processing device and display control method
JPS63145566A (en) Schedule management equipment
JPS605334A (en) Programming device
JPS5924361A (en) Display system of date
JP2680736B2 (en) Electronic device having schedule management function
JPS6290744A (en) Classified-data storing device
JPS60122459A (en) Electronic device
JPS63145565A (en) Schedule management equipment
JPH1097502A (en) Information processor
JPH06161966A (en) Data processor and display control method
JPH0251090A (en) Time table display device
JPH0630089B2 (en) Electronic device
JPH0895925A (en) Schedule managing device
JPH0535688A (en) Portable data processor
JPH09107306A (en) Portable radio equipment