parseDateTime

private fnDateTime parseDateTime(const(char)[] raw) pure @safe

Parse an SDL datetime literal to std.datetime.date.DateTime.

Format: yyyy/mm/dd hh:mm(:ss)(.xxx)(-ZONE) Timezone is parsed but may be discarded if not representable in DateTime. Parse an SDL datetime literal to std.datetime.DateTime.

Timezone_Handling: SDL datetime literals may include timezone information (e.g., "2005/12/05 14:12:23-GMT"). This implementation currently discards any timezone suffix and returns a naive DateTime. If timezone-aware datetime handling is required, consider using a separate timezone-aware datetime library and parsing the timezone suffix manually from the raw input.

Format: yyyy/mm/dd hh:mm:ss(.xxx)(-TZ)

Examples

2005/12/05 14:12:23, 2005/12/05 14:12:23.345-GMT