gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Functions/Subroutines
dcdatetimevalidcaltype.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

logical function dcdatetimevalidcaltype (caltype)
 Check if calendar type is valid in dc_date_types.
 

Function/Subroutine Documentation

◆ dcdatetimevalidcaltype()

logical function dcdatetimevalidcaltype ( integer, intent(in)  caltype)

Check if calendar type is valid in dc_date_types.

Author
Yasuhiro MORIKAWA

Definition at line 41 of file dcdatetimevalidcaltype.f90.

42
44 implicit none
45 integer, intent(in):: caltype
46 logical:: result
47 integer:: caltypes_size, i
48continue
49 result = .false.
50 caltypes_size = size(prepared_caltypes) - 1
51 do i = 0, caltypes_size
52 if (caltype == prepared_caltypes(i)) then
53 result = .true.
54 exit
55 end if
56 end do
Derived types and parameters for date and time.
integer, save, public caltype
Default calendar type (Gregorian)
integer, dimension(0:3), parameter, public prepared_caltypes
Array of prepared calendar types

References dc_date_types::caltype, and dc_date_types::prepared_caltypes.