pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zsolt Varga <redax@mail.agria.hu>
To: pgsql-sql@postgresql.org
Subject: date function questions...
Date: Tue, 30 Nov 1999 20:15:21 +0100
Message-ID: <19991130201521.A6659@lupus.agria.hu> (raw)


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


	



Message-ID: <19991130201521.A6659@lupus.agria.hu>
Permalink:  ../19991130201521.A6659@lupus.agria.hu/
Also on:    postgresql.org/message-id/19991130201521.A6659@lupus.agria.hu

 · 

reply

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: redax@mail.agria.hu
  Subject: Re: date function questions...
  In-Reply-To: <19991130201521.A6659@lupus.agria.hu>
  References: <19991130201521.A6659@lupus.agria.hu>

* 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