我在Postgres中的time with time zone
平等方面遇到了一些麻煩。 timestamp with time zone
平等工作的我怎麼會想到它,在那裏,如果時間正常化時區後一樣,它應該是真實的:帶時區平等的Postgres時間
postgres=# select '2013-06-27 12:00:00 -0800'::timestamp with time zone = '2013-06-27 14:00:00 -0600'::timestamp with time zone;
?column?
----------
t
然而,同樣似乎並不適用於time with time zone
:
postgres=# select '12:00:00 -0800'::time with time zone = '14:00:00 -0600'::time with time zone;
?column?
----------
f
然而不平等工作,我怎麼會想到他們:
postgres=# select '12:00:00 -0800'::time with time zone < '14:01:00 -0600'::time with time zone;
?column?
----------
t
postgres=# select '12:00:00 -0800'::time with time zone > '13:59:00 -0600'::time with time zone;
?column?
----------
t
有什麼事我誤解約time with time zone
?我怎樣才能以相同的方式處理時區的方式來評估平等呢?timestamp with time zone
平等性如何?