MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / parseAmPm

Function parseAmPm

core/src/components/datetime/utils/parse.ts:148–150  ·  view source on GitHub ↗
(hour: number)

Source from the content-addressed store, hash-verified

146 * @returns `pm` if the hour is greater than or equal to 12, `am` if less than 12.
147 */
148export const parseAmPm = (hour: number) => {
149 return hour >= 12 ? 'pm' : 'am';
150};
151
152/**
153 * Takes a max date string and creates a DatetimeParts

Callers 3

DatetimeClass · 0.90
getClosestValidDateFunction · 0.90
parse.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected