(dateString: string)
| 862 | * Check if a date string contains time information |
| 863 | */ |
| 864 | export 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 |
no outgoing calls
no test coverage detected