Fix the unnused erlnow() type
This commit is contained in:
parent
357b5844eb
commit
5a352dc599
1 changed files with 2 additions and 2 deletions
|
@ -383,12 +383,12 @@ unixtime() ->
|
||||||
to_now(Date) ->
|
to_now(Date) ->
|
||||||
to_now(?DEFAULT_DISAMBIG, 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 = {_,_,_}) ->
|
to_now(_, Now = {_,_,_}) ->
|
||||||
Now;
|
Now;
|
||||||
to_now(Disamb, ToParse) ->
|
to_now(Disamb, ToParse) ->
|
||||||
case to_unixtime(Disamb, ToParse) of
|
case to_unixtime(Disamb, ToParse) of
|
||||||
{ambiguous, Standard, Daylight} ->
|
{ambiguous, Standard, Daylight} when is_integer(Standard), is_integer(Daylight) ->
|
||||||
{ambiguous,
|
{ambiguous,
|
||||||
unixtime_to_now(Standard),
|
unixtime_to_now(Standard),
|
||||||
unixtime_to_now(Daylight)};
|
unixtime_to_now(Daylight)};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue