This commit is contained in:
chamikaJ
2025-04-17 18:28:54 +05:30
parent f583291d8a
commit 8825b0410a
2837 changed files with 241385 additions and 127578 deletions

View File

@@ -0,0 +1,13 @@
import dayjs from 'dayjs';
export function formatDate(date: Date): string {
return dayjs(date).format('MMM DD, YYYY');
}
export function buildTimeString(hours: number, minutes: number, seconds: number) {
const h = hours > 0 ? `${hours}h` : '';
const m = `${minutes}m`;
const s = `${seconds}s`;
return `${h} ${m} ${s}`.trim();
}