Michael Grogan has a few examples of working with time series data in PostgreSQL:
Tools such as Python or R are most often used to conduct deep time series analysis.
However, knowledge of how to work with time series data using SQL is essential, particularly when working with very large datasets or data that is constantly being updated.
Here are some useful commands that can be invoked in SQL to better work with time series data within the data table itself.
Click through for examples like using a window function to calculate moving averages and using time zones. H/T Mark Hutchinson.