# Calculate time difference considering only office hours and ignoring the weekend in logstash

**URL:** <https://discuss.elastic.co/t/calculate-time-difference-considering-only-office-hours-and-ignoring-the-weekend-in-logstash/199527>\
**Category:** Logstash\
**Created:** [September 15, 2019, 9:56am UTC](https://discuss.elastic.co/t/calculate-time-difference-considering-only-office-hours-and-ignoring-the-weekend-in-logstash/199527 "2019-09-15T09:56:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kolli\_dilip](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kolli_dilip/32/33821_2.png) [@kolli\_dilip](https://discuss.elastic.co/u/kolli_dilip)\
**Post date:** [September 15, 2019, 9:56am UTC](https://discuss.elastic.co/t/calculate-time-difference-considering-only-office-hours-and-ignoring-the-weekend-in-logstash/199527/1 "2019-09-15T09:56:11Z")

</div>

can we calculate difference of time ignoring the weekdays... like i should not take the time during the weekend and the time beyond the office hours example consider the time between 08.00  
to 18.00 ... And only weekdays time has to be calculated..

If so please guide me

---

<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:** [October 13, 2019, 9:56am UTC](https://discuss.elastic.co/t/calculate-time-difference-considering-only-office-hours-and-ignoring-the-weekend-in-logstash/199527/2 "2019-10-13T09:56:11Z")

</div>

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