Merge pull request #164 from ariel-anieli/pr-redundant-parse
Removed other redudant clauses in local parse/3
This commit is contained in:
commit
7c4911795e
1 changed files with 0 additions and 8 deletions
|
@ -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) ->
|
when ?is_meridian(PAM) andalso ?is_hinted_month(Month) andalso ?is_day(Day) ->
|
||||||
{{Year, Month, Day}, {hour(Hour, PAM), 0, 0}};
|
{{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)
|
%% Date/Times Fri Nov 21 14:55:26 +0000 2014 (Twitter format)
|
||||||
parse([Month, Day, Hour,$:,Min,$:,Sec, Year], _Now, _Opts)
|
parse([Month, Day, Hour,$:,Min,$:,Sec, Year], _Now, _Opts)
|
||||||
when ?is_hinted_month(Month), ?is_day(Day), ?is_year(Year) ->
|
when ?is_hinted_month(Month), ?is_day(Day), ?is_year(Year) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue