FORCES
FORtran lib for Comp. Env. Sys.
|
This is a container to hold only a date. More...
Public Member Functions | |
procedure, public | replace (this, year, month, day) |
new date with specified fields | |
procedure, public | with_time (in_date, in_time) |
datetime from date and time | |
procedure, public | to_datetime (this) |
convert date to a datetime | |
procedure, public | to_ordinal (this) |
convert date to number of days since year 1 | |
procedure, public | str (this) |
string representation of the date | |
procedure, public | julian (this, calendar) |
date as fractional julian day | |
procedure, public | weekday (this) |
day of the week | |
procedure, public | doy (this) |
day of the year | |
procedure, public | is_new_year (this) |
datetime is a new year | |
procedure, public | is_new_month (this) |
datetime is a new month | |
procedure, public | is_new_week (this) |
datetime is a new week | |
generic, public | operator (this, that) |
equal comparison of dates | |
generic, public | operator (this, that) |
equal comparison of date and datetime | |
generic, public | operator (this, that) |
not equal comparison of dates | |
generic, public | operator (this, that) |
not equal comparison of date and datetime | |
generic, public | operator (this, that) |
less than comparison of dates | |
generic, public | operator (this, that) |
less than comparison of date and datetime | |
generic, public | operator (this, that) |
greater than comparison of dates | |
generic, public | operator (this, that) |
greater than comparison of date and datetime | |
generic, public | operator (this, that) |
less than or equal comparison of dates | |
generic, public | operator (this, that) |
less than or equal comparison of date and datetime | |
generic, public | operator (this, that) |
greater than or equal comparison of dates | |
generic, public | operator (this, that) |
greater than or equal comparison of date and datetime | |
generic, public | operator (this, that) |
add a timedelta to a date | |
generic, public | operator (that, this) |
add a timedelta to a date | |
generic, public | operator (this, that) |
subtract a timedelta from a date | |
generic, public | operator (this, that) |
difference between two dates | |
generic, public | operator (this, that) |
difference between date and datetime | |
Public Attributes | |
integer(i4), public | year = 1_i4 |
1 <= year <= 9999 | |
integer(i4), public | month = 1_i4 |
1 <= month <= 12 | |
integer(i4), public | day = 1_i4 |
1 <= day <= number of days in the given month and year | |
Private Member Functions | |
procedure, private | d_eq (this, that) |
equal comparison of dates | |
private | d_eq_dt (this, that) |
equal comparison of date and datetime | |
procedure, private | d_neq (this, that) |
not equal comparison of dates | |
private | d_neq_dt (this, that) |
not equal comparison of date and datetime | |
procedure, private | d_lt (this, that) |
less than comparison of dates | |
private | d_lt_dt (this, that) |
less than comparison of date and datetime | |
procedure, private | d_gt (this, that) |
greater than comparison of dates | |
private | d_gt_dt (this, that) |
greater than comparison of date and datetime | |
procedure, private | d_leq (this, that) |
less than or equal comparison of dates | |
private | d_leq_dt (this, that) |
less than or equal comparison of date and datetime | |
procedure, private | d_geq (this, that) |
greater than or equal comparison of dates | |
private | d_geq_dt (this, that) |
greater than or equal comparison of date and datetime | |
procedure, private | d_add_td (this, that) |
add a timedelta to a date | |
procedure, pass, private | td_add_d (that, this) |
add a timedelta to a date | |
procedure, private | d_sub_td (this, that) |
subtract a timedelta from a date | |
private | d_sub_d (this, that) |
difference between two dates | |
private | d_sub_dt (this, that) |
difference between date and datetime | |
This is a container to hold only a date.
Definition at line 154 of file mo_datetime.f90.
|
private |
add a timedelta to a date
Definition at line 193 of file mo_datetime.f90.
|
private |
equal comparison of dates
Definition at line 181 of file mo_datetime.f90.
|
private |
equal comparison of date and datetime
Definition at line 181 of file mo_datetime.f90.
|
private |
greater than or equal comparison of dates
Definition at line 191 of file mo_datetime.f90.
|
private |
greater than or equal comparison of date and datetime
Definition at line 191 of file mo_datetime.f90.
|
private |
greater than comparison of dates
Definition at line 187 of file mo_datetime.f90.
|
private |
greater than comparison of date and datetime
Definition at line 187 of file mo_datetime.f90.
|
private |
less than or equal comparison of dates
Definition at line 189 of file mo_datetime.f90.
|
private |
less than or equal comparison of date and datetime
Definition at line 189 of file mo_datetime.f90.
|
private |
less than comparison of dates
Definition at line 185 of file mo_datetime.f90.
|
private |
less than comparison of date and datetime
Definition at line 185 of file mo_datetime.f90.
|
private |
not equal comparison of dates
Definition at line 183 of file mo_datetime.f90.
|
private |
not equal comparison of date and datetime
Definition at line 183 of file mo_datetime.f90.
|
private |
difference between two dates
Definition at line 196 of file mo_datetime.f90.
|
private |
difference between date and datetime
Definition at line 196 of file mo_datetime.f90.
|
private |
subtract a timedelta from a date
Definition at line 196 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::doy | ( | class(puredate), intent(in) | this | ) |
procedure, public mo_datetime::puredate::is_new_month | ( | class(puredate), intent(in) | this | ) |
datetime is a new month
Definition at line 178 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::is_new_week | ( | class(puredate), intent(in) | this | ) |
datetime is a new week
Definition at line 180 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::is_new_year | ( | class(puredate), intent(in) | this | ) |
datetime is a new year
Definition at line 176 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::julian | ( | class(puredate), intent(in) | this, |
integer(i4), intent(in), optional | calendar | ||
) |
date as fractional julian day
[in] | calendar | The calendar to use, the global calendar will be used by default |
Definition at line 170 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(timedelta), intent(in) | that, |
class(puredate), intent(in) | this | ||
) |
add a timedelta to a date
Definition at line 195 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
equal comparison of date and datetime
Definition at line 182 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
equal comparison of dates
Definition at line 182 of file mo_datetime.f90.
References mo_datetime::d_eq(), and mo_datetime::d_eq_dt().
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
not equal comparison of dates
Definition at line 184 of file mo_datetime.f90.
References mo_datetime::d_neq(), and mo_datetime::d_neq_dt().
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
not equal comparison of date and datetime
Definition at line 184 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
less than comparison of date and datetime
Definition at line 186 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
less than comparison of dates
Definition at line 186 of file mo_datetime.f90.
References mo_datetime::d_lt(), and mo_datetime::d_lt_dt().
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
greater than comparison of dates
Definition at line 188 of file mo_datetime.f90.
References mo_datetime::d_gt(), and mo_datetime::d_gt_dt().
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
greater than comparison of date and datetime
Definition at line 188 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
less than or equal comparison of dates
Definition at line 190 of file mo_datetime.f90.
References mo_datetime::d_leq(), and mo_datetime::d_leq_dt().
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
less than or equal comparison of date and datetime
Definition at line 190 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
greater than or equal comparison of dates
Definition at line 192 of file mo_datetime.f90.
References mo_datetime::d_geq(), and mo_datetime::d_geq_dt().
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
greater than or equal comparison of date and datetime
Definition at line 192 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
add a timedelta to a date
Definition at line 195 of file mo_datetime.f90.
References mo_datetime::d_add_td(), and mo_datetime::td_add_d().
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
subtract a timedelta from a date
Definition at line 197 of file mo_datetime.f90.
References mo_datetime::d_sub_d(), mo_datetime::d_sub_dt(), and mo_datetime::d_sub_td().
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
difference between two dates
Definition at line 197 of file mo_datetime.f90.
generic, public mo_datetime::puredate::operator | ( | class(puredate), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
difference between date and datetime
Definition at line 197 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::replace | ( | class(puredate), intent(in) | this, |
integer(i4), intent(in), optional | year, | ||
integer(i4), intent(in), optional | month, | ||
integer(i4), intent(in), optional | day | ||
) |
new date with specified fields
[in] | year | 1 <= year <= 9999 |
[in] | month | 1 <= month <= 12 |
[in] | day | 1 <= day <= number of days in the given month and year |
Definition at line 160 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::str | ( | class(puredate), intent(in) | this | ) |
string representation of the date
Definition at line 168 of file mo_datetime.f90.
|
private |
add a timedelta to a date
Definition at line 194 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::to_datetime | ( | class(puredate), intent(in) | this | ) |
convert date to a datetime
Definition at line 164 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::to_ordinal | ( | class(puredate), intent(in) | this | ) |
convert date to number of days since year 1
Definition at line 166 of file mo_datetime.f90.
procedure, public mo_datetime::puredate::weekday | ( | class(puredate), intent(in) | this | ) |
procedure, public mo_datetime::puredate::with_time | ( | 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 162 of file mo_datetime.f90.
integer(i4), public mo_datetime::puredate::day = 1_i4 |
1 <= day <= number of days in the given month and year
Definition at line 157 of file mo_datetime.f90.
integer(i4), public mo_datetime::puredate::month = 1_i4 |
1 <= month <= 12
Definition at line 156 of file mo_datetime.f90.
integer(i4), public mo_datetime::puredate::year = 1_i4 |
1 <= year <= 9999
Definition at line 155 of file mo_datetime.f90.