gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
dcdatetimesetsecofday.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!-----------------------------------------------------------------------
5!>
6!> @author Yasuhiro MORIKAWA
7!> @copyright Copyright (C) GFD Dennou Club, 2000-2026. All rights reserved. <br/>
8!> License is BSD-2-Clause. see [COPYRIGHT](@ref COPYRIGHT) in detail
9!> @en
10!> @brief Set the number of seconds in a day
11!> @details
12!> Procedures described in this file are provided from "dc_date" module.
13!> @enden
14!>
15!> @ja
16!> @brief 1日の秒数の設定
17!> @details
18!> このファイルで提供される手続き群は dc_date モジュールにて提供されます。
19!> @endja
20!>
21
22!> @en
23!> @brief Set the default number of seconds in a day
24!> @details
25!> Set the default number of seconds in a day.
26!>
27!> If this procedure is not called, the default number of seconds in a day is
28!> set to dc_date_types#DAY_SECONDS_EARTH.
29!>
30!> @param[in] sec Number of seconds in a day to set as default
31!> @enden
32!>
33!> @ja
34!> @brief 1日の秒数のデフォルトを設定
35!> @details
36!> 1 日の秒数のデフォルトを設定します.
37!>
38!> なお, この手続きを呼ばない場合, デフォルトの 1 日の秒数は
39!> dc_date_types#DAY_SECONDS_EARTH に設定されています.
40!>
41!> @param[in] sec デフォルトに設定する1日の秒数
42!> @endja
43subroutine dcdatetimesetsecofday(sec)
44
45 use dc_date_types, only: day_seconds_default => day_seconds
46 use dc_types, only: dp
47 use dc_trace, only: beginsub, endsub
48 implicit none
49 real(DP), intent(in):: sec
50 character(*), parameter :: subname = 'DCDateTimeSetSecOfDay'
51continue
52 call beginsub(subname, 'sec=<%f>', d=(/sec/))
53 day_seconds_default = sec
54 call endsub(subname, 'dc_date_types#day_seconds=<%f>', d=(/day_seconds_default/))
55end subroutine dcdatetimesetsecofday
subroutine dcdatetimesetsecofday(sec)
1日の秒数の設定
日付・時刻に関する構造データ型と定数
real(dp), save, public day_seconds
1日の秒数 (可変, デフォルトは地球の1日)
デバッグ時の追跡用モジュール
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 dp
倍精度実数型変数
Definition dc_types.f90:92