Permalink
Browse files

Adapt to 18.x time api changes

  • Loading branch information...
1 parent 0d24575 commit 18982f76b0d8edc160d6c970677f300c92f95c7d @norton committed Feb 11, 2016
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/asciiedoc_lib.erl
View
@@ -78,7 +78,7 @@ throw_error(L, D) ->
%% expand_text/2
expand_text(Cs, L) ->
DirName = filename:join(["/", "tmp", ?MODULE_STRING]),
- {A,B,C} = my_now(),
+ {A,B,C} = os:timestamp(),
Unique = lists:flatten(io_lib:format("~p-~p.~p.~p",[node(),A,B,C])),
FileName = filename:join([DirName, Unique]),
In = FileName ++ ".in",
@@ -158,11 +158,3 @@ get_attr(Name, [_ | As]) ->
get_attr(Name, As);
get_attr(_, []) ->
[].
-
-my_now() ->
- case erlang:function_exported(erlang, timestamp, 0) of
- true ->
- erlang:timestamp();
- false ->
- apply(erlang, now, [])
- end.

0 comments on commit 18982f7

Please sign in to comment.