Re: 'NOW' in UTC with no timezone

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stuart Bishop <stuart(at)stuartbishop(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 'NOW' in UTC with no timezone
Date: 2004-10-12 05:21:37
Message-ID: 28230.1097558497@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stuart Bishop <stuart(at)stuartbishop(dot)net> writes:
> I'm trying to determine the best way of saying 'The current time in UTC
> with no time zone information'.

Isn't that a contradiction in terms?

I *think* maybe what you want is to SET TIMEZONE = 'UTC' and then
stop worrying about it. But anyone who is worried about timezones
and yet is storing his data in timestamp-without-time-zone columns
probably needs to reconsider exactly what his data represents.
What is it that you actually want to store, and how do you want
it presented?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2004-10-12 05:28:07 Re: Need some advice on appropriate PL strategy...
Previous Message Eric D. Nielsen 2004-10-12 05:11:07 Need some advice on appropriate PL strategy...