In Java we use Joda-Time to get the seconds of a day as an int value (despite the date):
date: 10-10-2014 00:00:30 -> second 30 of day
date: 11-10-2014 00:01:30 -> second 90 of day
date: 12-10-2014 00:02:00 -> second 120 of day
Is there a way to do the same in PostgresSQL?