mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 14:34:25 +01:00
6 lines
138 B
TypeScript
6 lines
138 B
TypeScript
export const toEpoch = (date: Date) => Math.floor(+date / 1000);
|
|
|
|
const epoch = (): number => toEpoch(new Date());
|
|
|
|
export default epoch;
|