こんにちは。 これを見ると幸せになれそうです。 http://osb.sra.co.jp/PostgreSQL/Manual/PostgreSQL-7.1-ja/functions-datetime.html