mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-19 23:14:27 +01:00
update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user