datetime - Algorithm to estimate total active time from timestamps -


say have a series of timestamps (from visitor impressions), , looks (omitting dates):

01:02:13 01:03:29 01:04:34 02:19:29 09:45:10 09:46:20 ..... 

in above case, i'd want sum time passed first 4 timestamps (1 2am), , separate them 9am events.

is there clever way estimate combined active time, other utilizing timeout (say 300+ seconds timeout indicates new session). if not, what's standard / timeout use?


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -