From: akr@... Date: 2019-07-16T02:17:54+00:00 Subject: [ruby-core:93800] [Ruby master Feature#16005] A variation of Time.iso8601 that can parse yyyy-MM-dd HH:mm:ss Issue #16005 has been updated by akr (Akira Tanaka). matsuda (Akira Matsuda) wrote: > > I would be OK with modifying Time.iso8601 to make either T or space a valid date/time separator. > > In fact this was my first proposal. I firstly asked @akr about that exact modification on `Time.iso8601`, but he didn't like the idea because that behavior is against ISO 8601 specification. I said its against XML Schema. https://www.w3.org/TR/xmlschema-2/ Time[.#]iso8601 is alias of Time[.#]xmlschema. ISO 8601 defines various representation of date and time. For example, 1985102T1015Z is valid (10:15 of 102th day of 1985 in UTC). So, practically, some profile (subset) is required. XML Schema defines a such profile and it defines that [T] is mandatory. ISO 8601 itself describes that [T] can be omitted by mutual agreement. But as far as considering XML Schema as a mutual agreement, we cannot omit [T]. Apart from that, I extracted timestamp related syntax from the SQL 92 standard. ``` ::= TIMESTAMP ::=