From 64455c5c520d5c8dd3867d97c0b1571f43817ac4 Mon Sep 17 00:00:00 2001 From: Sladuca Date: Tue, 10 Sep 2024 14:51:15 -0700 Subject: [PATCH] remove unnecessary export --- src/helpers/units.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/units.ts b/src/helpers/units.ts index 3c4d10c..b5b8a02 100644 --- a/src/helpers/units.ts +++ b/src/helpers/units.ts @@ -51,10 +51,10 @@ const EPOCHS_PER_HOUR = (3600 * 1000) / MILLS_PER_EPOCH; function currentEpoch(): number { return Math.floor(Date.now() / MILLS_PER_EPOCH); } -export function dateToEpoch(date: Date): number { +function dateToEpoch(date: Date): number { return Math.ceil(date.getTime() / MILLS_PER_EPOCH); } -export function epochToDate(epoch: number): Date { +function epochToDate(epoch: number): Date { return new Date(epoch * MILLS_PER_EPOCH); } function roundEpochUpToHour(epoch: number): number {