Class dc_calendar_types
In: dc_utils/dc_calendar_types.f90

暦と日時に関する構造データ型と定数

Derived types and parameters of calendar and date

Note that Japanese and English are described in parallel.

dc_calendar に関連する構造体や定数を提供します.

Derived types and parameters for "dc_calendar" are provided.

Derived types List

DC_CAL :暦情報
DC_CAL_DATE :日時情報

———— ::

DC_CAL :Calendar
DC_CAL_DATE :Date

Parameters for calender

CAL_USER_DEFINED :1 年の月数, 1 月の日数, 1 日の時間数, 1 時間の分数, 1 分の秒数が任意である暦.
CAL_GREGORIAN :グレゴリオ暦
CAL_JULIAN :ユリウス暦
CAL_NOLEAP :閏年無しの暦
CAL_360DAY :1ヶ月が 30 日の暦
CAL_CYCLIC :ある月の日数を 「30.6 × 月数 − 前月までの総日数」 の小数点以下切捨とする暦

———— ::

CAL_USER_DEFINED :A calendar in which number of months of a year, days of a month, hours of a day, minutes of a hour, seconds of a minute are arbitrary.
CAL_GREGORIAN :Gregorian calendar.
CAL_JULIAN :Julian calendar.
CAL_NOLEAP :A calendar without leap year.
CAL_360DAY :A calendar in which number of days of a month is 30.
CAL_CYCLIC :A calendar in which number of days of a year is "30.6 x (number of months) - (total days until last month)" (truncate fractional part).

Characters list for unit

日時の単位として認識される文字列のリストです.

List of strings recognized as units of date.

UNIT_SEC :秒の単位
UNIT_MIN :分の単位
UNIT_HOUR :時間の単位
UNIT_DAY :日の単位
UNIT_MONTH :月の単位
UNIT_YEAR :年の単位

———— ::

UNIT_SEC :Units of second
UNIT_MIN :Units of minute
UNIT_HOUR :Units of hour
UNIT_DAY :Units of day
UNIT_MONTH :Units of month
UNIT_YEAR :Units of year

Symbols for unit

dc_calendar から提供される手続で使用される, 日時の単位を示す整数です.

Integers that indicate units of date. They are used in procedures provied from "dc_calendar".

UNIT_SYMBOL_SEC :秒の単位
UNIT_SYMBOL_MIN :分の単位
UNIT_SYMBOL_HOUR :時間の単位
UNIT_SYMBOL_DAY :日の単位
UNIT_SYMBOL_MONTH :月の単位
UNIT_SYMBOL_YEAR :年の単位
UNIT_SYMBOL_ERR :無効な単位

———— ::

UNIT_SYMBOL_SEC :Units of second
UNIT_SYMBOL_MIN :Units of minute
UNIT_SYMBOL_HOUR :Units of hour
UNIT_SYMBOL_DAY :Units of day
UNIT_SYMBOL_MONTH :Units of month
UNIT_SYMBOL_YEAR :Units of year
UNIT_SYMBOL_ERR :Invalid unit

Methods

Included Modules

dc_types

Public Instance methods

CAL_360DAY
Constant :
CAL_360DAY = 6 :integer, parameter
: 1 年 360 日 (1 月 30 日) の暦.

All years are 360 days divided into 30 day months.

CAL_CYCLIC
Constant :
CAL_CYCLIC = 2 :integer, parameter
: 1 ヵ月を 30.6 日 (CYCLIC_MDAYS) とする暦.

All months are 30.6 day.

CAL_GREGORIAN
Constant :
CAL_GREGORIAN = 5 :integer, parameter
: グレゴリオ暦. Gregorian calendar.
CAL_JULIAN
Constant :
CAL_JULIAN = 4 :integer, parameter
: ユリウス暦. Julian calendar.
CAL_NOLEAP
Constant :
CAL_NOLEAP = 3 :integer, parameter
: 1 年 365 日 (閏年無し) の暦.

Gregorian calendar without leap years, i.e., all years are 365 days long.

CAL_USER_DEFINED
Constant :
CAL_USER_DEFINED = 1 :integer, parameter
: 利用者が任意で指定する暦. User defined calendar.
DC_CAL
Derived Type :
initialized = .false. :logical
: 初期設定フラグ. Initialization flag
month_in_year :integer
: 1 年の月数. Months in a year.
day_in_month(:) => null() :integer, pointer
: 1 ヶ月の日数. Days in months.
hour_in_day :integer
: 1 日の時間数. Hours in a day.
min_in_hour :integer
: 1 時間の分数. Minutes in a hour.
sec_in_min :real(DP)
: 1 分の秒数. Seconds in a minute.
cal_type :integer
: 暦の種別. Kind of calendar.

暦を表現する構造体.

この構造体の要素を直接を参照および変更してはならない. この構造体を扱う上では必ず dc_calendar_generic より提供される 手続きを用いること.

A derived type that expresses calendar.

Do not refer and modify elements of this derived type. Use procedures provied by "dc_calendar_generic" necessarily for handling this derived type.

DC_CAL_DATE
Derived Type :
initialized = .false. :logical
: 初期設定フラグ. Initialization flag
year :integer
: 年. Year.
month :integer
: 月. Month.
day :integer
: 日. Day.
hour :integer
: 時. Hour.
min :integer
: 分. Minute.
sec :real(DP)
: 秒. Sec.
zone :character(TOKEN)
: UTC からの時差. Time-zone.

日時を表現する構造体

この構造体の要素を直接を参照および変更してはならない. この構造体を扱う上では必ず dc_calendar_generic より提供される 手続きを用いること.

A derived type that expresses date.

Do not refer and modify elements of this derived type. Use procedures provied by "dc_calendar_generic" necessarily for handling this derived type.

UNIT_DAY
Constant :
UNIT_DAY = (/ ‘days’, ‘day ’, ‘d. ’, ‘d ‘/) :character(*), parameter, dimension(4)
: 日の単位を示す文字列
UNIT_HOUR
Constant :
UNIT_HOUR = (/ ‘hours’, ‘hour ’, ‘hrs. ’, ‘hrs ’, ‘hr. ’, ‘hr ’, ‘h. ’, ‘h ‘/) :character(*), parameter, dimension(8)
: 時の単位を示す文字列
UNIT_MIN
Constant :
UNIT_MIN = (/ ‘minutes’, ‘minute ’, ‘min. ’, ‘min ‘/) :character(*), parameter, dimension(4)
: 分の単位を示す文字列
UNIT_MONTH
Constant :
UNIT_MONTH = (/ ‘months’, ‘month ’, ‘mon. ’, ‘mon ’, ‘mo. ’, ‘mo ‘/) :character(*), parameter, dimension(6)
: 月の単位を示す文字列
UNIT_SEC
Constant :
UNIT_SEC = (/ ‘seconds’, ‘second ’, ‘secs. ’, ‘secs ’, ‘sec. ’, ‘sec ’, ‘s. ’, ‘s ‘/) :character(*), parameter, dimension(8)
: 秒の単位を示す文字列
UNIT_SYMBOL_DAY
Constant :
UNIT_SYMBOL_DAY = 5 :integer, parameter
: 日の単位を示すシンボル
UNIT_SYMBOL_ERR
Constant :
UNIT_SYMBOL_ERR = -1 :integer, parameter
: 無効な単位を示すシンボル
UNIT_SYMBOL_HOUR
Constant :
UNIT_SYMBOL_HOUR = 4 :integer, parameter
: 時間の単位を示すシンボル
UNIT_SYMBOL_MIN
Constant :
UNIT_SYMBOL_MIN = 3 :integer, parameter
: 分の単位を示すシンボル
UNIT_SYMBOL_MONTH
Constant :
UNIT_SYMBOL_MONTH = 6 :integer, parameter
: 月の単位を示すシンボル
UNIT_SYMBOL_SEC
Constant :
UNIT_SYMBOL_SEC = 2 :integer, parameter
: 秒の単位を示すシンボル
UNIT_SYMBOL_YEAR
Constant :
UNIT_SYMBOL_YEAR = 7 :integer, parameter
: 年の単位を示すシンボル
UNIT_YEAR
Constant :
UNIT_YEAR = (/ ‘years’, ‘year ’, ‘yr. ’, ‘yr ‘/) :character(*), parameter, dimension(4)
: 年の単位を示す文字列