* Extracts the hours and minutes from a string like "15:45"
(time: string)
| 768 | * Extracts the hours and minutes from a string like "15:45" |
| 769 | */ |
| 770 | function extractTime(time: string): Time { |
| 771 | const [h, m] = time.split(':'); |
| 772 | return {hours: +h, minutes: +m}; |
| 773 | } |
| 774 | |
| 775 | /** |
| 776 | * Retrieves the currency symbol for a given currency code. |
no outgoing calls
no test coverage detected