gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
dcdatetimevalidcaltype.f90
Go to the documentation of this file.
1! -*- mode: f90; coding: utf-8 -*-
2!-----------------------------------------------------------------------
3! Copyright (c) 2000-2026 Gtool Development Group. All rights reserved.
4!-----------------------------------------------------------------------
21
41function dcdatetimevalidcaltype(caltype) result(result)
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
57end function dcdatetimevalidcaltype
logical function dcdatetimevalidcaltype(caltype)
暦法が dc_date_types で有効なものかどうかを調べる
日付・時刻に関する構造データ型と定数
integer, save, public caltype
デフォルトの暦タイプ (グレゴリオ暦)
integer, dimension(0:3), parameter, public prepared_caltypes
利用可能な暦タイプの配列