Re: Timestamp docs weirdness

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Marcus Brger <mail(at)marcus-boerger(dot)de>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timestamp docs weirdness
Date: 2003-10-26 04:42:29
Message-ID: 200310260442.h9Q4gTB14608@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


OK, do we want to put back the mention of these in the release notes?
The non-zulu ones sound pretty strange to me and might be better left
undocumented.

---------------------------------------------------------------------------

Marcus B?rger wrote:
> Hello Christopher,
>
> Wednesday, October 22, 2003, 10:21:02 AM, you wrote:
>
> >>>What in the heck is 'zulu', 'allballs' or 'z'???
> >>
> >>
> >> 'allballs' probably alludes to the visual appearance of '00:00:00'. 'z'
> >> and 'zulu' should be time zones equivalent (or similar?) to UTC or GMT
> >> ((US?) military jargon).
>
> > But they don't work...
>
> Only the combination of both doesn't work:
> template1=# select 'allballs'::timetz;
> timetz
> -------------
> 00:00:00+00
> (1 row)
>
> template1=# select '0:0:0 z'::timetz;
> timetz
> -------------
> 00:00:00+00
> (1 row)
>
> template1=# select '0:0:0 zulu'::timetz;
> timetz
> -------------
> 00:00:00+00
> (1 row)
>
> template1=# select 'allballs'::timetz;
> timetz
> -------------
> 00:00:00+00
> (1 row)
>
> template1=# select 'allballs z'::timetz;
> ERROR: Bad time external representation 'allballs z'
> template1=# select 'allballs zulu'::timetz;
> ERROR: Bad time external representation 'allballs zulu'
>
> Your problem is using 'time' which doesn't know time zones.
>
> --
> Best regards,
> Marcus mailto:mail(at)marcus-boerger(dot)de
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-10-26 04:43:51 Re: integer ceiling in LIMIT and OFFSET
Previous Message Bruce Momjian 2003-10-26 04:40:20 Re: 7.4 compatibility question

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-10-26 04:50:35 Re: more improvements to release notes
Previous Message Bruce Momjian 2003-10-26 04:30:06 Re: minor psql cleanup