Probably the easiest way is:
SELECT EXTRACT(epoch FROM my_interval)/3600
More Related Contents:
- PostgreSQL how to concat interval value ‘2 days’
- Daylight saving time and time zone best practices [closed]
- Determine Whether Two Date Ranges Overlap
- How do I convert a date/time string to a DateTime object in Dart?
- How to join two dataframes for which column values are within a certain range?
- PostgreSQL: running count of rows for a query ‘by minute’
- Kotlin DateTimeParseException
- Best way to store date/time in mongodb
- How to get the current time as datetime
- Can’t subtract offset-naive and offset-aware datetimes
- How do I determine the last day of the previous month using PostgreSQL?
- What’s the difference between ISO 8601 and RFC 3339 Date Formats?
- Time zone names with identical properties yield different result when applied to timestamp
- How do you do date math that ignores the year?
- Convert 12-hour date/time to 24-hour date/time
- Why are date/time values interpreted incorrectly when patching/saving?
- Parsing of Ordered Timestamps in Local Time (to UTC) While Observing Daylight Saving Time
- Pythonic way to combine datetime.date and datetime.time objects
- How to format a DateTime in PowerShell
- Aggregate Daily Data to Month/Year intervals
- Calculate the number of weekdays between 2 dates in R
- Best practices with saving datetime & timezone info in database when data is dependant on datetime
- Aggregating hourly data into daily aggregates
- Postgresql query between date ranges
- How to convert epoch to datetime redshift?
- Twig date difference
- Truncate timestamp to arbitrary intervals
- How to get timezone, Language and County Id in flutter by the location of device in flutter?
- Working with INTERVAL and CURDATE in MySQL
- Behind The Scenes: Core Data dates stored with 31 year offset?