From 5a352dc5996e15f5ee04b9ba1e90ff87d4ed9e43 Mon Sep 17 00:00:00 2001 From: Jesse Gumm Date: Sat, 12 Aug 2023 10:40:13 -0500 Subject: [PATCH] Fix the unnused erlnow() type --- src/qdate.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qdate.erl b/src/qdate.erl index f11c00a..f8ddf5e 100644 --- a/src/qdate.erl +++ b/src/qdate.erl @@ -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)};