Skip to content

Commit

Permalink
remove unnecessary export
Browse files Browse the repository at this point in the history
  • Loading branch information
Sladuca committed Sep 10, 2024
1 parent 4f13f53 commit 64455c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/units.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 64455c5

Please sign in to comment.