eight
2025-04-15 131726d427b95447df6c1ee14e1c36a0715b2033
src/utils/formatter.ts
@@ -9,3 +9,8 @@
export function PrefixInteger(num, length) {
  return (Array(length).join('0') + num).slice(-length);
}
export function formatTimeslot(timeslot: number): string {
  const strTimeslot = PrefixInteger( timeslot, 8 )
  return strTimeslot.slice(0,2) + ":" + strTimeslot.slice(2,4) + ' ~ ' + strTimeslot.slice(4,6) + ":" + strTimeslot.slice(6,8)
}