public DateTime(text as String, timeZone as TimeZone = TimeZone.local):
Description
Constructs a DateTime by parsing an ISO 8601 date-time string (e.g., "2025-04-18 14:30:00" or "2025-04-18T14:30:00").
Parameters
text The ISO 8601 formatted string.
timeZone The time zone to use (default: `TimeZone.local`). ```klyn import klyn.time dt = DateTime("2025-04-18 14:30:00") print(dt.year, dt.month, dt.day) ```