gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
dcdatetimesetcaltype.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine dcdatetimesetcaltype (caltype)
 暦法の設定

Function/Subroutine Documentation

◆ dcdatetimesetcaltype()

subroutine dcdatetimesetcaltype ( integer, intent(in) caltype)

暦法の設定

Author
Yasuhiro MORIKAWA

このファイルで提供される手続き群は dc_date モジュールにて提供されます。

暦法のデフォルトを設定

暦法のデフォルトを設定します. dc_date_types#CAL_CYCLIC, dc_date_types#CAL_NOLEAP, dc_date_types#CAL_JULIAN, dc_date_types#CAL_GREGORIAN のいづれかを引数 caltype に与えてください.

なお, この手続きを呼ばない場合, デフォルトの暦法は dc_date_types#CAL_GREGORIAN に設定されています.

Parameters
[in]caltypeデフォルトに設定する暦法

Definition at line 49 of file dcdatetimesetcaltype.f90.

50
51 use dc_date_types, only: caltype_default => caltype
52 use dc_trace, only: beginsub, endsub
53 use dc_message, only: messagenotify
55 implicit none
56 integer, intent(in):: caltype
57 character(*), parameter :: subname = 'DCDateTimeSetCaltype'
58continue
59 call beginsub(subname, 'caltype=<%d>', i=(/caltype/))
60 if (validcaltype(caltype)) then
61 caltype_default = caltype
62 else
63 call messagenotify('W', subname, &
64 & 'caltype=<%d> is invalid calender type.', &
65 & i=(/caltype/))
66 end if
67 call endsub(subname, 'dc_date_types#caltype_default=<%d>', i=(/caltype_default/))
dc_date より提供される手続の引用仕様宣言
日付・時刻に関する構造データ型と定数
integer, save, public caltype
デフォルトの暦タイプ (グレゴリオ暦)
メッセージの出力
デバッグ時の追跡用モジュール
Definition dc_trace.f90:150
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:476
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:599

References dc_trace::beginsub(), dc_date_types::caltype, and dc_trace::endsub().

Here is the call graph for this function: