Derived types and interfaces | |
| 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... | |
Functions/Subroutines | |
| elemental type(datetime) function | datetime_new (year, month, day, hour, minute, second, millisecond) |
| 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) |
| 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' Remarks. | |
|
private |
|
private |
|
private |
Parse date/time from string using common formats.
Supports ISO, US, and abbreviated month formats. On error, defaults to Unix epoch (1970-01-01 00:00:00) Perform conversion to ISO string
Remarks
|
private |