From: Richard Broersma Jr <rabroersma@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: any additional date_time functions?
Date: Sat, 17 Jun 2006 13:08:20 -0700 (PDT)
Message-ID: <20060617200820.83165.qmail@web31805.mail.mud.yahoo.com> (raw)
I am working with the date_trunc() function with great success especially in the group by clause
for aggregates.
However, it is limited to returning "WHOLE" time units. i.e. years, months, days, hours, minutes,
seconds.
Are there any functions similar to date_trunc that can return variable increments i.e.:
5, 10, or 15 minutes increments,
3, 4, 6 hour increments,
1, 2 weekly increments,
I imagine that the returned values would have to either be the "floor" or "ceiling" of the actual
time stamps.
Regards,
Richard Broersma Jr.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rabroersma@yahoo.com
Subject: Re: any additional date_time functions?
In-Reply-To: <20060617200820.83165.qmail@web31805.mail.mud.yahoo.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