{"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","derived_content_hash":"5d29f006e981e5cd0437e1b2a9a9307154bdca39091728d9e34d483a2d79a4b1","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:f9872c725984ea68da8c7a2ef4a5ee1287aec1d65e9e170b4b8d500620fae724","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:633cdb3a4509b682748f6024ef305f10d4a6b9c0e801fae56821775938baa0c6","receipt_sha256":"692e8c3fcd41dc5d174c4c2c30bababfdefc56cb2bc848601dddfa9355f03865","repair":"wiki-repair-20261023"},"signature":"to_timestamp ( text, text ) → timestamp with time zone","signature_count":2,"slug":"to-timestamp","source_rev":"wiki-repair-20261023:f9872c725984ea68da8c7a2ef4a5ee1287aec1d65e9e170b4b8d500620fae724","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":"wiki-repair-20261023:f9872c725984ea68da8c7a2ef4a5ee1287aec1d65e9e170b4b8d500620fae724","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":"根据给定的格式将字符串转换为时间戳。（也请参见表 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。）","doc":{"anchor":"FUNCTIONS-FORMATTING-TABLE","file":"functions-formatting.html","sha256":"17b479f1cd22bc7308cefeb2a307da2ef41a0e2864a6ef7d229b93257f07ad97","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-datetime.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"8c5053713aeaacfbe4cb00effc61f10d457c98b2a29c724b10b93819a087ea95","version":"18.7"},{"file":"functions-formatting.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"17b479f1cd22bc7308cefeb2a307da2ef41a0e2864a6ef7d229b93257f07ad97","version":"18.7"},{"file":"functions-datetime.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"c3efdd1c3df6795c73dfea2ecec17ca31ff37da23d758083a581d75445851f0c","version":"18.7"},{"file":"functions-formatting.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"7819c15fc71d5d2494ecc37cbef3fef041440c894a885e853c7e544c631500b4","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"formatting","group_label":"数据类型格式化函数","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":"根据给定的格式将字符串转换为时间戳。（也请参见表 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。）","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":"same-version-manual"},{"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":"将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","description_zh_html":"将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-formatting.html","sha256":"5c38a9bb5d5fa6323ad97393705e6b530fd6b8da96c63f6591468103b2af099e"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-FORMATTING-TABLE","file":"functions-formatting.html","sha256":"17b479f1cd22bc7308cefeb2a307da2ef41a0e2864a6ef7d229b93257f07ad97","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-timestamp","SourceDatabase":"center","Version":"18","Locale":"en","Title":"to_timestamp","Summary":"Converts string to time stamp according to the given format. (See also to_timestamp(double precision) in Table 9.33.)","BodyHTML":"Converts string to time stamp according to the given format. (See also \u003ccode\u003eto_timestamp(double precision)\u003c/code\u003e in \u003ca href=\"/docs/18/functions-datetime.html#FUNCTIONS-DATETIME-TABLE\" rel=\"nofollow\"\u003eTable 9.33\u003c/a\u003e.)","SourceRevision":"wiki-repair-20261023:f9872c725984ea68da8c7a2ef4a5ee1287aec1d65e9e170b4b8d500620fae724","ContentHash":"f06d66b55d9abecdd6d07b24ef6f1dc2fd2dcc8ab7f9df5e232bce7b733a5760","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.)","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":"根据给定的格式将字符串转换为时间戳。（也请参见表 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。）","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":"same-version-manual"},{"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":"将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","description_zh_html":"将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","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":"same-version-manual"}]}},"RequestedLocale":"en","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":"根据给定的格式将字符串转换为时间戳。（也请参见表 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。）","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":"same-version-manual"}},{"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":"将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","description_zh_html":"将 Unix 纪元时间（自 1970-01-01 00:00:00+00 起的秒数）转换为带时区的时间戳","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
