Re: date_trunc function in interval version - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: date_trunc function in interval version
Date
Msg-id CAFj8pRDjYXy9f3aBvuz1pVZs4qa8nvD4fZ0Vw0qsW2F+4e8HGg@mail.gmail.com
Whole thread Raw
In response to date_trunc function in interval version  (Przemysław Sztoch <przemyslaw@sztoch.pl>)
Responses Re: date_trunc function in interval version
List pgsql-hackers
Hi

pá 22. 12. 2023 v 20:26 odesílatel Przemysław Sztoch <przemyslaw@sztoch.pl> napsal:
Hello.
There is date_trunc(interval, timestamptz, timezone) function.
First parameter can be '5 year', '2 month', '6 hour', '3 hour', '15 minute', '10 second' etc.

should not be named interval_trunc instead? In this case the good name can be hard to choose, but with the name date_trunc it can be hard to find it.

Regards

Pavel
 
--
Przemysław Sztoch | Mobile +48 509 99 00 66

pgsql-hackers by date:

Previous
From: Przemysław Sztoch
Date:
Subject: date_trunc function in interval version
Next
From: Tom Lane
Date:
Subject: Re: Teach predtest about IS [NOT] proofs