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

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
 

Detailed Description

This is a container to hold only a time.

Definition at line 202 of file mo_datetime.f90.

Member Function/Subroutine Documentation

◆ assignment()

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

Here is the call graph for this function:

◆ day_second()

procedure, public mo_datetime::puretime::day_second ( class(puretime), intent(in)  this)

time to second of the day

See also
mo_datetime::t_day_second

Definition at line 214 of file mo_datetime.f90.

◆ is_midnight()

procedure, public mo_datetime::puretime::is_midnight ( class(puretime), intent(in)  this)

time is a new day / midnight

See also
mo_datetime::t_is_new_day

Definition at line 216 of file mo_datetime.f90.

◆ is_new_day()

procedure, public mo_datetime::puretime::is_new_day ( class(puretime), intent(in)  this)

time is a new day / midnight

See also
mo_datetime::t_is_new_day

Definition at line 218 of file mo_datetime.f90.

◆ is_new_hour()

procedure, public mo_datetime::puretime::is_new_hour ( class(puretime), intent(in)  this)

time is a new hour

See also
mo_datetime::t_is_new_hour

Definition at line 220 of file mo_datetime.f90.

◆ is_new_minute()

procedure, public mo_datetime::puretime::is_new_minute ( class(puretime), intent(in)  this)

time is a new month

See also
mo_datetime::t_is_new_minute

Definition at line 222 of file mo_datetime.f90.

◆ operator() [1/10]

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.

◆ operator() [2/10]

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

Here is the call graph for this function:

◆ operator() [3/10]

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

Here is the call graph for this function:

◆ operator() [4/10]

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

Here is the call graph for this function:

◆ operator() [5/10]

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

Here is the call graph for this function:

◆ operator() [6/10]

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

Here is the call graph for this function:

◆ operator() [7/10]

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

Here is the call graph for this function:

◆ operator() [8/10]

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

Here is the call graph for this function:

◆ operator() [9/10]

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.

◆ operator() [10/10]

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

Here is the call graph for this function:

◆ replace()

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

Parameters
[in]hour0 <= hour < 24
[in]minute0 <= minute < 60
[in]second0 <= second < 60
See also
mo_datetime::t_replace

Definition at line 208 of file mo_datetime.f90.

◆ str()

procedure, public mo_datetime::puretime::str ( class(puretime), intent(in)  this)

string representation of the time

See also
mo_datetime::t_str

Definition at line 212 of file mo_datetime.f90.

◆ t_add_td()

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

add a timedelta to a time

Definition at line 237 of file mo_datetime.f90.

◆ t_copy()

procedure, private mo_datetime::puretime::t_copy ( class(puretime), intent(inout)  this,
class(puretime), intent(in)  that 
)
private

copy a time

Definition at line 223 of file mo_datetime.f90.

◆ t_eq()

procedure, private mo_datetime::puretime::t_eq ( class(puretime), intent(in)  this,
class(puretime), intent(in)  that 
)
private

equal comparison of times

Definition at line 225 of file mo_datetime.f90.

◆ t_geq()

procedure, private mo_datetime::puretime::t_geq ( class(puretime), intent(in)  this,
class(puretime), intent(in)  that 
)
private

greater than or equal comparison of times

Definition at line 235 of file mo_datetime.f90.

◆ t_gt()

procedure, private mo_datetime::puretime::t_gt ( class(puretime), intent(in)  this,
class(puretime), intent(in)  that 
)
private

greater than comparison of times

Definition at line 231 of file mo_datetime.f90.

◆ t_leq()

procedure, private mo_datetime::puretime::t_leq ( class(puretime), intent(in)  this,
class(puretime), intent(in)  that 
)
private

less than or equal comparison of times

Definition at line 233 of file mo_datetime.f90.

◆ t_lt()

procedure, private mo_datetime::puretime::t_lt ( class(puretime), intent(in)  this,
class(puretime), intent(in)  that 
)
private

less than comparison of times

Definition at line 229 of file mo_datetime.f90.

◆ t_neq()

procedure, private mo_datetime::puretime::t_neq ( class(puretime), intent(in)  this,
class(puretime), intent(in)  that 
)
private

not equal comparison of times

Definition at line 227 of file mo_datetime.f90.

◆ t_sub_t()

private mo_datetime::puretime::t_sub_t ( class(puretime), intent(in)  this,
class(puretime), intent(in)  that 
)
private

difference between two times

Definition at line 240 of file mo_datetime.f90.

◆ t_sub_td()

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

subtract a timedelta from a time

Definition at line 240 of file mo_datetime.f90.

◆ td_add_t()

procedure, pass, private mo_datetime::puretime::td_add_t ( class(timedelta), intent(in)  that,
class(puretime), intent(in)  this 
)
private

add a timedelta to a time

Definition at line 238 of file mo_datetime.f90.

◆ with_date()

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

Parameters
[in]in_datedate to use
[in]in_timetime to use (midnight by default)
See also
mo_datetime::dt_from_date_time

Definition at line 210 of file mo_datetime.f90.

Member Data Documentation

◆ hour

integer(i4), public mo_datetime::puretime::hour = 0_i4

0 <= hour < 24

Definition at line 203 of file mo_datetime.f90.

◆ minute

integer(i4), public mo_datetime::puretime::minute = 0_i4

0 <= minute < 60

Definition at line 204 of file mo_datetime.f90.

◆ second

integer(i4), public mo_datetime::puretime::second = 0_i4

0 <= second < 60

Definition at line 205 of file mo_datetime.f90.


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