Implementation of a TOML datetime value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_datetime), | intent(in) | :: | lhs | |||
type(toml_datetime), | intent(in) | :: | rhs |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_datetime), | intent(in) | :: | datetime |
Create a new TOML datetime value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | year | ||
integer, | intent(in), | optional | :: | month | ||
integer, | intent(in), | optional | :: | day | ||
integer, | intent(in), | optional | :: | hour | ||
integer, | intent(in), | optional | :: | minute | ||
integer, | intent(in), | optional | :: | second | ||
integer, | intent(in), | optional | :: | msecond | ||
character(len=*), | intent(in), | optional | :: | zone |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | string |
Constructor for toml_time type, necessary due to PGI bug in NVHPC 20.7 and 20.9
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | hour | ||
integer, | intent(in), | optional | :: | minute | ||
integer, | intent(in), | optional | :: | second | ||
integer, | intent(in), | optional | :: | msec | ||
character(len=*), | intent(in), | optional | :: | zone |
TOML date value (YYYY-MM-DD)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | day | = | -1 | ||
integer, | public | :: | month | = | -1 | ||
integer, | public | :: | year | = | -1 |
TOML datatime value type
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(toml_date), | public | :: | date | ||||
type(toml_time), | public | :: | time |
Create a new TOML datetime value
private pure function new_datetime (year, month, day, hour, minute, second, msecond, zone) | |
private pure function new_datetime_from_string (string) |
TOML time value (HH:MM:SS.sssssZ…)
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | hour | = | -1 | ||
integer, | public | :: | minute | = | -1 | ||
integer, | public | :: | msec | = | -1 | ||
integer, | public | :: | second | = | -1 | ||
character(len=:), | public, | allocatable | :: | zone |
private elemental function new_toml_time (hour, minute, second, msec, zone) | Constructor for toml_time type, necessary due to PGI bug in NVHPC 20.7 and 20.9 |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_datetime), | intent(in) | :: | datetime |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_datetime), | intent(in) | :: | datetime |