Go to the source code of this file.
◆ dcdatetimevalidcaltype()
| logical function dcdatetimevalidcaltype |
( |
integer, intent(in) |
caltype | ) |
|
Check if calendar type is valid in dc_date_types.
- Author
- Yasuhiro MORIKAWA
- Copyright
- Copyright (C) GFD Dennou Club, 2000-2026. All rights reserved.
License is BSD-2-Clause. see COPYRIGHT in detail
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.
51 do i = 0, caltypes_size
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.