anchor.diff:  datetime_to_unix_time({{_,_,_},{_,_,_}} = DateTime) ->
       calendar:datetime_to_gregorian_seconds(DateTime) - ?UNIX_EPOCH.
   
  -get_opt(K, Opts) ->
  -    case lists:keyfind(K, 1, Opts) of
  -	{_, V} -> V;
  -	false  -> error({required, K})
  -    end.
  -
   get_opt(K, Opts, Default) ->
       case lists:keyfind(K, 1, Opts) of
   	{_, V} -> V;
  
positive.code: 				     type_spec = TypeSpec} = St) ->
      io:format("report~n"),
  
      Type = find_type(TypeSpec, name(Metric, DataPoint)),
      Request = "PUTVAL " ++ HostName ++ "/" ++  
  	PluginName ++ "-" ++ PluginInstance ++ "/" ++
  	Type ++ "-" ++ name(Metric, DataPoint) ++ " " ++
  
negative.code: 
  init(Opts) ->
      io:format("Exometer exometer Reporter: Opts: ~p~n", [Opts]),
      SockPath = get_opt(path, Opts, ?DEFAULT_PATH),
      ConnectTimeout = get_opt(connect_timeout, Opts, ?CONNECT_TIMEOUT),
      ReconnectInterval = get_opt(reconnect_interval, Opts, ?RECONNECT_INTERVAL) * 1000,
  
  