How can I discard/round the millisecond part, better if the second part is also removed from a timestamp w/o timezone ?>
millisecond
second
timestamp
timezone
Discard milliseconds:
SELECT DATE_TRUNC('second', CURRENT_TIMESTAMP::timestamp);
2019-08-23 16:42:43
Discard seconds:
SELECT DATE_TRUNC('minute', CURRENT_TIMESTAMP::timestamp);
2019-08-23 16:42:00