gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
dccalparseunit.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
98subroutine dccalparseunit1( unit_str, unit_sym, err )
99
102 use dc_message, only: messagenotify
103 use dc_string, only: lchar
104 use dc_trace, only: beginsub, endsub
106 use dc_types, only: string
107 implicit none
108 character(*), intent(in):: unit_str
109 integer, intent(out):: unit_sym
110 logical, intent(out), optional:: err
111
112 ! 作業変数
113 ! Work variables
114 !
115 integer:: stat
116 character(STRING):: cause_c
117 character(*), parameter:: subname = 'DCCalParseUnit1'
118continue
119 call beginsub( subname )
120 stat = dc_noerr
121 cause_c = ''
122
123 ! 単位の文字列をシンボル (整数型変数) に変換
124 ! Convert strings of units into symbols (integer variables)
125 !
126 unit_sym = dccaldate_str2usym( unit_str )
127
128 ! エラー処理
129 ! Error Handling
130 !
131 if ( unit_sym == unit_symbol_err ) then
132 call messagenotify('W', subname, 'unit_str=<%c> is invalid. (ONLY day,hour,min,sec are valid)', &
133 & c1 = trim(unit_str) )
134 stat = dc_ebadunit
135 goto 999
136 end if
137
138 ! 終了処理, 例外処理
139 ! Termination and Exception handling
140 !
141999 continue
142 call storeerror( stat, subname, err, cause_c )
143 call endsub( subname )
144end subroutine dccalparseunit1
subroutine dccalparseunit1(unit_str, unit_sym, err)
単位の解釈
dc_calendar用の内部モジュール
integer function, public dccaldate_str2usym(str)
暦と日時に関する構造データ型と定数
integer, parameter, public unit_symbol_err
エラー処理用モジュール
Definition dc_error.f90:454
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition dc_error.f90:891
integer, parameter, public dc_ebadunit
Definition dc_error.f90:536
integer, parameter, public dc_noerr
エラー等を保持
Definition dc_error.f90:468
メッセージの出力
文字型変数の操作
Definition dc_string.f90:83
デバッグ時の追跡用モジュール
Definition dc_trace.f90:150
subroutine, public beginsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca, version)
Definition dc_trace.f90:457
subroutine, public endsub(name, fmt, i, r, d, l, n, c1, c2, c3, ca)
Definition dc_trace.f90:580
種別型パラメタを提供します。
Definition dc_types.f90:55
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
Definition dc_types.f90:137