summaryrefslogtreecommitdiff
path: root/src/erlang-oauth/oauth_unix.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-08-11 15:34:41 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-11 17:39:37 -0400
commit8138d70bb8c1de954c46b417ccd22964b6432965 (patch)
treef833623bbf690a3d4d5799b6492e1ac729bfc152 /src/erlang-oauth/oauth_unix.erl
parent1c9d5c118ace092e228f60359e2863da1d3b1bc7 (diff)
move oauth to rebar layout
Diffstat (limited to 'src/erlang-oauth/oauth_unix.erl')
-rw-r--r--src/erlang-oauth/oauth_unix.erl16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/erlang-oauth/oauth_unix.erl b/src/erlang-oauth/oauth_unix.erl
deleted file mode 100644
index 73ca3143..00000000
--- a/src/erlang-oauth/oauth_unix.erl
+++ /dev/null
@@ -1,16 +0,0 @@
--module(oauth_unix).
-
--export([timestamp/0]).
-
-
-timestamp() ->
- timestamp(calendar:universal_time()).
-
-timestamp(DateTime) ->
- seconds(DateTime) - epoch().
-
-epoch() ->
- seconds({{1970,1,1},{00,00,00}}).
-
-seconds(DateTime) ->
- calendar:datetime_to_gregorian_seconds(DateTime).