TIMESTAMP (timestamp without time zone)

Last updated: 2026-11-04

TIMESTAMP (timestamp without time zone)

TIMESTAMP (without time zone) combines a date and a time of day, ranging from 4713 BC to 294276 AD with microsecond precision in 8 bytes. It denotes a wall-clock reading and records no zone, so the same TIMESTAMP can mean different absolute instants in Beijing and New York. Choose it only when every participant is known to share one zone, or when the business genuinely means local wall time, such as "the shop opens at 09:00 every day".

Kindtype
Example LanguageSQL

📝 Syntax

TIMESTAMP  |  TIMESTAMP WITHOUT TIME ZONE  ——  8 bytes, microsecond precision
TIMESTAMP(precision)  ——  specifies fractional-second precision, default 6

Returns:Stores a date and time without a zone. Adding an INTERVAL yields a new timestamp, subtracting two TIMESTAMPs yields an INTERVAL, and extract(epoch FROM ...) produces a Unix timestamp, with zone-less timestamps interpreted as UTC.

▶ Example

Runs real PostgreSQL 18 right in your browser (PGlite WASM, nothing to install). Press ▶ Run and the result appears in the panel below.

Output:

 id |         created_at         |         plus_1_day         | epoch_seconds |          col_type
----+----------------------------+----------------------------+---------------+-----------------------------
  1 | 2024-03-15 10:30:00        | 2024-03-16 10:30:00        |    1710498600 | timestamp without time zone
  2 | 2024-03-15 10:30:00.123456 | 2024-03-16 10:30:00.123456 |    1710498600 | timestamp without time zone

📌 Key Points

More case studies coming soon.

📚 Related Reference

❓ FAQ

QWhen is TIMESTAMP the right choice over TIMESTAMPTZ?
AOnly when the time means local wall time and never crosses a zone, such as opening hours or the daily reporting cutoff. Audit trails, order timestamps and cross-region events all belong in TIMESTAMPTZ.
QDoes inserting a zoned string into a TIMESTAMP column raise an error?
ANo error is raised, the offset is simply dropped: TIMESTAMP '2024-03-15 10:30:00+08' yields 2024-03-15 10:30:00. Keeping the offset requires TIMESTAMPTZ.
Web-Tutorial.com

Web-Tutorial Tech Team

A team of developers maintaining programming tutorials. Each tutorial is written and reviewed by developers with expertise in that field. We work to keep our content accurate and reliable — if you spot an issue, please let us know.

Content reviewed by MOTO · Found an error? Report it

100%

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏