Add doc to script file

This commit is contained in:
2025-11-27 20:09:58 +00:00
parent 312bb911bc
commit 032b966a9d
18 changed files with 189 additions and 2 deletions

View File

@@ -1,4 +1,13 @@
// Time utility functions
/**
* Time Utility Functions
*
* Provides time format conversion utilities for working with HH:MM time strings
* and minute-based calculations throughout the application.
*
* @author Andreas Weyer
* @license MIT
*/
export const timeToMinutes = (timeStr: string): number => {
if (!timeStr || !timeStr.includes(':')) return 0;
const [hours, minutes] = timeStr.split(':').map(Number);