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

Function getHourData

core/src/components/datetime/utils/data.ts:182–195  ·  view source on GitHub ↗
(hourCycle: DatetimeHourCycle)

Source from the content-addressed store, hash-verified

180 * values based on the provided hourCycle.
181 */
182const getHourData = (hourCycle: DatetimeHourCycle) => {
183 switch (hourCycle) {
184 case 'h11':
185 return hour11;
186 case 'h12':
187 return hour12;
188 case 'h23':
189 return hour23;
190 case 'h24':
191 return hour24;
192 default:
193 throw new Error(`Invalid hour cycle "${hourCycle}"`);
194 }
195};
196
197/**
198 * Given a local, reference datetime parts and option

Callers 1

generateTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected