JPH03233714A - Date conversion processing system - Google Patents

Date conversion processing system

Info

Publication number
JPH03233714A
JPH03233714A JP2030810A JP3081090A JPH03233714A JP H03233714 A JPH03233714 A JP H03233714A JP 2030810 A JP2030810 A JP 2030810A JP 3081090 A JP3081090 A JP 3081090A JP H03233714 A JPH03233714 A JP H03233714A
Authority
JP
Japan
Prior art keywords
date
internal
input
converts
conversion processing
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
JP2030810A
Other languages
Japanese (ja)
Inventor
Keiko Yamazaki
山崎 圭子
Hiromi Nomura
裕美 野村
Masahiro Nakai
中井 正弘
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.)
NEC Corp
NEC Software Kansai Ltd
Original Assignee
NEC Corp
NEC Software Kansai 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 NEC Corp, NEC Software Kansai Ltd filed Critical NEC Corp
Priority to JP2030810A priority Critical patent/JPH03233714A/en
Publication of JPH03233714A publication Critical patent/JPH03233714A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To provide the universality to a date conversion processing system by converting an input date into an intermediate date and then an internal date based on a date input form and calculating a date to the external date based on an arithmetic formula. CONSTITUTION:This date conversion processing system consists of a date work ing means 1-1, an internal/intermediate date conversion means 1-2, and a date arithmetic means 1-3. The means 1-1 converts an input date into an internal date shown in a dominical year based on an inputted date input form and also performing the working of the intermediate date based on an inputted date output form. The means 1-2 converts properly the converted intermediate date into an internal date showing the number of days passed form January 1st in 1 A.D. in accordance with an inputted arithmetic formula and then converts this internal date into an intermediate date. Then the means 1-3 calculates a date to the internal date by an arithmetic formula. Thus it is possible to make the programs accordant with each input condition cope with various formes with no correction.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は日付変換処理方式に、特に伝票、仕様書等のあ
らゆる文書における日付の出力形式(年・月・日の出力
順序、西暦・和暦の別)の変換処理方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a date conversion processing method, particularly to date output formats (year/month/day output order, Western calendar/Japanese calendar) in all documents such as slips and specifications. Concerning the conversion processing method for different calendars.

〔従来の技術〕[Conventional technology]

従来この種の日付変換処理方式では、日付の出力形式変
更を行う際、個々の文書について閏年などの面倒の計算
を行ない、出力形式を変更する処理を行っていた。
Conventionally, in this type of date conversion processing method, when changing the date output format, complicated calculations such as leap years are performed for each document, and the output format is changed.

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

上述した日付変換処理方式は、個々の文書について閏年
などの面倒な計算を行い、出力形式を変更する処理を行
っているので、 1、ソースプログラムのステップ数が大きくなり、作成
時間がかかる。
The date conversion processing method described above performs troublesome calculations such as leap years for each document and changes the output format, so: 1. The number of steps in the source program becomes large and it takes time to create.

2、汎用性を持たせるのが難しい。2. It is difficult to provide versatility.

3、使用の変更があった場合にプログラムの修正量が増
大する。
3. The amount of program modification increases when there is a change in usage.

という欠点がある。There is a drawback.

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

本発明の日付変換方式は、入力された日付入力形式に基
づいて入力日付を西暦年表示による中間日付に変換し、
また入力された日付出力形式に基づいて中間日付の加工
を行う日付加工手段と、前記変換された中間日付を入力
された演算式に応じ適時に西暦1年1月1日からの日数
である内部日付に変換し、また該内部日付を中間日付に
変換する、内部・中間日付変換手段と、 前記演算式により前記内部日付に対して日付の演算を行
う日付演算手段とを含むことを特徴とする。
The date conversion method of the present invention converts the input date into an intermediate date expressed in the Western calendar based on the input date input format,
In addition, a date processing means for processing an intermediate date based on the input date output format, and an internal processing unit that processes the converted intermediate date as the number of days from January 1, 1 AD, in a timely manner according to the input arithmetic expression. It is characterized by comprising: internal/intermediate date conversion means for converting the internal date into a date and converting the internal date into an intermediate date; and date calculation means for performing a date calculation on the internal date using the calculation formula. .

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の構成図を示し、日付加工手段1−1、
内部・中間日付変換手段1−2および日付演算手段1−
3からなる。
FIG. 1 shows a block diagram of the present invention, in which date processing means 1-1,
Internal/intermediate date conversion means 1-2 and date calculation means 1-
Consists of 3.

第1の動作例として、日付演算を伴なう日付変更処理に
ついて第2図のフローチャートにより説明する。例えば
、″′和暦°′で“昭和63年06月07日”から“+
10″日後の84寸を“西暦”で出力するときなどにこ
の処理を行う。
As a first operation example, date change processing involving date calculation will be explained with reference to the flowchart of FIG. For example, in the ``Japanese calendar °'', from ``June 7, 1988'' to ``+
This process is performed when outputting 84 inches 10'' days later in the Western calendar.

まず、これらのデータをそれぞれ日付入力形式2日付、
演算式2日付出力形式として入力しくステップ2−1)
、入力された日付と日付入力形式を日付加工手段1−1
により中間日付に変換する(ステップ2−2)。中間日
付とは入力された日付の月日はそのままとして暦を西暦
としたものであり、本例では19881年06月07日
となる。
First, input these data into date input format 2 date,
Step 2-1) Enter the calculation formula 2 as the date output format.
, date processing means 1-1 for the input date and date input format
(Step 2-2). The intermediate date is the input date with the month and day unchanged and the calendar set to the Western calendar; in this example, it is June 7, 19881.

次に、内部・中間日付変換手段1−2は、中間日付を内
部日付に変換する(ステップ2−3)。
Next, the internal/intermediate date conversion means 1-2 converts the intermediate date into an internal date (step 2-3).

内部日付とは西暦1年1月1日から中間日付までの日数
を意味する。日付演算手段1−3は、内部日付に対して
、入力された演算式による演算(本例では+10)を施
しくステップ2−4)、この演算結果を内部・中間日付
日付変換手段1−2に渡す。
Internal date means the number of days from January 1, 1 AD to an intermediate date. The date calculation means 1-3 performs a calculation (+10 in this example) on the internal date using the input formula (step 2-4), and converts the result of this calculation into the internal/intermediate date conversion means 1-2. give it to

内部・中間日付変換手段1−2は演算結果を中間日付に
変換する(ステップ2−5)が、この変換はステップ2
−3における変換とは逆変換の関係にある。
The internal/intermediate date conversion means 1-2 converts the calculation result into an intermediate date (step 2-5), but this conversion is performed in step 2.
The conversion in -3 is an inverse conversion.

最後に、内部・中間日付変換手段1−2は中間日付と日
付出力形式を日付加工手段1−1に渡し、日付加工手段
1−1は中間日付の加工を行い(ステップ2−6)、結
果として1988年06月17日の84寸を出力する(
ステップ2−7〉。
Finally, the internal/intermediate date conversion means 1-2 passes the intermediate date and date output format to the date processing means 1-1, and the date processing means 1-1 processes the intermediate date (step 2-6). Outputs 84 sun on June 17, 1988 as (
Step 2-7>.

もっとも、本例では日付出力形式が西暦であるためステ
ップ2−6は実質的には無処理となる。
However, in this example, since the date output format is Western calendar, step 2-6 is essentially not processed.

次に、第2の動作例として日数算定を伴う日付変更処理
について第3図のフローチャートにより説明する0例え
ば、“和暦′”で°゛昭和63年06月07日”から“
西暦”で゛1988年9月10日゛までの日数を得たい
ときなどにこの処理を行う。
Next, as a second operation example, date change processing involving calculation of the number of days will be explained with reference to the flowchart in FIG.
This process is performed when you want to obtain the number of days until September 10, 1988 in the Western calendar.

まず、日付1日付入力形式、演算式と日付出力形式が入
力される(ステップ3−1〉と、入力された日付と日付
入力形式を日付加工手段1−1が中間日付に変換する(
ステップ3−2)。
First, a date input format, an arithmetic expression, and a date output format are input (Step 3-1), and the date processing means 1-1 converts the input date and date input format into an intermediate date (
Step 3-2).

次に、内部・中間日付変換手段1−2は中間日付を内部
日付に変換する(ステップ3−3)。この場合、本例の
ように日付出力形式が西暦で与えられているときには、
それを内部日付に変換する。日付演算手段1−3は、こ
れらの内部日付と演算式により演算を行い(ステップ2
−4)、演算結果として96の日数を出力する(ステ・
yプ3−5)。
Next, the internal/intermediate date conversion means 1-2 converts the intermediate date into an internal date (step 3-3). In this case, when the date output format is given in Western calendar as in this example,
Convert it to an internal date. The date calculation means 1-3 performs calculations using these internal dates and calculation formulas (step 2).
-4), outputs 96 days as the calculation result (step
yp3-5).

最後に、第3の動作例として形式変更を伴う日付変更処
理について第4図のフローチャートにより説明する。例
えば、“和暦”で“昭和63年06月27日”を“西暦
”に変更したいときなどにこの処理を行う。
Finally, as a third operation example, date change processing accompanied by format change will be explained with reference to the flowchart of FIG. For example, this process is performed when you want to change "June 27, 1988" in the "Japanese calendar" to the "Western calendar".

まず、日付1日付入力形式9日付出力形式を入力しくス
テップ4−1>、日付加工手段1−1は入力された日付
と日付入力形式を中間日付に変換する(ステップ4−2
)。次に、中間日付を日付出力形式に合せて変換しくス
テップ4−3)、結果として1988年06月27日の
日付を出力する(ステップ4−4)。
First, the date 1 date input format 9 date output format is input (step 4-1), and the date processing means 1-1 converts the input date and date input format into an intermediate date (step 4-2).
). Next, the intermediate date is converted according to the date output format (Step 4-3), and the date of June 27, 1988 is output as a result (Step 4-4).

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

以上説明したように、本発明は中間日付および内部日付
の導入によって、個々について面倒であった日付の処理
を一元化でき、特に日付の演算・形式変換については、
個々の入力条件に応じてプログラムを修正せずに多様な
形式に対応できるため、汎用性および保守性を持たせる
という効果ある。
As explained above, by introducing intermediate dates and internal dates, the present invention can unify the processing of dates, which was previously troublesome for each individual date.
Since it can support various formats without modifying the program according to individual input conditions, it has the effect of providing versatility and maintainability.

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

第1図は本発明の構成図、第2図は日付演算処理のフロ
ーチャート、第3図は日付演算処理のフローチャート、
第4図は形式変更処理のフローチャートを示す。 1−1・・・・・・日付加工手段、1−2・・・・・・
内部・中間日付変換手段、1−3・・・・・・日付演算
手段。
Fig. 1 is a block diagram of the present invention, Fig. 2 is a flowchart of date calculation processing, Fig. 3 is a flowchart of date calculation processing,
FIG. 4 shows a flowchart of format change processing. 1-1... Date processing means, 1-2...
Internal/intermediate date conversion means, 1-3...Date calculation means.

Claims (1)

【特許請求の範囲】 入力された日付入力形式に基づいて入力日付を西暦年表
示による中間日付に変換し、また入力された日付出力形
式に基づいて中間日付の加工を行う日付加工手段と、 前記変換された中間日付を入力された演算式に応じ適時
に西暦1年1月1日からの日数である内部日付に変換し
、また該内部日付を中間日付に変換する、内部・中間日
付変換手段と、 前記演算式により前記内部日付に対して日付の演算を行
う日付演算手段とを含むことを特徴とする日付変換処理
方式。
[Scope of Claims] Date processing means for converting an input date into an intermediate date expressed in a Western calendar based on an input date input format, and processing the intermediate date based on an input date output format; An internal/intermediate date converter that converts the converted intermediate date into an internal date, which is the number of days since January 1, 1st AD, in a timely manner according to the input arithmetic expression, and also converts the internal date into an intermediate date. A date conversion processing method, comprising: a date calculation unit that performs a date calculation on the internal date using the calculation formula.
JP2030810A 1990-02-09 1990-02-09 Date conversion processing system Pending JPH03233714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2030810A JPH03233714A (en) 1990-02-09 1990-02-09 Date conversion processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2030810A JPH03233714A (en) 1990-02-09 1990-02-09 Date conversion processing system

Publications (1)

Publication Number Publication Date
JPH03233714A true JPH03233714A (en) 1991-10-17

Family

ID=12314048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2030810A Pending JPH03233714A (en) 1990-02-09 1990-02-09 Date conversion processing system

Country Status (1)

Country Link
JP (1) JPH03233714A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04287120A (en) * 1991-03-18 1992-10-12 Fujitsu Ltd Time sequential era comparing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04287120A (en) * 1991-03-18 1992-10-12 Fujitsu Ltd Time sequential era comparing system

Similar Documents

Publication Publication Date Title
JPH03233714A (en) Date conversion processing system
US8266193B2 (en) Real time universal date and time conversion
JP4969059B2 (en) Production schedule planning method
JP3491781B2 (en) How to create a scale conversion program in tabular format
JPH11120258A (en) Loan response day calculating method
CN109918084A (en) A kind of data mapping method of business management system
JP2845701B2 (en) How to process drawings
JP2526797B2 (en) Date management method
JPS6225799Y2 (en)
JPH0581287A (en) Date management system
Karp Time series magic: smoothing, interpolation, expanding and collapsing: time series data with proc expand
JPH09146891A (en) Device and method for calculating day of week handling entire christian era
JPH07105361A (en) Gradation conversion processing method
JPH05342011A (en) File data part constructing system for cobol program
JPH02114328A (en) Patch source conversion system
JPH04245322A (en) Input device
JPS63165955A (en) Data processing system
Desoer et al. Decoupling of Linear Multivariable Plants by Dynamical Output Feedback
JPH03251956A (en) Week information output device
JPS59100965A (en) Electronic device
JPS61288282A (en) Picture filtering device
JPH0896037A (en) Calendar calculation device
JP2000122998A (en) Method and device for calculating day of week
Perrault Jr Computer implementation of optimal multivariable controller design in the frequency domain
JPH04104340A (en) Code conversion system by conversion master file