Last active
January 1, 2016 12:09
-
-
Save Xordal/8142974 to your computer and use it in GitHub Desktop.
DateDiff(min, :toDate, :fromDate) for PostgreSql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT extract(epoch from (to_timestamp(:toDate, 'DD.MM.YYYY HH24:MI') - to_timestamp(:fromDate, 'DD.MM.YYYY HH24:MI'))) / 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment