Docstring

This commit is contained in:
Aidan Timson
2025-11-04 11:24:03 +00:00
parent d27c2e3a04
commit 885f4564a9

View File

@@ -6,6 +6,9 @@ import { WEEKDAY_MAP, type WeekdayShort } from "./weekday";
/**
* Parse a time string (HH:MM or HH:MM:SS) and set it on today's date in the given timezone
* @param timeString The time string to parse
* @param timezone The timezone to use
* @returns The Date object
*/
const parseTimeString = (timeString: string, timezone: string): Date => {
const parts = timeString.split(":");