Re: Obtaining the Julian Day from a date

From: Phil Endecott <spam_from_postgresql_general(at)chezphil(dot)org>
To: pgsql-general(at)postgresql(dot)org
Cc: "Karl O(dot) Pinc" <kop(at)meme(dot)com>
Subject: Re: Obtaining the Julian Day from a date
Date: 2004-09-09 17:42:38
Message-ID: 4140960E.20403@chezphil.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Karl O. Pinc wrote:
> What's the best way to obtain the Julian day from a postgresql
> date?

=> select to_char('17 may 1970'::date,'J');
to_char
---------
2440724

--Phil.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message the inquirer 2004-09-09 17:49:26 PL/pgSQL Function Problem
Previous Message Karl O. Pinc 2004-09-09 17:35:14 Obtaining the Julian Day from a date