MCPcopy Index your code
hub / github.com/angular/angular / extractTime

Function extractTime

packages/common/src/i18n/locale_data_api.ts:744–747  ·  view source on GitHub ↗

* Extracts the hours and minutes from a string like "15:45"

(time: string)

Source from the content-addressed store, hash-verified

742 * Extracts the hours and minutes from a string like "15:45"
743 */
744function extractTime(time: string): Time {
745 const [h, m] = time.split(':');
746 return {hours: +h, minutes: +m};
747}
748
749/**
750 * Retrieves the currency symbol for a given currency code.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…