Re: "Julian day" date format is off by 12 hours

From: Shelby Cain <alyandon(at)yahoo(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>, David Lee Lambert <dlambert(at)bmtcarhaul(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: "Julian day" date format is off by 12 hours
Date: 2007-02-04 06:17:49
Message-ID: 357587.42889.qm@web55403.mail.re4.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Oracle (9.2.0.7) doesn't seem to like the date format string...

SQL> SELECT to_char(timestamp '1970-01-01 00:00:00 GMT','J SSSS MS') from dual;
SELECT to_char(timestamp '1970-01-01 00:00:00 GMT','J SSSS MS') from dual
*
ERROR at line 1:
ORA-01821: date format not recognized

Regards,

Shelby Cain

----- Original Message ----
From: Bruce Momjian <bruce(at)momjian(dot)us>
To: David Lee Lambert <dlambert(at)bmtcarhaul(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Sent: Saturday, February 3, 2007 5:56:00 PM
Subject: Re: [BUGS] "Julian day" date format is off by 12 hours

Since to_char() is supposed to be Oracle-compatible, would someone test
this query in Oracle?
>
> davidl=# SELECT to_char(timestamp '1970-01-01 00:00:00 GMT','J SSSS MS');
> to_char
> ---------------
> 2440588 0 000
> (1 row)
>


____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html

Browse pgsql-bugs by date

  From Date Subject
Next Message Mika Vimpari 2007-02-04 15:42:34 BUG #2967: BUG #2881: FATAL: could not reattach to shared memory (Win32)
Previous Message Bruce Momjian 2007-02-03 23:56:00 Re: "Julian day" date format is off by 12 hours