aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_date.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-03-12 16:13:40 +0100
committerLoïc Hoguin <[email protected]>2015-03-12 16:13:40 +0100
commit6f9b4bbc415db026f080b10a3d3d4400801882b1 (patch)
tree760275a03de406a1b05c60282dd562f53adcb594 /src/cow_date.erl
parenta8db5d9f7a21f36d4582dd083001757513e5990e (diff)
downloadcowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.tar.gz
cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.tar.bz2
cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.zip
Maintenance
* Update copyright years. * Update erlang.mk. * Fix triq testing.
Diffstat (limited to 'src/cow_date.erl')
-rw-r--r--src/cow_date.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cow_date.erl b/src/cow_date.erl
index 1e54090..b805aec 100644
--- a/src/cow_date.erl
+++ b/src/cow_date.erl
@@ -1,4 +1,4 @@
-%% Copyright (c) 2013-2014, Loïc Hoguin <[email protected]>
+%% Copyright (c) 2013-2015, Loïc Hoguin <[email protected]>
%%
%% Permission to use, copy, modify, and/or distribute this software for any
%% purpose with or without fee is hereby granted, provided that the above
@@ -182,9 +182,7 @@ http_date_test_() ->
{<<"Sun Nov 6 08:49:37 1994">>, {{1994, 11, 6}, {8, 49, 37}}}
],
[{V, fun() -> R = http_date(V) end} || {V, R} <- Tests].
--endif.
--ifdef(PERF).
horse_http_date_fixdate() ->
horse:repeat(200000,
http_date(<<"Sun, 06 Nov 1994 08:49:37 GMT">>)
@@ -221,9 +219,7 @@ rfc2109_test_() ->
{<<"Sun, 01-Jan-2012 00:00:00 GMT">>, {{2012, 1, 1}, { 0, 0, 0}}}
],
[{R, fun() -> R = rfc2109(D) end} || {R, D} <- Tests].
--endif.
--ifdef(PERF).
horse_rfc2019_20130101_000000() ->
horse:repeat(100000,
rfc2109({{2013, 1, 1}, {0, 0, 0}})