{"version":3,"sources":["components/date-picker/iso-date.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,SAAU,IAAI,WAC0D,CAAC;AAEtG;;;GAGG;AACH,eAAO,MAAM,kBAAkB,MAAO,MAAM,SAG3C,CAAC","file":"iso-date.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * @param date A date.\n * @returns Date portion of the ISO8601 string of the given date, based on the local timezone.\n */\nexport const getISODateString = (date: Date) =>\n  new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())).toISOString().split('T')[0];\n\n/**\n * @param s A date portion of an ISO8601 string, based on the local timezone.\n * @returns The date object corresponding to the given ISO8601 string.\n */\nexport const parseISODateString = (s: string) => {\n  const utcDate = new Date(Date.parse(s));\n  return new Date(utcDate.getUTCFullYear(), utcDate.getUTCMonth(), utcDate.getUTCDate());\n};\n"]}