I need to get the time Interval in such a way that exclude the time interval of offline mode. Let me explain you in a time line.
Example:
A: |---------------------------------------------------------------------------| B: |----| |-------------| C: |--------------| D: |===| |====================| |====================| `A` is the time line. `B` is a offline time of `B` `C` is a offline time of `C` notice that they are overlapping with `B` `D` is the time to be billed. All I have the Timestamps. I ran out of all the solutions. I wonder if anyone can guide me if there is a way out. Or can suggest me if there is other way around.
Thanks.
16hr 15min