0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_datetime::timedelta Module Reference

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
 

Detailed Description

This is a container to hold a defined time span.

Definition at line 303 of file mo_datetime.f90.

Member Function/Subroutine Documentation

◆ abs()

procedure, public mo_datetime::timedelta::abs ( class(timedelta), intent(in)  this)

absolute timedelta

See also
mo_datetime::td_abs

Definition at line 308 of file mo_datetime.f90.

◆ assignment()

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().

Here is the call graph for this function:

◆ operator() [1/17]

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.

◆ operator() [2/17]

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.

◆ operator() [3/17]

generic, public mo_datetime::timedelta::operator ( class(timedelta), intent(in)  this)

positive timedelta

Definition at line 326 of file mo_datetime.f90.

◆ operator() [4/17]

generic, public mo_datetime::timedelta::operator ( class(timedelta), intent(in)  this)

negative timedelta

Definition at line 328 of file mo_datetime.f90.

◆ operator() [5/17]

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().

Here is the call graph for this function:

◆ operator() [6/17]

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().

Here is the call graph for this function:

◆ operator() [7/17]

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().

Here is the call graph for this function:

◆ operator() [8/17]

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().

Here is the call graph for this function:

◆ operator() [9/17]

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().

Here is the call graph for this function:

◆ operator() [10/17]

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().

Here is the call graph for this function:

◆ operator() [11/17]

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().

Here is the call graph for this function:

◆ operator() [12/17]

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().

Here is the call graph for this function:

◆ operator() [13/17]

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.

◆ operator() [14/17]

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().

Here is the call graph for this function:

◆ operator() [15/17]

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.

◆ operator() [16/17]

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().

Here is the call graph for this function:

◆ operator() [17/17]

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.

◆ td_add()

procedure, private mo_datetime::timedelta::td_add ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

adding two timedeltas

Definition at line 325 of file mo_datetime.f90.

◆ td_copy()

procedure, private mo_datetime::timedelta::td_copy ( class(timedelta), intent(inout)  this,
class(timedelta), intent(in)  that 
)
private

copy a timedelta

Definition at line 311 of file mo_datetime.f90.

◆ td_div()

procedure, private mo_datetime::timedelta::td_div ( class(timedelta), intent(in)  this,
integer(i4), intent(in)  that 
)
private

divide a timedelta by an integer

Definition at line 332 of file mo_datetime.f90.

◆ td_div_dp()

private mo_datetime::timedelta::td_div_dp ( class(timedelta), intent(in)  this,
real(dp), intent(in)  that 
)
private

divide a timedelta by a real

Definition at line 332 of file mo_datetime.f90.

◆ td_div_td()

private mo_datetime::timedelta::td_div_td ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

divide a timedelta by a timedelta

Definition at line 332 of file mo_datetime.f90.

◆ td_eq()

procedure, private mo_datetime::timedelta::td_eq ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

equal comparison of timedeltas

Definition at line 313 of file mo_datetime.f90.

◆ td_geq()

procedure, private mo_datetime::timedelta::td_geq ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

greater than or equal comparison of timedeltas

Definition at line 323 of file mo_datetime.f90.

◆ td_gt()

procedure, private mo_datetime::timedelta::td_gt ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

greater than comparison of timedeltas

Definition at line 319 of file mo_datetime.f90.

◆ td_leq()

procedure, private mo_datetime::timedelta::td_leq ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

less than or equal comparison of timedeltas

Definition at line 321 of file mo_datetime.f90.

◆ td_lt()

procedure, private mo_datetime::timedelta::td_lt ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

less than comparison of timedeltas

Definition at line 317 of file mo_datetime.f90.

◆ td_mul1()

procedure, private mo_datetime::timedelta::td_mul1 ( class(timedelta), intent(in)  this,
integer(i4), intent(in)  that 
)
private

multiply a timedelta with an integer

Definition at line 329 of file mo_datetime.f90.

◆ td_mul1_dp()

private mo_datetime::timedelta::td_mul1_dp ( class(timedelta), intent(in)  this,
real(dp), intent(in)  that 
)
private

multiply a timedelta with a real

Definition at line 329 of file mo_datetime.f90.

◆ td_mul2()

procedure, pass, private mo_datetime::timedelta::td_mul2 ( integer(i4), intent(in)  that,
class(timedelta), intent(in)  this 
)
private

multiply a timedelta with an integer

Definition at line 330 of file mo_datetime.f90.

◆ td_mul2_dp()

pass, private mo_datetime::timedelta::td_mul2_dp ( real(dp), intent(in)  that,
class(timedelta), intent(in)  this 
)
private

multiply a timedelta with a real

Definition at line 330 of file mo_datetime.f90.

◆ td_neg()

private mo_datetime::timedelta::td_neg ( class(timedelta), intent(in)  this)
private

negative timedelta

Definition at line 327 of file mo_datetime.f90.

◆ td_neq()

procedure, private mo_datetime::timedelta::td_neq ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

not equal comparison of timedeltas

Definition at line 315 of file mo_datetime.f90.

◆ td_pos()

private mo_datetime::timedelta::td_pos ( class(timedelta), intent(in)  this)
private

positive timedelta

Definition at line 325 of file mo_datetime.f90.

◆ td_sub()

procedure, private mo_datetime::timedelta::td_sub ( class(timedelta), intent(in)  this,
class(timedelta), intent(in)  that 
)
private

adding two timedeltas

Definition at line 327 of file mo_datetime.f90.

◆ total_seconds()

procedure, public mo_datetime::timedelta::total_seconds ( class(timedelta), intent(in)  this)

timedelta in seconds (may need i8)

See also
mo_datetime::td_total_seconds

Definition at line 310 of file mo_datetime.f90.

Member Data Documentation

◆ days

integer(i4), public mo_datetime::timedelta::days = 0_i4

days of the time-span

Definition at line 304 of file mo_datetime.f90.

◆ seconds

integer(i4), public mo_datetime::timedelta::seconds = 0_i4

second of the time-span

Definition at line 305 of file mo_datetime.f90.


The documentation for this module was generated from the following file: