FORCES
FORtran lib for Comp. Env. Sys.
|
This is a container to hold a defined time span. More...
Public Member Functions | |
procedure, public | abs (this) |
absolute timedelta | |
procedure, public | total_seconds (this) |
timedelta in seconds (may need i8) | |
generic, public | assignment (this, that) |
copy a timedelta | |
generic, public | operator (this, that) |
equal comparison of timedeltas | |
generic, public | operator (this, that) |
not equal comparison of timedeltas | |
generic, public | operator (this, that) |
less than comparison of timedeltas | |
generic, public | operator (this, that) |
greater than comparison of timedeltas | |
generic, public | operator (this, that) |
less than or equal comparison of timedeltas | |
generic, public | operator (this, that) |
greater than or equal comparison of timedeltas | |
generic, public | operator (this, that) |
adding two timedeltas | |
generic, public | operator (this) |
positive timedelta | |
generic, public | operator (this, that) |
adding two timedeltas | |
generic, public | operator (this) |
negative timedelta | |
generic, public | operator (this, that) |
multiply a timedelta with an integer | |
generic, public | operator (that, this) |
multiply a timedelta with an integer | |
generic, public | operator (this, that) |
multiply a timedelta with a real | |
generic, public | operator (that, this) |
multiply a timedelta with a real | |
generic, public | operator (this, that) |
divide a timedelta by an integer | |
generic, public | operator (this, that) |
divide a timedelta by a real | |
generic, public | operator (this, that) |
divide a timedelta by a timedelta | |
Public Attributes | |
integer(i4), public | days = 0_i4 |
days of the time-span | |
integer(i4), public | seconds = 0_i4 |
second of the time-span | |
Private Member Functions | |
procedure, private | td_copy (this, that) |
copy a timedelta | |
procedure, private | td_eq (this, that) |
equal comparison of timedeltas | |
procedure, private | td_neq (this, that) |
not equal comparison of timedeltas | |
procedure, private | td_lt (this, that) |
less than comparison of timedeltas | |
procedure, private | td_gt (this, that) |
greater than comparison of timedeltas | |
procedure, private | td_leq (this, that) |
less than or equal comparison of timedeltas | |
procedure, private | td_geq (this, that) |
greater than or equal comparison of timedeltas | |
procedure, private | td_add (this, that) |
adding two timedeltas | |
private | td_pos (this) |
positive timedelta | |
procedure, private | td_sub (this, that) |
adding two timedeltas | |
private | td_neg (this) |
negative timedelta | |
procedure, private | td_mul1 (this, that) |
multiply a timedelta with an integer | |
private | td_mul1_dp (this, that) |
multiply a timedelta with a real | |
procedure, pass, private | td_mul2 (that, this) |
multiply a timedelta with an integer | |
pass, private | td_mul2_dp (that, this) |
multiply a timedelta with a real | |
procedure, private | td_div (this, that) |
divide a timedelta by an integer | |
private | td_div_dp (this, that) |
divide a timedelta by a real | |
private | td_div_td (this, that) |
divide a timedelta by a timedelta | |
This is a container to hold a defined time span.
Definition at line 303 of file mo_datetime.f90.
procedure, public mo_datetime::timedelta::abs | ( | class(timedelta), intent(in) | this | ) |
generic, public mo_datetime::timedelta::assignment | ( | class(timedelta), intent(inout) | this, |
class(timedelta), intent(in) | that | ||
) |
copy a timedelta
Definition at line 312 of file mo_datetime.f90.
References mo_datetime::td_copy().
generic, public mo_datetime::timedelta::operator | ( | real(dp), intent(in) | that, |
class(timedelta), intent(in) | this | ||
) |
multiply a timedelta with a real
Definition at line 331 of file mo_datetime.f90.
generic, public mo_datetime::timedelta::operator | ( | integer(i4), intent(in) | that, |
class(timedelta), intent(in) | this | ||
) |
multiply a timedelta with an integer
Definition at line 331 of file mo_datetime.f90.
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this | ) |
positive timedelta
Definition at line 326 of file mo_datetime.f90.
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this | ) |
negative timedelta
Definition at line 328 of file mo_datetime.f90.
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
equal comparison of timedeltas
Definition at line 314 of file mo_datetime.f90.
References mo_datetime::td_eq().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
not equal comparison of timedeltas
Definition at line 316 of file mo_datetime.f90.
References mo_datetime::td_neq().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
less than comparison of timedeltas
Definition at line 318 of file mo_datetime.f90.
References mo_datetime::td_lt().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
greater than comparison of timedeltas
Definition at line 320 of file mo_datetime.f90.
References mo_datetime::td_gt().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
less than or equal comparison of timedeltas
Definition at line 322 of file mo_datetime.f90.
References mo_datetime::td_leq().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
greater than or equal comparison of timedeltas
Definition at line 324 of file mo_datetime.f90.
References mo_datetime::td_geq().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
adding two timedeltas
Definition at line 326 of file mo_datetime.f90.
References mo_datetime::td_add(), and mo_datetime::td_pos().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
adding two timedeltas
Definition at line 328 of file mo_datetime.f90.
References mo_datetime::td_neg(), and mo_datetime::td_sub().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
real(dp), intent(in) | that | ||
) |
multiply a timedelta with a real
Definition at line 331 of file mo_datetime.f90.
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
integer(i4), intent(in) | that | ||
) |
multiply a timedelta with an integer
Definition at line 331 of file mo_datetime.f90.
References mo_datetime::td_mul1(), mo_datetime::td_mul1_dp(), mo_datetime::td_mul2(), and mo_datetime::td_mul2_dp().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
divide a timedelta by a timedelta
Definition at line 333 of file mo_datetime.f90.
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
integer(i4), intent(in) | that | ||
) |
divide a timedelta by an integer
Definition at line 333 of file mo_datetime.f90.
References mo_datetime::td_div(), mo_datetime::td_div_dp(), and mo_datetime::td_div_td().
generic, public mo_datetime::timedelta::operator | ( | class(timedelta), intent(in) | this, |
real(dp), intent(in) | that | ||
) |
divide a timedelta by a real
Definition at line 333 of file mo_datetime.f90.
|
private |
adding two timedeltas
Definition at line 325 of file mo_datetime.f90.
|
private |
copy a timedelta
Definition at line 311 of file mo_datetime.f90.
|
private |
divide a timedelta by an integer
Definition at line 332 of file mo_datetime.f90.
|
private |
divide a timedelta by a real
Definition at line 332 of file mo_datetime.f90.
|
private |
divide a timedelta by a timedelta
Definition at line 332 of file mo_datetime.f90.
|
private |
equal comparison of timedeltas
Definition at line 313 of file mo_datetime.f90.
|
private |
greater than or equal comparison of timedeltas
Definition at line 323 of file mo_datetime.f90.
|
private |
greater than comparison of timedeltas
Definition at line 319 of file mo_datetime.f90.
|
private |
less than or equal comparison of timedeltas
Definition at line 321 of file mo_datetime.f90.
|
private |
less than comparison of timedeltas
Definition at line 317 of file mo_datetime.f90.
|
private |
multiply a timedelta with an integer
Definition at line 329 of file mo_datetime.f90.
|
private |
multiply a timedelta with a real
Definition at line 329 of file mo_datetime.f90.
|
private |
multiply a timedelta with an integer
Definition at line 330 of file mo_datetime.f90.
|
private |
multiply a timedelta with a real
Definition at line 330 of file mo_datetime.f90.
|
private |
negative timedelta
Definition at line 327 of file mo_datetime.f90.
|
private |
not equal comparison of timedeltas
Definition at line 315 of file mo_datetime.f90.
|
private |
positive timedelta
Definition at line 325 of file mo_datetime.f90.
|
private |
adding two timedeltas
Definition at line 327 of file mo_datetime.f90.
procedure, public mo_datetime::timedelta::total_seconds | ( | class(timedelta), intent(in) | this | ) |
timedelta in seconds (may need i8)
Definition at line 310 of file mo_datetime.f90.
integer(i4), public mo_datetime::timedelta::days = 0_i4 |
days of the time-span
Definition at line 304 of file mo_datetime.f90.
integer(i4), public mo_datetime::timedelta::seconds = 0_i4 |
second of the time-span
Definition at line 305 of file mo_datetime.f90.