Function
getHourData
(hourCycle: DatetimeHourCycle)
Source from the content-addressed store, hash-verified
| 180 | * values based on the provided hourCycle. |
| 181 | */ |
| 182 | const 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 |
Tested by
no test coverage detected