date function questions...

From: Zsolt Varga <redax(at)mail(dot)agria(dot)hu>
To: pgsql-sql(at)postgresql(dot)org
Subject: date function questions...
Date: 1999-11-30 19:15:21
Message-ID: 19991130201521.A6659@lupus.agria.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Hi!

I'm try to implement some kind of comany database into postgres,
but unfortunatly I don't know the how to solve the following porblems:

- how to test is any date in the same month as we are, or
month '1999.10' for example?

- how to convert 'seconds' to 'hh:mm:ss' format?
(int) --> (time)
select time(5);
returns '01:00:05' am I triggered a bug?

anyway I'd like to write this kind of date/time functions, and I tried
too...
but without any success... could somebody send me some kind of examples
to handle date/datetime/time/timestamp from C function..
(or either plpgsql.)

Many thanks,
Redax

Browse pgsql-sql by date

  From Date Subject
Next Message Oliver Elphick 1999-11-30 22:04:55 Re: [SQL] Addendum: PG6.5.3: CASE w. diff THEN types -- prob with Linux(?)
Previous Message Ross J. Reedstrom 1999-11-30 19:09:06 Re: [SQL] NULL