Skip to content

Commit

Permalink
Fix the unnused erlnow() type
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Aug 12, 2023
1 parent 357b584 commit 5a352dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qdate.erl
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ unixtime() ->
to_now(Date) ->
to_now(?DEFAULT_DISAMBIG, Date).

-spec to_now(Disamb :: atom(), qdate()) -> {integer(), integer(), integer()} | {ambiguous, tuple(), tuple()}.
-spec to_now(Disamb :: atom(), qdate()) -> erlnow() | {ambiguous, erlnow(), erlnow()}.
to_now(_, Now = {_,_,_}) ->
Now;
to_now(Disamb, ToParse) ->
case to_unixtime(Disamb, ToParse) of
{ambiguous, Standard, Daylight} ->
{ambiguous, Standard, Daylight} when is_integer(Standard), is_integer(Daylight) ->
{ambiguous,
unixtime_to_now(Standard),
unixtime_to_now(Daylight)};
Expand Down

0 comments on commit 5a352dc

Please sign in to comment.