Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2884377B2 - Electronic device with day display - Google Patents
[go: Go Back, main page]

JP2884377B2 - Electronic device with day display - Google Patents

Electronic device with day display

Info

Publication number
JP2884377B2
JP2884377B2 JP13924791A JP13924791A JP2884377B2 JP 2884377 B2 JP2884377 B2 JP 2884377B2 JP 13924791 A JP13924791 A JP 13924791A JP 13924791 A JP13924791 A JP 13924791A JP 2884377 B2 JP2884377 B2 JP 2884377B2
Authority
JP
Japan
Prior art keywords
calendar
data
day
julian
gregorian
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
JP13924791A
Other languages
Japanese (ja)
Other versions
JPH04362684A (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.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments Inc
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 Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP13924791A priority Critical patent/JP2884377B2/en
Publication of JPH04362684A publication Critical patent/JPH04362684A/en
Application granted granted Critical
Publication of JP2884377B2 publication Critical patent/JP2884377B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)
  • Calculators And Similar Devices (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、カレンダ付電子機器に
関し、特に曜表示付電子機器に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic device with a calendar, and more particularly to an electronic device with a day display.

【0002】[0002]

【従来の技術】従来、時計や電子手帳などの電子機器に
カレンダ機能が組み込まれているもので日付と共に曜を
表示するものが知られている。これらの機器では、通常
プログラミングによって曜を算出している。その算出方
法は、年のはじめつまり1月1日の曜日が28年周期で
周期的に変化することを利用し、表示すべき年の1月1
日の曜指数を選出し、更に表示すべき月の1日と1月1
日との曜日のずれ量を選出し、これらを加え、更に表示
すべき日を加えた数の7の剰余を求めることにより表示
すべき日付の曜指数を求め、曜日に変換して表示してい
た。
2. Description of the Related Art Heretofore, there has been known an electronic device such as a clock or an electronic organizer which has a calendar function and displays the day of the week together with the date. These devices usually calculate the day of the week by programming. The calculation method is based on the fact that the beginning of the year, that is, the day of the week of January 1 changes periodically in a 28-year cycle,
The day of the week index is selected and the 1st and 1st of the month to be displayed further
The amount of deviation of the day of the week from the day is selected, and these are added. Further, the remainder of the number obtained by adding the day to be displayed is obtained, thereby obtaining the day index of the day to be displayed. Was.

【0003】[0003]

【発明が解決しようとする課題】西暦は、古代ローマ時
代に制定されたユリウス暦が1582年10月4日迄用
いられ10月4日の次の日を10月15日とし、以後グ
レゴリオ暦が用いられている。ユリウス暦とは、1年を
365.25日とし4年に1回の閏年を設けたものであ
るが実際の1年は、365.2422…日であるため1
6世紀の初頭には、実際の太陽の運航と10日以上のず
れが生じてしまった。これを是正したのがグレゴリオ1
3世による改暦であり以降採用されたグレゴリオ暦であ
る。
In the Christian calendar, the Julian calendar established in the ancient Roman period was used until October 4, 1582, and the next day after October 4 was October 15, and thereafter the Gregorian calendar was used. Used. In the Julian calendar, one year is 365.25 days, and one leap year is provided every four years. However, the actual year is 365.422.
At the beginning of the 6th century, there was a delay of more than 10 days from the actual operation of the sun. Gregorio 1 corrected this
The Gregorian calendar adopted by the third generation and adopted thereafter.

【0004】現在ではほぼ全世界的に使用されているグ
レゴリオ暦は、1年を365.2422日とし、4年に
1回の閏年を設ける事はユリウス暦と同様であるが例外
として100年で割り切れる年は平年とし、更に例外と
して400年で割り切れる年は閏年とするものである。
従来の手段は、このグレゴリオ暦に対応したものであっ
て以前の暦であるユリウス暦にはそのままでは対応でき
ない。このためカレンダ表示の範囲が1582年10月
の改暦時をまたぐ場合、従来の方法では演算することが
出来ないという課題を有していた。
At present, the Gregorian calendar, which is used almost all over the world, has a year of 365.422 days, and it is similar to the Julian calendar to provide a leap year once every four years. The divisible year is a normal year, and the exception is the leap year that is divisible by 400 years.
The conventional means corresponds to the Gregorian calendar, and cannot correspond to the Julian calendar which is the previous calendar as it is. For this reason, when the range of the calendar display is over the calendar change of October 1582, there is a problem that the calculation cannot be performed by the conventional method.

【0005】[0005]

【課題を解決するための手段】上記課題を解決するため
に、本発明においては、入力されたカレンダデータがユ
リウス暦実施中のデータであるか、グレゴリオ暦実施中
のデータであるか、ユリウス暦からグレゴリオ暦に改暦
する間のデータであるかを判別するカレンダデータ判別
手段と、カレンダデータがユリウス暦からグレゴリオ暦
に改暦する間であった場合、グレゴリオ暦の実施初日に
修正するカレンダデータ修正手段と、各々の暦に対応し
た演算式でユリウス通日を算出するユリウス通日算出手
段と、算出されたユリウス通日の7の剰余を算出する曜
指数算出手段を設けカレンダデータからユリウス通日を
演算しユリウス通日の7の剰余を求めることにより曜指
数を算出するようにした。
In order to solve the above-mentioned problems, according to the present invention, the input calendar data is data under the Julian calendar, data under the Gregorian calendar, or the Julian calendar. Calendar data discriminating means for discriminating whether the data is during the calendar change from the Julian calendar to the Gregorian calendar, and calendar data correcting means for correcting the first day of the Gregorian calendar when the calendar data is between the Julian calendar and the Gregorian calendar And a Julian day calculating means for calculating Julian day by an arithmetic expression corresponding to each calendar, and a day index calculating means for calculating the remainder of the calculated Julian day by providing Julian day from calendar data. The day of the week index is calculated by calculating and calculating the remainder of Julian day seven.

【0006】[0006]

【作用】上記のような構成により、カレンダデータがユ
リウス暦実施中のデータであってもグレゴリオ暦実施中
のデータであっても共通のプログラムにより曜指数を算
出することが出来る。
With the above configuration, the day of the week index can be calculated by a common program regardless of whether the calendar data is data in the Julian calendar or data in the Gregorian calendar.

【0007】[0007]

【実施例】本発明の実施例を図面に基づいて説明する。
図1は、本発明の機能ブロック図である。動作を簡単に
説明する。まずカレンダデータ入力手段1において年、
月、日からなるカレンダデータが各々のデータ入力手段
2〜4から入力され各データ記憶手段5〜7に記憶され
る。年入力データは西暦表示された年データとし、月入
力データは1〜12月までの太陽暦表示データ、日入力
データは1〜31日までのデータとする。
An embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a functional block diagram of the present invention. The operation will be briefly described. First, the year,
Calendar data consisting of month and day is input from each of the data input means 2 to 4 and stored in each of the data storage means 5 to 7. The year input data is year data displayed in the Christian era, the month input data is solar calendar display data from January to December, and the day input data is data from 1 to 31 days.

【0008】これらのカレンダデータは、カレンダデー
タ判別手段8に伝えられグレゴリオ暦実施中のデータで
あるか、ユリウス暦実施中のデータであるか、ユリウス
暦からグレゴリオ暦に改暦する間のデータであるかの判
別が行われる。具体的には、改暦が行われたのは、15
82年10月5日であり10月4日の次の日を10月1
5日と制定したことから入力されたカレンダデータがこ
の日以前のデータであるか、以後のデータであるか、ま
た以後のデータであった場合10月14日以前のデータ
であるか以後のデータであるかを判別する。
[0008] These calendar data are transmitted to the calendar data discriminating means 8 and are data during the implementation of the Gregorian calendar, data during the implementation of the Julian calendar, or data during the calendar change from the Julian calendar to the Gregorian calendar. Is determined. Specifically, 15
October 5, 1982, and the next day from October 4, October 1
Whether the calendar data entered since it was enacted on the 5th is data before or after this date, or if it is data after that, if it is data before October 14 or data after Is determined.

【0009】図3にカレンダデータ判別手段の詳細なフ
ローチャートを示す。カレンダデータ判別手段では、は
じめに年データが1582年であるかどうかを比較する
年データ比較手段20があり入力された年データが15
83年以降であればグレゴリオ暦実施中のデータと判断
される。反対に1581年以前であればユリウス暦実施
中のデータと判断される。入力された年データが158
2年であった場合のみ次の月データ比較手段21に進み
入力された月データの判別が行われる。月データ比較手
段21では、入力された月データが10月であるかどう
かを比較し9月以前であるばユリウス暦実施中のデー
タ、11月以降であればグレゴリオ暦実施中のデータと
判断される。入力された月データが10月であった場合
のみ次の日データ比較手段22に進み入力された日デー
タの判別が行われる。
FIG. 3 shows a detailed flowchart of the calendar data discriminating means. In the calendar data discriminating means, first, there is provided year data comparing means 20 for comparing whether year data is 1582 or not.
If it is after 1983, it is determined that the data is in the Gregorian calendar. Conversely, if it is before 1581, it is determined that the data is in the Julian calendar. Year data entered is 158
Only when it is two years, the process proceeds to the next month data comparing means 21 to determine the input month data. The month data comparing means 21 compares whether or not the input month data is October. If the month data is before September, it is determined that the data is under the Julian calendar and if it is after November, it is determined that the data is under the Gregorian calendar. You. Only when the input month data is October, the process proceeds to the next day data comparison means 22 to determine the input day data.

【0010】日データ比較手段22では、入力された日
データが4日以前のデータであるか、5日から14日迄
のデータであるか、15日以降のデータであるかが比較
される。入力された日データが4日以前であるばユリウ
ス暦実施中のデータ、15日以降であればグレゴリオ暦
実施中のデータと判断される。5日から14日迄のデー
タであった場合は、図1におけるカレンダ修正手段9に
おいて、入力された日データをグレゴリオ暦の実施初
日、この場合15日に修正されグレゴリオ暦実施中デー
タとして判断される。カレンダデータ判別手段Nによっ
てどちらの暦のデータかの判別がされるとこれらのデー
タはユリウス通日算出手段に送られ、各々の暦における
ユリウス通日演算が行われる。ここで使われるユリウス
通日演算式は公知のものであり(1)式で与えられる。
The day data comparing means 22 compares whether the input day data is data before 4 days, data from 5 days to 14 days, or data after 15 days. If the input date data is four days or earlier, it is determined that the data is under the Julian calendar, and if it is after 15 days, it is determined that the data is under the Gregorian calendar. If the data is from the 5th to the 14th, the input date data is corrected by the calendar correcting means 9 in FIG. 1 on the first day of the implementation of the Gregorian calendar, in this case, on the 15th, and is determined as the data during the implementation of the Gregorian calendar. You. When the calendar data determining means N determines which calendar the data belongs to, these data are sent to the Julian day calculation means, and the Julian day calculation in each calendar is performed. The Julian day-to-day arithmetic expression used here is a known one, and is given by Expression (1).

【0011】 ユリウス通日J=1720994.5 +INT{ 30.6001(m+ 1)}+B+C+D …(1) Y:年データ M:月データ D:日データ M>2:y=Y、m=M M=<2:y=Y−1、m=M+12 A=INT(y/100 ) ユリウス暦:B=0 グレゴリオ暦:B=2−A+INT(A/4) C=INT(365.25*y) (1)式で算出されたユリウス通日は、BC4713年
の1月1日を第1日目として現在までの経過日数を表し
たものである。ユリウス暦実施中のデータであってもグ
レゴリオ暦実施中のデータであっても(1)式で求める
ことが出来るため各々の暦のデータをユリウス通日とい
う共通の尺度にのせることが出来たことになる、ユリウ
ス通日算出手段10によって算出されたユリウス通日
は、曜算出手段11に送られる。曜算出手段11では、
ユリウス通日の7の剰余が求められる。ここでは7で割
った余りを求めているので詳しいフローは省略する。ユ
リウス通日の7の剰余はそのまま曜指数となりデータ表
示手段12に送られる。
[0011] Julian day J = 1720994.5 + INT {30.6001 (m + 1)} + B + C + D (1) Y: year data M: month data D: day data M> 2: y = Y, m = M M = <2: y = Y-1, m = M + 12 A = INT (y / 100) Julian calendar: B = 0 Gregorian calendar: B = 2-A + INT (A / 4) C = INT (365.25 * y) Calculated by equation (1) The given Julian day represents the number of days that have elapsed since January 1, BC 4713 as the first day. Either the data during the Julian calendar or the data during the Gregorian calendar can be obtained by equation (1), so that the data for each calendar could be put on a common scale called Julian day. The Julian day calculated by the Julian day calculating means 10 is sent to the day calculating means 11. In the day calculating means 11,
The remainder of Julian day 7 is required. Here, since the remainder after dividing by 7 is obtained, a detailed flow is omitted. The remainder of Julian day 7 is directly sent to the data display means 12 as a day index.

【0012】データ表示手段12内の曜日変換手段13
において曜指数と実際の曜日との変換が行われる。たと
えば1991年1月13日は、ユリウス通日24482
69日となりユリウス通日の7の剰余は5となる。19
91年1月13日は日曜日なので曜指数の5を日曜日と
対応させる。以下月曜日を6、火曜日を0、水曜日を
1、木曜日を2、金曜日を3、土曜日を4とし、これら
の対応を曜日変換手段13に記憶させておくことで曜指
数と曜日の変換を行うことが出来る。変換された曜日デ
ータは実際に表示を行う表示手段14に送られ液晶ディ
スプレーや指針等によりカレンダデータと共に表示され
る。具体的な変換例を図4に示す。
The day of the week conversion means 13 in the data display means 12
The conversion between the day of the week index and the actual day of the week is performed. For example, on January 13, 1991, Julius day 24482
It is 69 days, and the remainder of Julian day 7 is 5. 19
Since January 13, 1991 is Sunday, the day index of 5 is made to correspond to Sunday. Hereafter, Monday is set to 6, Tuesday is set to 0, Wednesday is set to 1, Thursday is set to 2, Friday is set to 3, and Saturday is set to 4, and these correspondences are stored in the day conversion means 13 to convert the day index and the day. Can be done. The converted day-of-week data is sent to the display means 14 for actual display, and is displayed together with the calendar data on a liquid crystal display, a pointer, or the like. FIG. 4 shows a specific conversion example.

【0013】具体例として1991年1月13日から1
月19日迄のユリウス通日、ユリウス通日の7の剰余及
び、対応する曜日を示した。またユリウス暦からグレゴ
リオ暦に改暦する間の具体例として1582年10月6
日を示す。この日はカレンダ修正手段9により1582
年10月15日に自動修正され変換される。これらの曜
算出手段を実現するためのハード構成図の1例を図2に
示す。外部入力スイッチ等からなりカレンダデータを入
力するデータ入力装置15、入力されたデータを記憶す
るRAM16、各手段の演算プログラムや、ユリウス通
日演算式、曜指数曜日変換データなどを記憶しているR
OM17、ROM17に記憶されているプログラムに従
い、RAM18、ROM17のデータを用いて演算する
CPU18、演算結果を液晶ディスプレーや指針などで
表示するデータ表示装置14、及びこれらデバイス間の
データのやり取りを行うバスライン19により構成され
る。
As a specific example, since January 13, 1991, 1
Julian day until July 19, the remainder of Julian day 7, and the corresponding day of the week are shown. Also, as a specific example during the calendar change from the Julian calendar to the Gregorian calendar, October 6, 1582
Indicates the day. This day was 1582 by the calendar correction means 9.
It is automatically corrected and converted on October 15, 2008. FIG. 2 shows an example of a hardware configuration diagram for realizing these day calculation means. A data input device 15 comprising external input switches and the like for inputting calendar data, a RAM 16 for storing the input data, and an arithmetic program for each means, a Julian day-of-day arithmetic expression, a day of the week exponent day conversion data, etc.
OM 17, a CPU 18 that performs calculations using data stored in the ROM 18 according to programs stored in the ROM 17, a data display device 14 that displays the calculation results on a liquid crystal display, a pointer, or the like, and a bus that exchanges data between these devices. It is constituted by a line 19.

【0014】[0014]

【発明の効果】以上説明したごとく、入力されたカレン
ダデータがユリウス暦実施中のデータであるか、グレゴ
リオ暦実施中のデータであるか、ユリウス暦からグレゴ
リオ暦に改暦する間のデータであるかを判別するカレン
ダデータ判別手段と、カレンダデータがユリウス暦から
グレゴリオ暦に改暦する間であった場合、グレゴリオ暦
の実施初日に修正するカレンダデータ修正手段と、各々
の暦に対応した演算式でユリウス通日を算出するユリウ
ス通日算出手段と、算出されたユリウス通日の7の剰余
を算出する曜指数算出手段を付加し、カレンダデータか
らユリウス通日、曜指数を算出することでプログラム容
量を増大させることなくユリウス暦実施中のデータでも
グレゴリオ暦実施中データでも正確な曜日を演算するこ
とが出来る。また誤って改暦間の日付を入力しても表示
内容はグレゴリオ暦実施初日に修正されて表示されるた
め誤った曜日を認識することがなくなる。
As described above, whether the input calendar data is data during the execution of the Julian calendar, data during the execution of the Gregorian calendar, or data during the calendar change from the Julian calendar to the Gregorian calendar A calendar data determining means for determining whether the calendar data is between the Julian calendar and the Gregorian calendar, and a calendar data correcting means for correcting the first day of the Gregorian calendar, and an arithmetic expression corresponding to each calendar. A Julian day calculating means for calculating the day of the week and a day index calculating means for calculating the remainder of the calculated Julian day 7 are added, and the program capacity is calculated by calculating the Julian day and the day index from the calendar data. An accurate day of the week can be calculated for both data during the Julian calendar and data during the Gregorian calendar without any increase. Even if the date between the calendar changes is erroneously input, the display content is corrected and displayed on the first day of the Gregorian calendar, so that an incorrect day of the week is not recognized.

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

【図1】本発明の機能ブロック図である。FIG. 1 is a functional block diagram of the present invention.

【図2】本発明のハード構成である。FIG. 2 shows a hardware configuration of the present invention.

【図3】本発明のカレンダデータ判別手段の概略フロー
図である。
FIG. 3 is a schematic flowchart of the calendar data discriminating means of the present invention.

【図4】本発明のデータ変換例図である。FIG. 4 is a diagram illustrating an example of data conversion according to the present invention.

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

1 カレンダデータ入力手段 8 カレンダデータ判別手段 9 カレンダデータ修正手段 10 ユリウス通日算出手段 11 曜指数算出手段 12 データ表示手段 1 Calendar data input means 8 Calendar data discriminating means 9 Calendar data correcting means 10 Julius day-of-day calculating means 11 Day index calculating means 12 Data display means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】(a)年入力手段、月入力手段、日入力手
段と各々のデータを一時的に記憶する記憶手段からなる
カレンダデータ入力手段と、(b)入力されたカレンダ
データがユリウス暦実施中のデータであるか、グレゴリ
オ暦実施中のデータであるか、ユリウス暦からグレゴリ
オ暦に改暦する間のデータであるかを判別するカレンダ
データ判別手段と、(c)カレンダデータがユリウス暦
からグレゴリオ暦に改暦する間のデータであった場合、
データをグレゴリオ暦の実施初日に修正するカレンダデ
ータ修正手段と、(d)各々の暦に対応した演算式でユ
リウス通日を算出するユリウス通日算出手段と、(e)
算出されたユリウス通日の7の剰余を算出する曜指数算
出手段と、(f)曜指数を曜日に変換し表示を行うデー
タ表示手段と、を有することを特徴とする曜表示付電子
機器。
1. Calendar data input means comprising (a) year input means, month input means, day input means and storage means for temporarily storing respective data, and (b) the input calendar data is a Julian calendar. Calendar data determining means for determining whether the data is in operation, during the Gregorian calendar, or during a calendar change from the Julian calendar to the Gregorian calendar; and (c) when the calendar data is based on the Julian calendar. If the data was during the Gregorian calendar change,
Calendar data correcting means for correcting data on the first day of implementation of the Gregorian calendar, (d) Julian day calculating means for calculating Julian day using an arithmetic expression corresponding to each calendar, and (e)
An electronic device with a day display, comprising: a day index calculating unit that calculates the remainder of the calculated Julian day of day 7; and (f) a data display unit that converts the day index into a day of the week and displays the day.
JP13924791A 1991-06-11 1991-06-11 Electronic device with day display Expired - Fee Related JP2884377B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13924791A JP2884377B2 (en) 1991-06-11 1991-06-11 Electronic device with day display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13924791A JP2884377B2 (en) 1991-06-11 1991-06-11 Electronic device with day display

Publications (2)

Publication Number Publication Date
JPH04362684A JPH04362684A (en) 1992-12-15
JP2884377B2 true JP2884377B2 (en) 1999-04-19

Family

ID=15240877

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13924791A Expired - Fee Related JP2884377B2 (en) 1991-06-11 1991-06-11 Electronic device with day display

Country Status (1)

Country Link
JP (1) JP2884377B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6116656A (en) * 1998-05-21 2000-09-12 Glassman; Terrence A. Perpetual coded calender

Also Published As

Publication number Publication date
JPH04362684A (en) 1992-12-15

Similar Documents

Publication Publication Date Title
JP2884377B2 (en) Electronic device with day display
US5596554A (en) Set operation in a timepiece having an electrooptical display
US4428681A (en) Date display device
US3939641A (en) Electronic circuit for individually correcting each digit of time displayed
JPS6254356A (en) Electronic tidal meter
JP3674957B2 (en) Calendar display device
JPH0754356B2 (en) Calendar device
JPS5926311Y2 (en) electronic clock
Uma et al. Aharga a in Makarandasāri ī and Other Indian Astronomical Texts
JPH02311788A (en) Monthly data calculation device
JPS6213636B2 (en)
JPH0161167B2 (en)
JPH02311786A (en) Monthly data display device
JPH0746146B2 (en) Electronic tide gauge
Bag Luni-solar calendar, Kali Ahargana and Julian days
JP3399217B2 (en) Measuring device and measuring method
JPS5912381A (en) Electronic time piece
JPS6040066B2 (en) Calendar information display method
JPS622557Y2 (en)
JPS6148871B2 (en)
JP5970630B1 (en) Indefinite time clock
JPH0530206B2 (en)
JPS60169791A (en) Global clock with calculator
JPH082701Y2 (en) Calendar display
JPS62182691A (en) Electronic time-piece with year changeover calendar

Legal Events

Date Code Title Description
S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees