Postgresql 中文操作指南

Appendix B. Date/Time Support

Table of Contents

PostgreSQL 对所有日期/时间输入支持使用内部启发式解析器。日期和时间作为字符串输入,并且可以用初步确定的字段类型划分成不同的字段。每个字段被解释并且分配一个数字值、忽略或拒绝。解析器包含所有文本字段的内部查找表,包括月份、星期几和时区。

PostgreSQL uses an internal heuristic parser for all date/time input support. Dates and times are input as strings, and are broken up into distinct fields with a preliminary determination of what kind of information can be in the field. Each field is interpreted and either assigned a numeric value, ignored, or rejected. The parser contains internal lookup tables for all textual fields, including months, days of the week, and time zones.

本附录包含关于这些查找表的内容的信息,并且描述了解析器用来解码日期和时间的步骤。

This appendix includes information on the content of these lookup tables and describes the steps used by the parser to decode dates and times.