I would like help with the following ...
Let's say events occur regularly, say every 90 minutes, starting at midnight. Given two timestamps, I want to calculate how many times the event occurred from time 1 to time 2.
Some examples:
00:05 - 01:25 (1 hr 20 min): The event did not occur at all.
00:05 - 01:45 (1 hr 40 min): The event occurred once at 01:30 am
01:25 - 03:05 (also 1 hr 40 min): The event occurred twice at 01:30 and 03:00)
Note that the same elapsed time (e..g. 1 hr 40 min) can encompass either 1 or two events.
Any ideas?
Let's say events occur regularly, say every 90 minutes, starting at midnight. Given two timestamps, I want to calculate how many times the event occurred from time 1 to time 2.
Some examples:
00:05 - 01:25 (1 hr 20 min): The event did not occur at all.
00:05 - 01:45 (1 hr 40 min): The event occurred once at 01:30 am
01:25 - 03:05 (also 1 hr 40 min): The event occurred twice at 01:30 and 03:00)
Note that the same elapsed time (e..g. 1 hr 40 min) can encompass either 1 or two events.
Any ideas?