Go to the source code of this file.
|
| type | datetime |
| | Compact representation of date and time Stores all components in minimal integer kinds to reduce memory usage. All fields are public for easy access. More...
|
| |
|
| elemental type(datetime) function | datetime_new (year, month, day, hour, minute, second, millisecond) |
| | Constructor.
|
| |
| elemental type(datetime) function | datetime_new_from_string (string, fmt) |
| |
| type(datetime) function, public | now () |
| | Return current local date and time Uses intrinsic date_and_time() and populates all fields including milliseconds.
|
| |
| pure elemental integer function | weekday (this) |
| | Returns the day of the week calculated using Zeller's congruence. Returned value is an integer scalar in the range [0-6], such that:
|
| |
| elemental subroutine | datetime_parse (this, string, fmt) |
| | Parse date/time from string using common formats.
|
| |
| character(:) function, allocatable | datetime_to_string (this, fmt) |
| | Format datetime as string using flexible format codes Supports many common patterns including those required for __DATE__ and __TIMESTAMP__. Default format: 'yyyy-MM-ddTHH:mm:ss'.
|
| |