# Time difference from now

**URL:** <https://community.influxdata.com/t/time-difference-from-now/3203>\
**Category:** Systems\
**Created:** [November 26, 2017, 12:07pm UTC](https://community.influxdata.com/t/time-difference-from-now/3203 "2017-11-26T12:07:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eastcirclek](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@eastcirclek](https://community.influxdata.com/u/eastcirclek)\
**Post date:** [November 26, 2017, 12:07pm UTC](https://community.influxdata.com/t/time-difference-from-now/3203/1 "2017-11-26T12:07:19Z")

</div>

![alarm list](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/1X/8970851c87d433b1ca7476c5ac37bb240268cea6.png)  
I use Grafana table plugin to load a list of alarms stored on InfluxDB onto my Grafana dashboard as shown above. I want to add another column to this table to show how much time has passed since each alarm. I tried the followings on InfluxDB:

- Execute a select statement like “select now() - time from alarms”
  - AFAIK, there’s no function now() in the select clause

- Getting the latest time from \_internal.runtime and use the last time instead of now()
  - cannot use select statement from two measurements

Is it possible only using InfluxQL? Otherwise, should I modify Grafana table plugin to achieve the goal?
