diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-12-09 23:11:21 -0800 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2018-12-09 23:11:21 -0800 |
commit | f229e4c60a56d3758b1bafc554cc3e5fcf710d20 (patch) | |
tree | cd54dfedc5df7fb1ee86e17ee689f29fad755743 | |
parent | f1764bcde62d121baf7a610c196333d1b6bbe965 (diff) |
Bootstrap small util
-rw-r--r-- | src/util/index.ts | 1 | ||||
-rw-r--r-- | src/util/util.ts | 2 |
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) |