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:44:33 |
Message-ID: | ke30eh$p8a$1@gonzo.reversiblemaps.ath.cx |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2013-01-21, Gavan Schneider <pg-gts(at)snkmail(dot)com> wrote:
> On Monday, January 21, 2013 at 06:53, Adrian Klaver wrote:
> ....
> timezones I have been learning a lot from the side.
>
> Taking another tangent I would much prefer the default time to
> be 12:00:00 for the conversion of a date to timestamp(+/-timezone).
>
> Propose: '2013-12-25'::timestamp ==> 2013-12-25 12:00:00
>
> The benefit of the midday point is that the actual date will not
> change when going through the timezone conversion.
that does not work, anywhere in the world, any time of day,it's always a different day somewhere
(American Samoa vs Rarotonga be an extreme example, but one or the other will qualify if nowhere else does)
If you want a date field use a date field, you can't reliably fake it using
timestamptz
--
⚂⚃ 100% natural
From | Date | Subject | |
---|---|---|---|
Next Message | Jasen Betts | 2013-01-27 11:09:34 | Re: Yet Another Timestamp Question: Time Defaults |
Previous Message | Jasen Betts | 2013-01-27 10:19:13 | Re: Yet Another Timestamp Question: Time Defaults |