(locale2)
| 110044 | return (date)=>(second(date) < date ? L : minute(date) < date ? S : hour(date) < date ? M : day(date) < date ? H : month(date) < date ? week(date) < date ? d : w : year(date) < date ? quarter(date) < date ? m : q : y)(date); |
| 110045 | } |
| 110046 | function timeLocale(locale2) { |
| 110047 | const timeFormat = memoize(locale2.format), utcFormat = memoize(locale2.utcFormat); |
| 110048 | return { |
| 110049 | timeFormat: (spec)=>(0, _vegaUtil.isString)(spec) ? timeFormat(spec) : timeMultiFormat(timeFormat, (0, _vegaTime.timeInterval), spec), |
| 110050 | utcFormat: (spec)=>(0, _vegaUtil.isString)(spec) ? utcFormat(spec) : timeMultiFormat(utcFormat, (0, _vegaTime.utcInterval), spec), |
| 110051 | timeParse: memoize(locale2.parse), |
| 110052 | utcParse: memoize(locale2.utcParse) |
| 110053 | }; |
| 110054 | } |
| 110055 | let defaultTimeLocale; |
| 110056 | resetTimeFormatDefaultLocale(); |
| 110057 | function resetTimeFormatDefaultLocale() { |
no test coverage detected