summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2018-12-09 23:11:21 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2018-12-09 23:11:21 -0800
commitf229e4c60a56d3758b1bafc554cc3e5fcf710d20 (patch)
treecd54dfedc5df7fb1ee86e17ee689f29fad755743
parentf1764bcde62d121baf7a610c196333d1b6bbe965 (diff)
Bootstrap small util
-rw-r--r--src/util/index.ts1
-rw-r--r--src/util/util.ts2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/util/index.ts b/src/util/index.ts
new file mode 100644
index 0000000..1871e74
--- /dev/null
+++ b/src/util/index.ts
@@ -0,0 +1 @@
+export * from './util'
diff --git a/src/util/util.ts b/src/util/util.ts
new file mode 100644
index 0000000..01348b8
--- /dev/null
+++ b/src/util/util.ts
@@ -0,0 +1,2 @@
+export const now = () => Date.now() / 1000
+export const nows = () => now().toFixed(0)