Re: [GENERAL] Returning an integer from a date

From: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
To: rick(at)ricken(dot)demon(dot)co(dot)uk
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Returning an integer from a date
Date: 1999-03-29 11:22:23
Message-ID: 36FF626F.EA9E6B63@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Herouth Maoz 1999-03-29 16:00:00 Re: [GENERAL] Returning an integer from a date
Previous Message Rick Dearman 1999-03-29 10:51:37 Returning an integer from a date

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Douglas 1999-03-29 13:47:04 Newbie question about datatype conversion
Previous Message erikp 1999-03-29 11:02:38 pgsql and function results