{"Entry":{"collection":"func","key":"to-timestamp","name":"to_timestamp","aliases":[],"metadata":{"changed_in":["8.0","8.1"],"changes":[{"descriptions_changed":true,"doc_overhaul":false,"from":"7.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"7.2"},{"descriptions_changed":false,"doc_overhaul":false,"from":"7.4","group_changed":null,"signatures":{"added":["to_timestamp ( text, text ) → timestamp with time zone"],"removed":["to_timestamp ( text, text ) → timestamp"]},"status":"changed","to":"8.0"},{"descriptions_changed":false,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":["to_timestamp ( double precision ) → timestamp with time zone"],"removed":[]},"status":"changed","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"14","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"15"}],"content_hash":"c0e0328d1da2a7d1a28be613117944adcfc89a0ba86f9da2ebca24a4bcdc0327","first_version":"7.1","group":"formatting","group_label":"Data Type Formatting Functions","groups":["formatting","datetime"],"imported_at":"2026-09-27T17:57:28.501907+08:00","last_version":"20","name":"to_timestamp","name_key":"to_timestamp","position":7003,"present_in":["7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"to_timestamp ( text, text ) → timestamp with time zone","signature_count":2,"slug":"to-timestamp","source_rev":"b7bd9cda","summary":"Converts string to time stamp according to the given format.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-timestamp","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"to-timestamp","SourceRevision":"b7bd9cda","Facts":{"description":"Converts string to time stamp according to the given format. (See also to_timestamp(double precision) in Table 9.33.)","description_html":"Converts string to time stamp according to the given format. (See also \u003ccode class=\"function\"\u003eto_timestamp(double precision)\u003c/code\u003e in \u003ca href=\"/docs/18/functions-datetime.html#FUNCTIONS-DATETIME-TABLE\" title=\"Table 9.33. Date/Time Functions\"\u003eTable 9.33\u003c/a\u003e.)","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-FORMATTING-TABLE","file":"functions-formatting.html","slug":"18"},"group":"formatting","group_label":"Data Type Formatting Functions","lang":"en","layout":"table-new","pages":["functions-formatting.html","functions-datetime.html"],"prose_only":false,"signatures":[{"description":"Converts string to time stamp according to the given format. (See also to_timestamp(double precision) in Table 9.33.)","description_html":"Converts string to time stamp according to the given format. (See also \u003ccode class=\"function\"\u003eto_timestamp(double precision)\u003c/code\u003e in \u003ca href=\"/docs/18/functions-datetime.html#FUNCTIONS-DATETIME-TABLE\" title=\"Table 9.33. Date/Time Functions\"\u003eTable 9.33\u003c/a\u003e.)","description_zh":"","description_zh_html":"","examples":[{"expr":"to_timestamp('05 Dec 2000', 'DD Mon YYYY')","result":"2000-12-05 00:00:00-05"}],"html":"\u003ccode class=\"function\"\u003eto_timestamp\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etimestamp with time zone\u003c/code\u003e","returns":"timestamp with time zone","text":"to_timestamp ( text, text ) → timestamp with time zone","zh_from":""},{"description":"Convert Unix epoch (seconds since 1970-01-01 00:00:00+00) to timestamp with time zone","description_html":"Convert Unix epoch (seconds since 1970-01-01 00:00:00+00) to timestamp with time zone","description_zh":"","description_zh_html":"","examples":[{"expr":"to_timestamp(1284352323)","result":"2010-09-13 04:32:03+00"}],"html":"\u003ccode class=\"function\"\u003eto_timestamp\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etimestamp with time zone\u003c/code\u003e","returns":"timestamp with time zone","text":"to_timestamp ( double precision ) → timestamp with time zone","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-FORMATTING-TABLE","file":"functions-formatting.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-timestamp","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"to_timestamp","Summary":"根据给定的格式将字符串转换为时间戳。（也请参见表 9.33中的to_timestamp(double precision)。）","BodyHTML":"根据给定的格式将字符串转换为时间戳。（也请参见\u003ca href=\"/docs/18/functions-datetime.html#FUNCTIONS-DATETIME-TABLE\" rel=\"nofollow\"\u003e表 9.33\u003c/a\u003e中的\u003ccode\u003eto_timestamp(double precision)\u003c/code\u003e。）\u003cpre\u003eto_timestamp ( text, text ) → timestamp with time zone\u003c/pre\u003e根据给定的格式将字符串转换为时间戳。（也请参见\u003ca href=\"/docs/18/functions-datetime.html#FUNCTIONS-DATETIME-TABLE\" rel=\"nofollow\"\u003e表 9.33\u003c/a\u003e中的\u003ccode\u003eto_timestamp(double precision)\u003c/code\u003e。）\u003cpre\u003eto_timestamp ( double precision ) → timestamp with time zone\u003c/pre\u003e将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","SourceRevision":"ca936764","ContentHash":"56d2def4029bbefcea81971a8ca04fbc718f5d97cef4f1e8091847b9789086d3","Payload":{"description_zh":"根据给定的格式将字符串转换为时间戳。（也请参见表 9.33中的to_timestamp(double precision)。）","description_zh_html":"根据给定的格式将字符串转换为时间戳。（也请参见\u003ca href=\"/docs/18/functions-datetime.html#FUNCTIONS-DATETIME-TABLE\" title=\"表 9.33. 日期/时间函数\"\u003e表 9.33\u003c/a\u003e中的\u003ccode class=\"function\"\u003eto_timestamp(double precision)\u003c/code\u003e。）","signatures":[{"description_zh":"根据给定的格式将字符串转换为时间戳。（也请参见表 9.33中的to_timestamp(double precision)。）","description_zh_html":"根据给定的格式将字符串转换为时间戳。（也请参见\u003ca href=\"/docs/18/functions-datetime.html#FUNCTIONS-DATETIME-TABLE\" title=\"表 9.33. 日期/时间函数\"\u003e表 9.33\u003c/a\u003e中的\u003ccode class=\"function\"\u003eto_timestamp(double precision)\u003c/code\u003e。）","returns":"timestamp with time zone","text":"to_timestamp ( text, text ) → timestamp with time zone","zh_from":"doc"},{"description_zh":"将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","description_zh_html":"将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","returns":"timestamp with time zone","text":"to_timestamp ( double precision ) → timestamp with time zone","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.1","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"9aba4ff8ead948320a615fef7de5cd0e7526f2552d971e9ad21f8bbed8b4e8cb","Text":"to_timestamp ( text, text ) → timestamp with time zone","Returns":"timestamp with time zone","Payload":{"description":"Converts string to time stamp according to the given format. (See also to_timestamp(double precision) in Table 9.33.)","description_html":"Converts string to time stamp according to the given format. (See also \u003ccode class=\"function\"\u003eto_timestamp(double precision)\u003c/code\u003e in \u003ca href=\"/docs/18/functions-datetime.html#FUNCTIONS-DATETIME-TABLE\" title=\"Table 9.33. Date/Time Functions\"\u003eTable 9.33\u003c/a\u003e.)","description_zh":"","description_zh_html":"","examples":[{"expr":"to_timestamp('05 Dec 2000', 'DD Mon YYYY')","result":"2000-12-05 00:00:00-05"}],"html":"\u003ccode class=\"function\"\u003eto_timestamp\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etimestamp with time zone\u003c/code\u003e","returns":"timestamp with time zone","text":"to_timestamp ( text, text ) → timestamp with time zone","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"11668f36c9d8ab8c26230fc3d916688e5be88393f2f0b0faa6b9f885407ea2b8","Text":"to_timestamp ( double precision ) → timestamp with time zone","Returns":"timestamp with time zone","Payload":{"description":"Convert Unix epoch (seconds since 1970-01-01 00:00:00+00) to timestamp with time zone","description_html":"Convert Unix epoch (seconds since 1970-01-01 00:00:00+00) to timestamp with time zone","description_zh":"","description_zh_html":"","examples":[{"expr":"to_timestamp(1284352323)","result":"2010-09-13 04:32:03+00"}],"html":"\u003ccode class=\"function\"\u003eto_timestamp\u003c/code\u003e ( \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etimestamp with time zone\u003c/code\u003e","returns":"timestamp with time zone","text":"to_timestamp ( double precision ) → timestamp with time zone","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
