MCPcopy
hub / github.com/callumalpass/tasknotes / hasTimeComponent

Function hasTimeComponent

src/utils/dateUtils.ts:864–868  ·  view source on GitHub ↗
(dateString: string)

Source from the content-addressed store, hash-verified

862 * Check if a date string contains time information
863 */
864export function hasTimeComponent(dateString: string): boolean {
865 if (!dateString) return false;
866 // Check for 'T' followed by time pattern (HH:mm or HH:mm:ss)
867 return /T\d{2}:\d{2}/.test(dateString);
868}
869
870/**
871 * Extract just the date part from a date or datetime string

Calls

no outgoing calls

Tested by

no test coverage detected