doc/src/sgml/func.sgml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 19285ae136..beb44d365d 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -9895,6 +9895,22 @@ SELECT date_trunc('hour', INTERVAL '3 days 02:47:33'); aligned with a specified origin. + + +date_trunc(stride, source, origin) + + source is a value expression of type + timestamp or timestamp with time zone. + (Values of type date are cast automatically to + timestamp.) + stride is a value expression of type + interval. Negative intervals are not treated differently from + positive intervals. + The return value is likewise of type timestamp or + timestamp with time zone, and it marks the beginning + of the bin into which the source is placed. + + Examples: