* ミリ秒以下を切り捨て [#vd109ccc]
*** ミリ秒まで表示される [#s1623802]
pgsql=# SELECT NOW();
now
-------------------------------
2018-04-25 20:08:21.979692+09
*** ミリ秒を切り捨て - timestamp() [#w3ff5112]
pgsql=# SELECT NOW()::timestamp(0);
now
---------------------
2018-04-25 20:08:35
*** ミリ秒を切り捨て - date_trunc() [#ga034636]
pgsql=# SELECT date_trunc('second', NOW());
date_trunc
------------------------
2018-04-25 20:09:13+09
** 参考 [#pe0caff0]
https://stackoverflow.com/questions/10213190/discard-millisecond-part-from-timestamp