FORCES
FORtran lib for Comp. Env. Sys.
|
This is a container to hold only a time. More...
Public Member Functions | |
procedure, public | replace (this, hour, minute, second) |
new time with specified fields | |
procedure, pass(in_time), public | with_date (in_date, in_time) |
datetime from date and time | |
procedure, public | str (this) |
string representation of the time | |
procedure, public | day_second (this) |
time to second of the day | |
procedure, public | is_midnight (this) |
time is a new day / midnight | |
procedure, public | is_new_day (this) |
time is a new day / midnight | |
procedure, public | is_new_hour (this) |
time is a new hour | |
procedure, public | is_new_minute (this) |
time is a new month | |
generic, public | assignment (this, that) |
copy a time | |
generic, public | operator (this, that) |
equal comparison of times | |
generic, public | operator (this, that) |
not equal comparison of times | |
generic, public | operator (this, that) |
less than comparison of times | |
generic, public | operator (this, that) |
greater than comparison of times | |
generic, public | operator (this, that) |
less than or equal comparison of times | |
generic, public | operator (this, that) |
greater than or equal comparison of times | |
generic, public | operator (this, that) |
add a timedelta to a time | |
generic, public | operator (that, this) |
add a timedelta to a time | |
generic, public | operator (this, that) |
subtract a timedelta from a time | |
generic, public | operator (this, that) |
difference between two times | |
Public Attributes | |
integer(i4), public | hour = 0_i4 |
0 <= hour < 24 | |
integer(i4), public | minute = 0_i4 |
0 <= minute < 60 | |
integer(i4), public | second = 0_i4 |
0 <= second < 60 | |
Private Member Functions | |
procedure, private | t_copy (this, that) |
copy a time | |
procedure, private | t_eq (this, that) |
equal comparison of times | |
procedure, private | t_neq (this, that) |
not equal comparison of times | |
procedure, private | t_lt (this, that) |
less than comparison of times | |
procedure, private | t_gt (this, that) |
greater than comparison of times | |
procedure, private | t_leq (this, that) |
less than or equal comparison of times | |
procedure, private | t_geq (this, that) |
greater than or equal comparison of times | |
procedure, private | t_add_td (this, that) |
add a timedelta to a time | |
procedure, pass, private | td_add_t (that, this) |
add a timedelta to a time | |
procedure, private | t_sub_td (this, that) |
subtract a timedelta from a time | |
private | t_sub_t (this, that) |
difference between two times | |
This is a container to hold only a time.
Definition at line 202 of file mo_datetime.f90.
generic, public mo_datetime::puretime::assignment | ( | class(puretime), intent(inout) | this, |
class(puretime), intent(in) | that | ||
) |
copy a time
Definition at line 224 of file mo_datetime.f90.
References mo_datetime::t_copy().
procedure, public mo_datetime::puretime::day_second | ( | class(puretime), intent(in) | this | ) |
time to second of the day
Definition at line 214 of file mo_datetime.f90.
procedure, public mo_datetime::puretime::is_midnight | ( | class(puretime), intent(in) | this | ) |
time is a new day / midnight
Definition at line 216 of file mo_datetime.f90.
procedure, public mo_datetime::puretime::is_new_day | ( | class(puretime), intent(in) | this | ) |
time is a new day / midnight
Definition at line 218 of file mo_datetime.f90.
procedure, public mo_datetime::puretime::is_new_hour | ( | class(puretime), intent(in) | this | ) |
time is a new hour
Definition at line 220 of file mo_datetime.f90.
procedure, public mo_datetime::puretime::is_new_minute | ( | class(puretime), intent(in) | this | ) |
time is a new month
Definition at line 222 of file mo_datetime.f90.
generic, public mo_datetime::puretime::operator | ( | class(timedelta), intent(in) | that, |
class(puretime), intent(in) | this | ||
) |
add a timedelta to a time
Definition at line 239 of file mo_datetime.f90.
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(puretime), intent(in) | that | ||
) |
equal comparison of times
Definition at line 226 of file mo_datetime.f90.
References mo_datetime::t_eq().
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(puretime), intent(in) | that | ||
) |
not equal comparison of times
Definition at line 228 of file mo_datetime.f90.
References mo_datetime::t_neq().
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(puretime), intent(in) | that | ||
) |
less than comparison of times
Definition at line 230 of file mo_datetime.f90.
References mo_datetime::t_lt().
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(puretime), intent(in) | that | ||
) |
greater than comparison of times
Definition at line 232 of file mo_datetime.f90.
References mo_datetime::t_gt().
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(puretime), intent(in) | that | ||
) |
less than or equal comparison of times
Definition at line 234 of file mo_datetime.f90.
References mo_datetime::t_leq().
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(puretime), intent(in) | that | ||
) |
greater than or equal comparison of times
Definition at line 236 of file mo_datetime.f90.
References mo_datetime::t_geq().
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
add a timedelta to a time
Definition at line 239 of file mo_datetime.f90.
References mo_datetime::t_add_td(), and mo_datetime::td_add_t().
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(puretime), intent(in) | that | ||
) |
difference between two times
Definition at line 241 of file mo_datetime.f90.
generic, public mo_datetime::puretime::operator | ( | class(puretime), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
subtract a timedelta from a time
Definition at line 241 of file mo_datetime.f90.
References mo_datetime::t_sub_t(), and mo_datetime::t_sub_td().
procedure, public mo_datetime::puretime::replace | ( | class(puretime), intent(in) | this, |
integer(i4), intent(in), optional | hour, | ||
integer(i4), intent(in), optional | minute, | ||
integer(i4), intent(in), optional | second | ||
) |
new time with specified fields
[in] | hour | 0 <= hour < 24 |
[in] | minute | 0 <= minute < 60 |
[in] | second | 0 <= second < 60 |
Definition at line 208 of file mo_datetime.f90.
procedure, public mo_datetime::puretime::str | ( | class(puretime), intent(in) | this | ) |
string representation of the time
Definition at line 212 of file mo_datetime.f90.
|
private |
add a timedelta to a time
Definition at line 237 of file mo_datetime.f90.
|
private |
copy a time
Definition at line 223 of file mo_datetime.f90.
|
private |
equal comparison of times
Definition at line 225 of file mo_datetime.f90.
|
private |
greater than or equal comparison of times
Definition at line 235 of file mo_datetime.f90.
|
private |
greater than comparison of times
Definition at line 231 of file mo_datetime.f90.
|
private |
less than or equal comparison of times
Definition at line 233 of file mo_datetime.f90.
|
private |
less than comparison of times
Definition at line 229 of file mo_datetime.f90.
|
private |
not equal comparison of times
Definition at line 227 of file mo_datetime.f90.
|
private |
difference between two times
Definition at line 240 of file mo_datetime.f90.
|
private |
subtract a timedelta from a time
Definition at line 240 of file mo_datetime.f90.
|
private |
add a timedelta to a time
Definition at line 238 of file mo_datetime.f90.
procedure, pass(in_time), public mo_datetime::puretime::with_date | ( | class(puredate), intent(in) | in_date, |
class(puretime), intent(in), optional | in_time | ||
) |
datetime from date and time
[in] | in_date | date to use |
[in] | in_time | time to use (midnight by default) |
Definition at line 210 of file mo_datetime.f90.
integer(i4), public mo_datetime::puretime::hour = 0_i4 |
0 <= hour < 24
Definition at line 203 of file mo_datetime.f90.
integer(i4), public mo_datetime::puretime::minute = 0_i4 |
0 <= minute < 60
Definition at line 204 of file mo_datetime.f90.
integer(i4), public mo_datetime::puretime::second = 0_i4 |
0 <= second < 60
Definition at line 205 of file mo_datetime.f90.