Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bipthelin committed May 5, 2014
1 parent 132c440 commit 0398913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions ebin/iso8601.app

This file was deleted.

4 changes: 2 additions & 2 deletions src/iso8601.erl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ format({{Y,Mo,D}, {H,Mn,S}}) ->
list_to_binary(IsoStr).

-spec parse (string()) -> datetime().
%% @doc Convert an ISO 8601 formatted string to a
%% @doc Convert an ISO 8601 formatted string to a
parse(Bin) when is_binary(Bin) ->
parse(binary_to_list(Bin));
parse(Str) ->
Expand Down Expand Up @@ -159,7 +159,7 @@ decimal(Str, Acc, Key) ->
false
end,
{Parts, Rest} = lists:splitwith(F, Str),
acc_float([$0,$.|Parts], Rest, Key, Acc, fun offset_hour/2).
acc_float([$0,$.|Parts], Rest, Key, Acc, fun offset_hour/2).

offset_hour([], Acc) ->
datetime(Acc);
Expand Down

0 comments on commit 0398913

Please sign in to comment.