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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -