You've already forked Epicnabbo-Catalogus-Updated-Daily
7 lines
312 B
TypeScript
7 lines
312 B
TypeScript
export const MessengerHistoryCurrentDate = (secondsSinceNow: number = 0) =>
|
|
{
|
|
const currentTime = secondsSinceNow ? new Date(Date.now() - secondsSinceNow * 1000) : new Date();
|
|
|
|
return `${ currentTime.getHours().toString().padStart(2, '0') }:${ currentTime.getMinutes().toString().padStart(2, '0') }`;
|
|
};
|