Another fix for spec messages.

Signed-off-by: Jordan Wilberding <diginux@gmail.com>
This commit is contained in:
Ben Kearns 2012-12-19 21:54:07 +00:00 committed by Jordan Wilberding
parent 5c6af5c7f5
commit 3437fc8c1c

View file

@ -72,7 +72,8 @@ format(Format, Date) ->
parse(Date) ->
do_parse(Date, calendar:universal_time(),[]).
-spec parse(string(),datetime() | now()) -> datetime()|now().
-spec parse(string(),datetime() | now()) -> datetime();
(string(),datetime() | now()) -> now().
%% @doc parses the datetime from a string
parse(Date, {_,_,_}=Now) ->
do_parse(Date, calendar:now_to_datetime(Now), []);