Skip to content

Commit

Permalink
Use cowboy_clock types in cowboy_cookies instead of calendar
Browse files Browse the repository at this point in the history
Until calendar exports them at least.
  • Loading branch information
Loïc Hoguin committed Aug 11, 2011
1 parent cd06efe commit d858153
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cowboy_clock.erl
Expand Up @@ -38,6 +38,7 @@
-type time() :: {hour(), minute(), second()}.

-type datetime() :: {date(), time()}.
-export_type([date/0, time/0, datetime/0]).

-record(state, {
universaltime = undefined :: undefined | datetime(),
Expand Down
2 changes: 1 addition & 1 deletion src/cowboy_cookies.erl
Expand Up @@ -23,7 +23,7 @@
-type kv() :: {Name::binary(), Value::binary()}.
-type kvlist() :: [kv()].
-type cookie_option() :: {max_age, integer()}
| {local_time, {calendar:date(), calendar:time()}}
| {local_time, {cowboy_clock:date(), cowboy_clock:time()}}
| {domain, binary()} | {path, binary()}
| {secure, true | false} | {http_only, true | false}.
-export_type([kv/0, kvlist/0, cookie_option/0]).
Expand Down

0 comments on commit d858153

Please sign in to comment.