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)

Definition at line 12 of file dcdatetimesetcaltype.f90.

13 !
14 ! 暦法のデフォルトを設定します.
15 ! dc_date_types#CAL_CYCLIC, dc_date_types#CAL_NOLEAP,
16 ! dc_date_types#CAL_JULIAN, dc_date_types#CAL_GREGORIAN
17 ! のいづれかを引数 *caltype* に与えてください.
18 !
19 ! なお, この手続きを呼ばない場合, デフォルトの暦法は
20 ! dc_date_types#CAL_GREGORIAN に設定されています.
21 !
22 use dc_date_types, only: caltype_default => caltype
23 use dc_trace, only: beginsub, endsub
24 use dc_message, only: messagenotify
26 implicit none
27 integer, intent(in):: caltype
28 character(*), parameter :: subname = 'DCDateTimeSetCaltype'
29continue
30 call beginsub(subname, 'caltype=<%d>', i=(/caltype/))
31 if (validcaltype(caltype)) then
32 caltype_default = caltype
33 else
34 call messagenotify('W', subname, &
35 & 'caltype=<%d> is invalid calender type.', &
36 & i=(/caltype/))
37 end if
38 call endsub(subname, 'dc_date_types#caltype_default=<%d>', i=(/caltype_default/))
integer, save, public caltype

References dc_date_types::caltype.