anchor.diff:  	Start = calendar:gregorian_seconds_to_datetime(EndS - 3600),
   	query_acct_log(Match, Start, End).
   
  --spec ql(Type, Match, Start) -> Events
  -	when
  -		Type :: acct | auth,
  +-spec ql(Log, Match, Start) -> Events
  +	when
  +		Log :: acct | auth,
   		Match :: DiameterMatchSpec | RatedMatchSpec,
   		DiameterMatchSpec :: {DiameterMatchHead, MatchConditions},
   		DiameterMatchHead :: #'3gpp_ro_CCR'{} | #'3gpp_ro_CCA'{},
  
positive.code: %%
  %% 	End time will be now.
  %%
  ql(acct = _Type, {MatchHead, MatchConditions} = Match,
  		{{_, _, _}, {_, _, _}} = Start)
  		when is_list(MatchConditions),
  		(is_record(MatchHead, '3gpp_ro_CCR')
  
negative.code: 	End = erlang:universaltime(),
  	query_acct_log(Match, Start, End).
  
  -spec ql(Log, Match, Start, End) -> Events
  	when
  		Log :: acct | auth,
  		Match :: DiameterMatchSpec | RatedMatchSpec,
  		DiameterMatchSpec :: {DiameterMatchHead, MatchConditions},
  		DiameterMatchHead :: #'3gpp_ro_CCR'{} | #'3gpp_ro_CCA'{},
  