# Elapsed.time from Number to Time

**URL:** <https://discuss.elastic.co/t/elapsed-time-from-number-to-time/1745>\
**Category:** Logstash\
**Created:** [June 2, 2015, 3:12pm UTC](https://discuss.elastic.co/t/elapsed-time-from-number-to-time/1745 "2015-06-02T15:12:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tibo](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@Tibo](https://discuss.elastic.co/u/Tibo)\
**Post date:** [June 2, 2015, 3:12pm UTC](https://discuss.elastic.co/t/elapsed-time-from-number-to-time/1745/1 "2015-06-02T15:12:21Z")

</div>

Hi,  
I am using the filter elapsed to calculate the time between two events. My problem is that the result is a NUMBER (the number of seconds between the events) which is not easy to read. Is there a way to convert this elapsed.time field to TIME format ?

Thanks

Thibaut

---

<div class="post-metadata">

**Author:** ![rafaltrojniak](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rafaltrojniak](https://discuss.elastic.co/u/rafaltrojniak)\
**Post date:** [June 4, 2015, 9:57pm UTC](https://discuss.elastic.co/t/elapsed-time-from-number-to-time/1745/2 "2015-06-04T21:57:14Z")

</div>

Hello @Tibo,  
I have been using Ruby filter to achieve similar things. Have you tried that ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 5:38am UTC](https://discuss.elastic.co/t/elapsed-time-from-number-to-time/1745/3 "2017-07-06T05:38:29Z")

</div>


