From ad4b944fc624281ee08a1c19ed981d6ed396ed06 Mon Sep 17 00:00:00 2001 From: Ariel Date: Sun, 10 Dec 2023 17:08:41 +0100 Subject: [PATCH] Removed other redudant clauses; same behaviour than https://github.com/erlware/erlware_commons/pull/162 --- src/ec_date.erl | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ec_date.erl b/src/ec_date.erl index dd15b6d..c894e83 100644 --- a/src/ec_date.erl +++ b/src/ec_date.erl @@ -208,14 +208,6 @@ parse([Month,Day,Year,Hour | PAM], _Now, _Opts) when ?is_meridian(PAM) andalso ?is_hinted_month(Month) andalso ?is_day(Day) -> {{Year, Month, Day}, {hour(Hour, PAM), 0, 0}}; -%% Date/Times Dec 1st, 2012 18:25:15 (no AM/PM) -parse([Month,Day,Year,Hour,$:,Min,$:,Sec], _Now, _Opts) - when ?is_hinted_month(Month) andalso ?is_day(Day) -> - {{Year, Month, Day}, {hour(Hour, []), Min, Sec}}; -parse([Month,Day,Year,Hour,$:,Min], _Now, _Opts) - when ?is_hinted_month(Month) andalso ?is_day(Day) -> - {{Year, Month, Day}, {hour(Hour, []), Min, 0}}; - %% Date/Times Fri Nov 21 14:55:26 +0000 2014 (Twitter format) parse([Month, Day, Hour,$:,Min,$:,Sec, Year], _Now, _Opts) when ?is_hinted_month(Month), ?is_day(Day), ?is_year(Year) ->