Re: Yet Another Timestamp Question: Time Defaults

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Yet Another Timestamp Question: Time Defaults
Date: 2013-01-27 10:19:13
Message-ID: ke2uv1$oue$2@gonzo.reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2013-01-21, Rich Shepard <rshepard(at)appl-ecosys(dot)com> wrote:
> What is the behavior if a column data type is timestamptz but there is
> only the date portion available? There must be a default time; can that be
> defined?

No, if you don't specify the time 00:00 (midnight) is used.
if you don't specify a timezone it's local midnight, so viewed from
a neighbouring timezone it could be 1AM or 11pm the previous day.

--
⚂⚃ 100% natural

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2013-01-27 10:44:33 Re: Yet Another Timestamp Question: Time Defaults
Previous Message Jasen Betts 2013-01-27 10:04:41 Re: Running update in chunks?