(date)
| 4 | const BEGIN_DATE = `${BEGIN_YEAR}-${BEGIN_MONTH}-${BEGIN_MONTH}`; |
| 5 | |
| 6 | const date2Obj = (date) => { |
| 7 | let year = date.getFullYear() || BEGIN_YEAR; |
| 8 | let month = date.getMonth() + 1 || BEGIN_MONTH; |
| 9 | let day = date.getDate() || BEGIN_DAY; |
| 10 | return {year, month, day}; |
| 11 | }; |
| 12 | |
| 13 | const dateStr2Obj = (dateStr, options={ begin: null, end: null}) => { |
| 14 | let begin = options.begin || BEGIN_DATE, |
no outgoing calls
no test coverage detected
searching dependent graphs…