mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-04-23 06:15:09 +00:00
Larger refactoring and added avoidlist
This commit is contained in:
7
helpers/converters.ts
Normal file
7
helpers/converters.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function dateToString(date: Date): string {
|
||||
return date.toLocaleString('sv-SE', { timeZone: 'Europe/Stockholm' });
|
||||
}
|
||||
|
||||
export function convertHoursToMinutes(hours: number): number {
|
||||
return hours * 60;
|
||||
}
|
||||
Reference in New Issue
Block a user