From: Adriaan Joubert <a.joubert@albourne.com>
To: rick@ricken.demon.co.uk
Cc: pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] Returning an integer from a date
Date: Mon, 29 Mar 1999 12:22:23 +0100
Message-ID: <36FF626F.EA9E6B63@albourne.com> (raw)
References: <36FF5B39.52CB4137@gameszone.net>
Rick Dearman wrote:
>
> I have a date field in a table, I want to create a function to
> manipulate this date, however I want the date to come to me as an
> integer.
>
> Is this possible? Or do I have to get it as a char *string??
>
Get it in a binary cursor and you can get it as a julian date (centred
around 2000). I handle all my dates as integers.
Adriaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: a.joubert@albourne.com, rick@ricken.demon.co.uk, pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] Returning an integer from a date
In-Reply-To: <36FF626F.EA9E6B63@albourne.com>
References: <36FF5B39.52CB4137@gameszone.net> <36FF626F.EA9E6B63@albourne.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox