anchor.diff:    em_helper_time:datetime_to_utc(Date).
   
   bin_to_num(Bin) ->
  -    N = binary_to_list(Bin),
  -    case string:to_float(N) of
  -        {error, no_float} ->
  -            list_to_integer(N);
  -        {F, _Rest} ->
  -            F
  -    end.
  -
  +  N = binary_to_list(Bin),
  +  case string:to_float(N) of
  +    {error, no_float} ->
  +      list_to_integer(N);
  +    {F, _Rest} ->
  +      F
  +  end.
  +
  +%% "\$PGID,123456789012345*0F\r\n\$TRCCR,20150727040136.279,A,53.897743,27.442885,0.00,0.00,0.00,34,*34\r\n
   test() ->
  -  Packets = <<"\$PGID,123456789012345*0F\r\n\$TRCCR,20150727040136.279,A,53.897743,27.442885,0.00,0.00,0.00,34,*34\r\n">>,
  -  %%Packets = <<"\$PGID,123456789012345*0F\r\n\$GPRMC,120500.000,A,6000.0000,N,13000.0000,E,0.00,0.00,010112,,*33\r\n">>,
  -  lists:foreach(fun(Packet) ->
  -    io:format("~s~n", [Packet]),
  -    parse(Packet)
  -  end, binary:split(Packets, [<<"\r\n">>], [global])).
  +  %%Packet0 = <<"\$PGID,123456789012345*0F\r\n">>,
  +  Packet1 = <<"\$TRCCR,20150727040136.279,A,53.897743,27.442885,0.00,0.00,0.00,34,*34\r\n">>,
  +  parse(Packet1).
  +  %%parse(Packet1).
positive.code:   false.
  
  parse_date(Year, Month, Day, Hour, Minute, Second) ->
    Date = {
      {
        list_to_integer(binary_to_list(Year)) + 2000,
        list_to_integer(binary_to_list(Month)),
        list_to_integer(binary_to_list(Day))
      },
      {
        list_to_integer(binary_to_list(Hour)),
        list_to_integer(binary_to_list(Minute)),
        list_to_integer(binary_to_list(Second))
      }
    },
    em_helper_time:datetime_to_utc(Date).
  
  
  trccr_parse_date(Year, Month, Day, Hour, Minute, Second) ->
    Date = {
      {
        list_to_integer(binary_to_list(Year)),
  
negative.code:         attributes = #{
            ?KEY_BATTERY => parse_battery(Battery)
          }
        },
        {ok, Position};
      Reason ->
        Reason
    end;
  parse(Data) ->
    {error, list_to_binary("Unknown packet: " ++ Data)}.
  
  
  parse_battery(Battery) ->
    bin_to_num(Battery).
  