Help Center/ GaussDB/ Developer Guide(Distributed_V2.0-8.x)/ FAQs/ Which Date/Time Types Contain the Time Zone and Which Do Not?
Updated on 2025-08-19 GMT+08:00
Which Date/Time Types Contain the Time Zone and Which Do Not?
Answer: The date, time, timestamp, and smalldatetime types do not contain the time zone, and the timetz and timestamptz types contain the time zone.
Example:
--The timestamp type does not contain the time zone. gaussdb=# SELECT '2019-01-01'::timestamp; timestamp --------------------- 2019-01-01 00:00:00 (1 row) --The timestamptz type contains the time zone. gaussdb=# SELECT '2019-01-01'::timestamptz; timestamptz ------------------------ 2019-01-01 00:00:00+08 (1 row)
Parent topic: FAQs
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.