Quantcast
Channel: Question and Answer » postgresql
Viewing all articles
Browse latest Browse all 1138

Get seconds of day in Postgres

$
0
0

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?


Viewing all articles
Browse latest Browse all 1138

Latest Images

Trending Articles



Latest Images