Contains functions that handle time
Get the number of days in a month. Accounts for leap years
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32) | :: | month | How many days in this month |
|||
integer(kind=i32), | optional | :: | year | Check if a leap year? |
Number of days
Get the number of days in a year, accounts for leap years
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32) | :: | year | How many days in this year |
Number of days
Determine whether the year is a leap year
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32) | :: | year | Year to check |
is a leap year
Convert a time in seconds to HH:MM:SS.MSEC
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64) | :: | t | Time in seconds |
Resulting string contains the time
Convert hours minutes seconds etc. to seconds
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32) | :: | values(8) | values containing amounts of days hours etc. |
time in seconds
Convert hours minutes seconds etc. to an integer. Use 64bit to prevent the 2038 problem.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32) | :: | values(8) | Values containing amounts of days hours etc. |
Time as an integer.