FORCES
FORtran lib for Comp. Env. Sys.
|
This is a container to hold a date-time. More...
Public Member Functions | |
procedure, public | replace (this, year, month, day, hour, minute, second) |
new datetime with specified fields | |
procedure, public | date (this) |
date of the datetime | |
procedure, public | time (this) |
time of the datetime | |
procedure, public | str (this) |
string representation of the datetime | |
procedure, public | julian (this, calendar) |
datetime 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 | |
procedure, public | is_new_day (this) |
datetime is a new day | |
procedure, public | is_new_hour (this) |
datetime is a new hour | |
procedure, public | is_new_minute (this) |
datetime is a new month | |
generic, public | assignment (this, that) |
copy a datetime | |
generic, public | assignment (this, that) |
copy a datetime from a date | |
generic, public | operator (this, that) |
equal comparison of datetimes | |
generic, public | operator (this, that) |
equal comparison of datetime and date | |
generic, public | operator (this, that) |
not equal comparison of datetimes | |
generic, public | operator (this, that) |
not equal comparison of datetime and date | |
generic, public | operator (this, that) |
less than comparison of datetimes | |
generic, public | operator (this, that) |
less than comparison of datetime and date | |
generic, public | operator (this, that) |
greater than comparison of datetimes | |
generic, public | operator (this, that) |
greater than comparison of datetime and date | |
generic, public | operator (this, that) |
less than or equal comparison of datetimes | |
generic, public | operator (this, that) |
less than or equal comparison of datetime and date | |
generic, public | operator (this, that) |
greater than or equal comparison of datetimes | |
generic, public | operator (this, that) |
less than or equal comparison of datetime and date | |
generic, public | operator (this, that) |
add a timedelta to a datetime | |
generic, public | operator (that, this) |
add a timedelta to a datetime | |
generic, public | operator (this, that) |
subtract a timedelta from a datetime | |
generic, public | operator (this, that) |
difference between two datetimes | |
generic, public | operator (this, that) |
difference between datetime and date | |
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 | |
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 | dt_copy_dt (this, that) |
copy a datetime | |
private | dt_copy_d (this, that) |
copy a datetime from a date | |
procedure, private | dt_eq (this, that) |
equal comparison of datetimes | |
private | dt_eq_d (this, that) |
equal comparison of datetime and date | |
procedure, private | dt_neq (this, that) |
not equal comparison of datetimes | |
private | dt_neq_d (this, that) |
not equal comparison of datetime and date | |
procedure, private | dt_lt (this, that) |
less than comparison of datetimes | |
private | dt_lt_d (this, that) |
less than comparison of datetime and date | |
procedure, private | dt_gt (this, that) |
greater than comparison of datetimes | |
private | dt_gt_d (this, that) |
greater than comparison of datetime and date | |
procedure, private | dt_leq (this, that) |
less than or equal comparison of datetimes | |
private | dt_leq_d (this, that) |
less than or equal comparison of datetime and date | |
procedure, private | dt_geq (this, that) |
greater than or equal comparison of datetimes | |
private | dt_geq_d (this, that) |
less than or equal comparison of datetime and date | |
procedure, private | dt_add_td (this, that) |
add a timedelta to a datetime | |
procedure, pass, private | td_add_dt (that, this) |
add a timedelta to a datetime | |
procedure, private | dt_sub_td (this, that) |
subtract a timedelta from a datetime | |
private | dt_sub_dt (this, that) |
difference between two datetimes | |
private | dt_sub_d (this, that) |
difference between datetime and date | |
This is a container to hold a date-time.
Definition at line 246 of file mo_datetime.f90.
generic, public mo_datetime::datetime::assignment | ( | class(datetime), intent(inout) | this, |
class(puredate), intent(in) | that | ||
) |
copy a datetime from a date
Definition at line 281 of file mo_datetime.f90.
generic, public mo_datetime::datetime::assignment | ( | class(datetime), intent(inout) | this, |
class(datetime), intent(in) | that | ||
) |
copy a datetime
Definition at line 281 of file mo_datetime.f90.
References mo_datetime::dt_copy_d(), and mo_datetime::dt_copy_dt().
procedure, public mo_datetime::datetime::date | ( | class(datetime), intent(in) | this | ) |
procedure, public mo_datetime::datetime::doy | ( | class(datetime), intent(in) | this | ) |
|
private |
add a timedelta to a datetime
Definition at line 294 of file mo_datetime.f90.
|
private |
copy a datetime from a date
Definition at line 280 of file mo_datetime.f90.
|
private |
copy a datetime
Definition at line 280 of file mo_datetime.f90.
|
private |
equal comparison of datetimes
Definition at line 282 of file mo_datetime.f90.
|
private |
equal comparison of datetime and date
Definition at line 282 of file mo_datetime.f90.
|
private |
greater than or equal comparison of datetimes
Definition at line 292 of file mo_datetime.f90.
|
private |
less than or equal comparison of datetime and date
Definition at line 292 of file mo_datetime.f90.
|
private |
greater than comparison of datetimes
Definition at line 288 of file mo_datetime.f90.
|
private |
greater than comparison of datetime and date
Definition at line 288 of file mo_datetime.f90.
|
private |
less than or equal comparison of datetimes
Definition at line 290 of file mo_datetime.f90.
|
private |
less than or equal comparison of datetime and date
Definition at line 290 of file mo_datetime.f90.
|
private |
less than comparison of datetimes
Definition at line 286 of file mo_datetime.f90.
|
private |
less than comparison of datetime and date
Definition at line 286 of file mo_datetime.f90.
|
private |
not equal comparison of datetimes
Definition at line 284 of file mo_datetime.f90.
|
private |
not equal comparison of datetime and date
Definition at line 284 of file mo_datetime.f90.
|
private |
difference between datetime and date
Definition at line 297 of file mo_datetime.f90.
|
private |
difference between two datetimes
Definition at line 297 of file mo_datetime.f90.
|
private |
subtract a timedelta from a datetime
Definition at line 297 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::is_new_day | ( | class(datetime), intent(in) | this | ) |
datetime is a new day
Definition at line 275 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::is_new_hour | ( | class(datetime), intent(in) | this | ) |
datetime is a new hour
Definition at line 277 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::is_new_minute | ( | class(datetime), intent(in) | this | ) |
datetime is a new month
Definition at line 279 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::is_new_month | ( | class(datetime), intent(in) | this | ) |
datetime is a new month
Definition at line 271 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::is_new_week | ( | class(datetime), intent(in) | this | ) |
datetime is a new week
Definition at line 273 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::is_new_year | ( | class(datetime), intent(in) | this | ) |
datetime is a new year
Definition at line 269 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::julian | ( | class(datetime), intent(in) | this, |
integer(i4), intent(in), optional | calendar | ||
) |
datetime as fractional julian day
[in] | calendar | The calendar to use, the global calendar will be used by default |
Definition at line 263 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(timedelta), intent(in) | that, |
class(datetime), intent(in) | this | ||
) |
add a timedelta to a datetime
Definition at line 296 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
equal comparison of datetimes
Definition at line 283 of file mo_datetime.f90.
References mo_datetime::dt_eq(), and mo_datetime::dt_eq_d().
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
equal comparison of datetime and date
Definition at line 283 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
not equal comparison of datetime and date
Definition at line 285 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
not equal comparison of datetimes
Definition at line 285 of file mo_datetime.f90.
References mo_datetime::dt_neq(), and mo_datetime::dt_neq_d().
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
less than comparison of datetimes
Definition at line 287 of file mo_datetime.f90.
References mo_datetime::dt_lt(), and mo_datetime::dt_lt_d().
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
less than comparison of datetime and date
Definition at line 287 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
greater than comparison of datetimes
Definition at line 289 of file mo_datetime.f90.
References mo_datetime::dt_gt(), and mo_datetime::dt_gt_d().
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
greater than comparison of datetime and date
Definition at line 289 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
less than or equal comparison of datetimes
Definition at line 291 of file mo_datetime.f90.
References mo_datetime::dt_leq(), and mo_datetime::dt_leq_d().
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
less than or equal comparison of datetime and date
Definition at line 291 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
greater than or equal comparison of datetimes
Definition at line 293 of file mo_datetime.f90.
References mo_datetime::dt_geq(), and mo_datetime::dt_geq_d().
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
less than or equal comparison of datetime and date
Definition at line 293 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
add a timedelta to a datetime
Definition at line 296 of file mo_datetime.f90.
References mo_datetime::dt_add_td(), and mo_datetime::td_add_dt().
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(timedelta), intent(in) | that | ||
) |
subtract a timedelta from a datetime
Definition at line 298 of file mo_datetime.f90.
References mo_datetime::dt_sub_d(), mo_datetime::dt_sub_dt(), and mo_datetime::dt_sub_td().
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(datetime), intent(in) | that | ||
) |
difference between two datetimes
Definition at line 298 of file mo_datetime.f90.
generic, public mo_datetime::datetime::operator | ( | class(datetime), intent(in) | this, |
class(puredate), intent(in) | that | ||
) |
difference between datetime and date
Definition at line 298 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::replace | ( | class(datetime), intent(in) | this, |
integer(i4), intent(in), optional | year, | ||
integer(i4), intent(in), optional | month, | ||
integer(i4), intent(in), optional | day, | ||
integer(i4), intent(in), optional | hour, | ||
integer(i4), intent(in), optional | minute, | ||
integer(i4), intent(in), optional | second | ||
) |
new datetime 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 |
[in] | hour | 0 <= hour < 24 |
[in] | minute | 0 <= minute < 60 |
[in] | second | 0 <= second < 60 |
Definition at line 255 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::str | ( | class(datetime), intent(in) | this | ) |
string representation of the datetime
Definition at line 261 of file mo_datetime.f90.
|
private |
add a timedelta to a datetime
Definition at line 295 of file mo_datetime.f90.
procedure, public mo_datetime::datetime::time | ( | class(datetime), intent(in) | this | ) |
procedure, public mo_datetime::datetime::weekday | ( | class(datetime), intent(in) | this | ) |
integer(i4), public mo_datetime::datetime::day = 1_i4 |
1 <= day <= number of days in the given month and year
Definition at line 249 of file mo_datetime.f90.
integer(i4), public mo_datetime::datetime::hour = 0_i4 |
0 <= hour < 24
Definition at line 250 of file mo_datetime.f90.
integer(i4), public mo_datetime::datetime::minute = 0_i4 |
0 <= minute < 60
Definition at line 251 of file mo_datetime.f90.
integer(i4), public mo_datetime::datetime::month = 1_i4 |
1 <= month <= 12
Definition at line 248 of file mo_datetime.f90.
integer(i4), public mo_datetime::datetime::second = 0_i4 |
0 <= second < 60
Definition at line 252 of file mo_datetime.f90.
integer(i4), public mo_datetime::datetime::year = 1_i4 |
1 <= year <= 9999
Definition at line 247 of file mo_datetime.f90.