title: Presto- get timestamp difference
body: <p>I am new to PrestoDB and want to write a query which will compare two timestamps, 
  the first row date will be compare with the immediate next date row and if the difference is greater than 15 mins, then it will print that row.
  I have written below query but while executing it is throwing the error:
  "unexpected parameter(timestamp with timezone) for function from_iso8601_timestamp".</p>
  
  <pre><code>SELECT mt.logical_name, mt.cable_name, mt.dt, mt.met_date,       
  date_diff('second', from_iso8601_timestamp(met_date),                 
  lag(from_iso8601_timestamp(met_date)) over (order by met_date))
  FROM MyTable mt
  where mt.dt = 20181117 and mt.cable_name = 'cable' and mt.logical_name ='ABCD0000008'
  ORDER BY mt.met_date;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/F9Cwj.png" alt="sample output"></p>
  
  <p>Till now have not put any filter criteria to print only those rows where the difference is greater than 15 minutes and I also want to add +10:00 with the timestamp while doing the comparison.
  Seeking some help in this regards.
  Any help will be appreciated.</p>