mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 22:04:53 +00:00
feat: implement Booking module with BookableSpace entity, controller, service, and DTOs for managing bookable spaces
This commit is contained in:
5
libs/common/src/helper/timeToMinutes.ts
Normal file
5
libs/common/src/helper/timeToMinutes.ts
Normal file
@ -0,0 +1,5 @@
|
||||
// Convert time string (HH:mm) to minutes
|
||||
export function timeToMinutes(time: string): number {
|
||||
const [hours, minutes] = time.split(':').map(Number);
|
||||
return hours * 60 + minutes;
|
||||
}
|
||||
Reference in New Issue
Block a user