(dateString)
| 17 | } from './constants'; |
| 18 | |
| 19 | export function cleanDateString(dateString) { |
| 20 | return (dateString.match(SPLIT_DATE_STRING) || []) |
| 21 | .join(' ') |
| 22 | .replace(TIME_MERIDIAN_DOTS_RE, 'm') |
| 23 | .replace(TIME_MERIDIAN_SPACE_RE, '$1 $2 $3') |
| 24 | .replace(CLEAN_DATE_STRING_RE, '$1') |
| 25 | .trim(); |
| 26 | } |
| 27 | |
| 28 | export function createDate(dateString, timezone, format) { |
| 29 | if (TIME_WITH_OFFSET_RE.test(dateString)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…