This commit is contained in:
Shusui MOYATANI
2023-04-29 00:22:03 +09:00
parent 7ee7c9ec45
commit 5474c85ace
28 changed files with 204 additions and 78 deletions

View File

@@ -1,3 +1,5 @@
const epoch = (): number => Math.floor(Date.now() / 1000);
export const toEpoch = (date: Date) => Math.floor(+date / 1000);
const epoch = (): number => toEpoch(new Date());
export default epoch;