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

Function is24Hour

core/src/components/datetime/utils/helpers.ts:79–81  ·  view source on GitHub ↗
(hourCycle: DatetimeHourCycle)

Source from the content-addressed store, hash-verified

77 * and pass the result into this function.
78 */
79export const is24Hour = (hourCycle: DatetimeHourCycle) => {
80 return hourCycle === 'h23' || hourCycle === 'h24';
81};
82
83/**
84 * Given a date object, returns the number

Callers 4

generateTimeFunction · 0.90
getTimeColumnsDataFunction · 0.90
getFormattedHourFunction · 0.90
helpers.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected