anchor.diff:  auth_query(Start, {{_, _, _}, {_, _, _}} = End, Protocol, Types,
   		ReqAttrsMatch, RespAttrsMatch) ->
   	Seconds = calendar:datetime_to_gregorian_seconds(End) - ?EPOCH,
  -	auth_query(Start, Seconds * 1000, Protocol, Types,
  +	auth_query(Start, Seconds * 1000 + 999, Protocol, Types,
   			ReqAttrsMatch, RespAttrsMatch);
   auth_query(Start, End, Protocol, Types, ReqAttrsMatch, RespAttrsMatch)
   		when is_integer(Start), is_integer(End) ->
  
positive.code: 	acct_query(Seconds * 1000, End, Protocol, Types, AttrsMatch);
  acct_query(Start, {{_, _, _}, {_, _, _}} = End, Protocol, Types, AttrsMatch) ->
  	Seconds = calendar:datetime_to_gregorian_seconds(End) - ?EPOCH,
  	acct_query(Start, Seconds * 1000, Protocol, Types, AttrsMatch);
  acct_query(Start, End, Protocol, Types, AttrsMatch)
  		when is_integer(Start), is_integer(End) ->
  	acct_query(Start, End, Protocol, Types, AttrsMatch,
  
negative.code: 	get_range(Log, Seconds * 1000, End);
  get_range(Log, Start, {{_, _, _}, {_, _, _}} = End) ->
  	Seconds = calendar:datetime_to_gregorian_seconds(End) - ?EPOCH,
  	get_range(Log, Start, Seconds * 1000 + 999);
  get_range(Log, Start, End) when is_integer(Start), is_integer(End) ->
  	get_range(Log, Start, End, start).
  
  