aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_date.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-10-21 12:44:18 +0200
committerLoïc Hoguin <[email protected]>2016-10-21 12:44:18 +0200
commit7fe557b9d33403d80a9c456209a194ba473a7956 (patch)
tree2934d7fd9d8a374a0b1008092b3766636e9b007b /src/cow_date.erl
parent8d9370f81fade1a3be3c096261db6d23116cfef2 (diff)
downloadcowlib-7fe557b9d33403d80a9c456209a194ba473a7956.tar.gz
cowlib-7fe557b9d33403d80a9c456209a194ba473a7956.tar.bz2
cowlib-7fe557b9d33403d80a9c456209a194ba473a7956.zip
Arrange function order
Diffstat (limited to 'src/cow_date.erl')
-rw-r--r--src/cow_date.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cow_date.erl b/src/cow_date.erl
index 8226855..803448b 100644
--- a/src/cow_date.erl
+++ b/src/cow_date.erl
@@ -201,6 +201,12 @@ horse_http_date_asctime() ->
).
-endif.
+%% @doc Return the date formatted according to RFC1123.
+
+-spec rfc1123(calendar:datetime()) -> binary().
+rfc1123(DateTime) ->
+ rfc7231(DateTime).
+
%% @doc Return the date formatted according to RFC2109.
-spec rfc2109(calendar:datetime()) -> binary().
@@ -238,12 +244,6 @@ horse_rfc2109_12340506_070809() ->
).
-endif.
-%% @doc Return the date formatted according to RFC1123.
-
--spec rfc1123(calendar:datetime()) -> binary().
-rfc1123(DateTime) ->
- rfc7231(DateTime).
-
%% @doc Return the date formatted according to RFC7231.
-spec rfc7231(calendar:datetime()) -> binary().