How would I calculate the difference between 2 epoch timestamps

I have max and min timestamp. Wanted to calculate the difference between 2 epoch...

example...
min_timestamp - 1499692908165
max_timestamp - 1499698428128

diff. that i have got is - 5519963, which is the actual difference b/w 2 numbers... How would ES calculate the actual time spent between1499698428128 and 1499692908165?

expecting the output to be in the format: '1d 12h 18m 30s'

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.