JPS59149547A - 6-weekday arithmetic processor - Google Patents

6-weekday arithmetic processor

Info

Publication number
JPS59149547A
JPS59149547A JP58013501A JP1350183A JPS59149547A JP S59149547 A JPS59149547 A JP S59149547A JP 58013501 A JP58013501 A JP 58013501A JP 1350183 A JP1350183 A JP 1350183A JP S59149547 A JPS59149547 A JP S59149547A
Authority
JP
Japan
Prior art keywords
day
data
rokuyo
calendar
weekdays
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
JP58013501A
Other languages
Japanese (ja)
Inventor
Hiroshi Oda
小田 広志
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP58013501A priority Critical patent/JPS59149547A/en
Publication of JPS59149547A publication Critical patent/JPS59149547A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/02Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
    • G06F15/025Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Calculators And Similar Devices (AREA)

Abstract

PURPOSE:To obtain six weekdays in a simple way by storing previously the data on the six weekdays in an ROM and calculating the meaning of an input date of solar calendar through an operation. CONSTITUTION:An ROM 1 stores the 6-weekday data on the 1st day of each month of the solar calendar, the relation between the 1st day of the lunar calendar and its corresponding day of the solar calendar and arithmetic processing programs of the six week days of the 1st day of the lunar calendar and the six weekdays respectively. The date to be obtained from an input part 4 is supplied in the solar calendar. Then the date is stored in an RAM 3. A central processing unit 2 decides whether the corresponding date is set before or after the 1st day of the lunar calendar. The processings to calculate the weekdays centering on the 1st day of the lunar calendar are different from each other. The codes are set opposite to each of six weekdays [a lucky day set at (0), an unlucky day set at (1), etc.], and the six weekdays of the corresponding day are calculated from the periodicity of the six weekdays.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は大安、仏滅等の六曜を読み出すための六曜演算
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a rokuyo arithmetic processing device for reading rokuyo such as Daian and Butsumetsu.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

例えば結婚式の予定日などを決める場合は、その日が大
安、仏滅等の六曜のどれに当たるかを迅速に知シたい場
合がある。
For example, when deciding on a scheduled date for a wedding, it may be necessary to quickly find out which of the Rokuyo days, such as Taian or Butsumetsu, falls on that day.

〔発明の目的〕[Purpose of the invention]

本発明は上記実情に鐵みてなされたもので、上記要望を
簡単に満し得る六曜演算処理装置を提供しようとするも
のである。
The present invention has been made in consideration of the above-mentioned circumstances, and it is an object of the present invention to provide a rokuyo arithmetic processing device that can easily satisfy the above-mentioned demands.

〔発明の概要〕[Summary of the invention]

本発明は、各年月日のついたちの六曜及び朔の日(つい
たち)とその日の六曜を記憶しておくことにより、何年
例月何日(太陽歴)の六曜を簡単に得られるよりにした
ものである。
The present invention allows you to easily obtain the Rokuyo of any year, month and day (solar calendar) by memorizing the Rokuyo of each year, month, day and the first day of the month, and the Rokuyo of that day. This was done because it was better to do so.

〔発明の実施例〕[Embodiments of the invention]

以下図面を参照して本発明の一実施例を説明する。第1
図は同実施例の構成を示すプロ多り図で、ROM1には
、太陽歴の各月のついたちの六曜データ、旧暦の朔の月
が太陽歴の例日に尚たるか、その六曜データ及び第2図
の六曜演算処理プログラム等が記憶されている。CPU
 (中央処理装置)2はROM 1の命令に従って六曜
演算処理を行なう。RAM 3はスイッチ(入力部)4
からの入力データ、CPU 2での演算結果等を格納す
る。入出力部5は入力部4からのデータ′fcRAM 
、?へ転送したり、六曜演算結果のデータを表示部7へ
転送したシする。入力部4はスイッチ等により、何年何
月例日(太陽歴)の六曜データの割シ出し要求を行なう
。デコーダ8は表示データのデコードを行なう。表示部
7は六曜の表示を行なう。分周回路9は発振器10の出
力をもとに、CPU’、?’!i動かすためのクロック
パルスを送出する。
An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a professional diagram showing the configuration of the same embodiment. ROM1 contains data on the Rokuyo of each month in the solar calendar, whether the first month of the lunar calendar falls on the regular day of the solar calendar, Data and the rokuyo arithmetic processing program shown in FIG. 2 are stored. CPU
(Central processing unit) 2 performs rokuyo arithmetic processing according to instructions from ROM 1. RAM 3 is switch (input section) 4
Input data from the CPU 2, calculation results from the CPU 2, etc. are stored. The input/output section 5 receives data from the input section 4' fcRAM.
,? or transfer the data of the Rokuyo calculation results to the display unit 7. The input unit 4 uses a switch or the like to request the calculation of the Rokuyo data of the year, month, and day (solar calendar). Decoder 8 decodes display data. The display section 7 displays Rokuyo. Based on the output of the oscillator 10, the frequency dividing circuit 9 divides the CPU', ? '! Send out a clock pulse to move i.

以下第2図に従がい、−例として゛1982年1月7日
″の六曜全求める方法を説明する。まず入力部4から1
982年1月7日の六曜は何かという要求をRAM 3
に記憶させ、CPU2は上記“7日″が朔の日取上かを
判断する。即ち旧暦と太陽歴との対応表れよれば、朔の
日は太陽歴の1月25日だから7〈25で“No″(否
)という結果が出る。上記対応表からいうと1982年
1月1日は赤口だからこの日をコードでいうと11”で
あシ(予め大安全゛0″、赤口を゛1″、先勝を′2”
、左列を′3”、先負を14”、仏滅を5”と仮定する
)、この′1#を六曜データとしてセットする。次にこ
の六曜データから1”を引< (1−1=0)つまシ六
曜には′0”が入る。次にCPU 2は上記″1月7日
”という日から”6#を引き、その減算結果が負だった
らその日に”6”を加算する。ここでは” 7−6=1
 ” 、 ” 1−6=−5”で負だから’−5+6 
=1”で、これを日のデータとしてセットする。次に前
記六曜のセット値と前記演算結果の日のデータ全加算し
てその結果を六曜データとしてセット、つまシ″’0+
1=1”を六曜データとしてセットする。次にこの六曜
データと′6#を比較すると、六曜データが小だから上
記“1#=赤口で、これが上記1982年1月7日の六
曜データとして表示部7で表示されるものである。
Below, according to Fig. 2, we will explain how to obtain the Rokuyo total of "January 7, 1982" as an example. First, from the input section 4 to 1
Request what Rokuyo is on January 7, 982 in RAM 3
The CPU 2 determines whether the above "7th day" is on the first day of the month. That is, according to the correspondence between the lunar calendar and the solar calendar, the first day of the month is January 25th in the solar calendar, so the result of 7<25 is "No". According to the above correspondence table, January 1st, 1982 is Akakuchi, so the code for this day is 11".
, assume that the left column is '3'', the leading negative is 14'', and Butsumetsu is 5''), and set this '1# as rokuyo data. Next, subtract 1'' from this rokuyo data < (1-1 = 0) '0' is entered in the rokuyo of the tsumashi.Next, CPU 2 subtracts '6#' from the above date 'January 7th', and if the subtraction result is negative, it adds '6' to that day. do. Here, 7-6=1
" , "1-6=-5" is negative, so '-5+6
= 1'' and set this as day data.Next, add all the day data of the above calculation result to the set value of Rokuyo and set the result as Rokuyo data.
1=1" as the Rokuyo data. Next, when comparing this Rokuyo data with '6#, we find that since the Rokuyo data is small, the above "1#=Akaguchi" is the Rokuyo data of January 7, 1982. This is displayed on the display unit 7 as day of the week data.

次に他の例として、”1982年1月31日”の六曜を
求める方法を説明する。上記−例の場合と同様に′31
#は上記対応表の′25#よシ犬だから、今度の場合は
@31−25+1= 7”を日のデータとしてセットす
る。次に朔の日(太陽歴の1月25日)の六曜つまシこ
の日は先勝だからコード″′2#全セットし、”2−1
=1”を六曜データとしてセットする。次にCPU 2
は上記日のデータ67#によシ、″7−6=1”’1−
6=−5#の演算を行ないこれは負の値だから@−5+
6=1”の演算結果は日のデータとしてセットされる。
Next, as another example, a method for determining the Rokuyo of "January 31, 1982" will be explained. Above - as in the example '31
# is '25# in the above correspondence table, so in this case, @31-25+1=7'' is set as the day data.Next, the Rokuyo of the first day of the month (January 25th in the solar calendar) Since this day is the first win, I set all the codes ``2#'' and ``2-1''
= 1" as Rokuyo data. Next, CPU 2
is based on the data 67# of the above day, ``7-6=1'''1-
Performs the calculation 6=-5#, which is a negative value, so @-5+
The calculation result of 6=1'' is set as day data.

次に上記セットされた六曜データ”1#と日のデータ″
1#が加算され、その結果の値°°2#が六曜データと
してセットされる。
Next, the Rokuyo data set above “1# and day data”
1# is added, and the resulting value °°2# is set as Rokuyo data.

このデータはCPU 2で′6”と比較され、この場合
″′2#は′6”よシ小だから、上記六曜データ″2#
つまシ先勝がそのまま1982年1月31日の六曜とし
て表示部7で表示されるものである。
This data is compared with '6'' in CPU 2, and in this case, since '2# is smaller than '6', the above Rokuyo data '2#
The first win of the month is displayed as it is on the display section 7 as the Rokuyo of January 31, 1982.

以上のように、太陽歴の各月のついたちの六曜データ、
朔の日が太陽歴の何日に当たるかとその六曜を記憶して
おけば、太陽歴の各年各月各日とその六曜との膨大な対
応表を□記憶しておかなくても、第2図の処理プログラ
ムで、太陽歴の所望の年月日の六曜が求められるもので
ある。
As mentioned above, the Rokuyo data of each month in the solar calendar,
If you memorize what day in the solar calendar the first day of the month falls on and its six days of the year, you can do it without having to memorize a huge correspondence table between each day of each year and month of the solar calendar and its six days of the year. The processing program shown in FIG. 2 is used to obtain the Rokuyo of a desired date in the solar calendar.

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

以上説明した如く本発明によれば、各年各月のついたち
の六曜及び朔の日とその六曜を記憶しておくだけで、太
陽歴の所望の年月日の六曜が求められるから、構成が簡
単化された六曜演算処理装置が提供できるものである。
As explained above, according to the present invention, the Rokuyo of a desired year, month, and day in the solar calendar can be found by simply remembering the Rokuyo and the first day of each month of each year and their Rokuyo. , it is possible to provide a rokuyo arithmetic processing device with a simplified configuration.

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

第1図は本発明の一実施例を示すブロック構成図、第2
図は同構成の作用を示すフローチャートである。 1・・・ROM、2・・・CPU、3・・・RAM、、
4・・・入力部、5・・・入出力部、7・・・表示部、
8・・・デコーダ。 出願人代理人  弁理士 鈴 江 武 彦第1図 第2図
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
The figure is a flowchart showing the operation of the same configuration. 1...ROM, 2...CPU, 3...RAM,,
4... Input section, 5... Input/output section, 7... Display section,
8...Decoder. Applicant's representative Patent attorney Takehiko Suzue Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] 太陽歴の各月のついたちの六曜データ、旧暦の朔の日が
太陽歴の何日に当たるか、その六曜データ及び六曜演算
処理プログラムを記憶するROMと、得たい太陽歴の年
月日の六曜データの割シ出し要求を行なう入力部と、前
記得たい太陽歴の年月日データの記憶を行なう記憶部と
、該記憶部に前記得たい太陽歴の年月日データを記憶さ
せ該データと前記ROMの読み出しデータをもとに六曜
側シ出し演算を行なう中央処理装置と、この中央処理装
置で得た六曜データの表示を行なう表示部とを具備した
ことを特徴とする六曜演算処理装置。
A ROM that stores the Rokuyo data of each month in the solar calendar, which day of the solar calendar the first day of the lunar calendar falls on, the Rokuyo data, a Rokuyo calculation processing program, and the date of the solar calendar you want to obtain. an input unit for requesting the allocation of six days of the year data; a storage unit for storing year, month, and day data of the solar calendar to be obtained; and a storage unit for storing the year, month, and day data of the solar calendar to be obtained. The present invention is characterized by comprising a central processing unit that performs a rokuyo side calculation based on the data and read data of the ROM, and a display section that displays the rokuyo data obtained by the central processing unit. Rokuyo arithmetic processing unit.
JP58013501A 1983-01-29 1983-01-29 6-weekday arithmetic processor Pending JPS59149547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58013501A JPS59149547A (en) 1983-01-29 1983-01-29 6-weekday arithmetic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58013501A JPS59149547A (en) 1983-01-29 1983-01-29 6-weekday arithmetic processor

Publications (1)

Publication Number Publication Date
JPS59149547A true JPS59149547A (en) 1984-08-27

Family

ID=11834865

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58013501A Pending JPS59149547A (en) 1983-01-29 1983-01-29 6-weekday arithmetic processor

Country Status (1)

Country Link
JP (1) JPS59149547A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0261496A2 (en) * 1986-09-24 1988-03-30 Seiko Instruments Inc. Electronic memorandum
JPH06187366A (en) * 1992-12-16 1994-07-08 Fujitsu Sooshiaru Sci Raboratori:Kk Acquiring device for calender day for fortunetelling

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54118141A (en) * 1978-03-07 1979-09-13 Sharp Corp Electronic apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54118141A (en) * 1978-03-07 1979-09-13 Sharp Corp Electronic apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0261496A2 (en) * 1986-09-24 1988-03-30 Seiko Instruments Inc. Electronic memorandum
JPH06187366A (en) * 1992-12-16 1994-07-08 Fujitsu Sooshiaru Sci Raboratori:Kk Acquiring device for calender day for fortunetelling

Similar Documents

Publication Publication Date Title
CN110659998A (en) Data processing method, data processing apparatus, computer apparatus, and storage medium
JPS59149547A (en) 6-weekday arithmetic processor
CN87104334A (en) World timepiece
JP6952927B1 (en) Location prediction device, location prediction method, and location prediction program
JP2969973B2 (en) Time data comparison processor
JPH0675068A (en) Automatic day of the week calculator
JPH0720634Y2 (en) Date data storage device
JPS6225799Y2 (en)
JP2652973B2 (en) Image processing device
JPS6012185Y2 (en) data storage device
JPS6225208B2 (en)
JPH0272480A (en) Mean value arithmetic means
JPH04195676A (en) Calendar information arithmetic unit
CN115910252A (en) Method and device for configuring gauge
JPS62123393A (en) Apparatus for setting local time in application
JPS61134832A (en) Automatic calculation program for scale in production mode of graph or the like
JPS61128386A (en) Arithmetic unit for normalization
JPS61269766A (en) Small-sized electronic computer having formula calculating function
JP2000122998A (en) Method and device for calculating day of week
JPS6133228B2 (en)
JPS61162883U (en)
JPS5962174A (en) Electronic apparatus
JPH02110748A (en) Editing system for transaction execution time series chart
JPH0370026A (en) Function demonstration device for computer system
JPH0555251U (en) Portable electronic devices