1

在 Postgres 中日期/时间类型的文档中,它说:

ISO 8601 指定使用大写字母 T 来分隔日期和时间。PostgreSQL 在输入时接受该格式,但在输出时它使用空格而不是 T,如上所示。这是为了可读性和与 RFC 3339 以及其他一些数据库系统的一致性。

但是,我在RFC3339中找不到该部分。有谁能够帮我?

4

1 回答 1

1

第 5.6 节

date-time       = full-date "T" full-time

      NOTE: Per [ABNF] and ISO8601, the "T" and "Z" characters in this
      syntax may alternatively be lower case "t" or "z" respectively.

      This date/time format may be used in some environments or contexts
      that distinguish between the upper- and lower-case letters 'A'-'Z'
      and 'a'-'z' (e.g. XML).  Specifications that use this format in
      such environments MAY further limit the date/time syntax so that
      the letters 'T' and 'Z' used in the date/time syntax must always
      be upper case.  Applications that generate this format SHOULD use
      upper case letters.

      NOTE: ISO 8601 defines date and time separated by "T".
      Applications using this syntax may choose, for the sake of
      readability, to specify a full-date and full-time separated by
      (say) a space character.
于 2020-11-25T07:50:51.560 回答