(year, month, day)
| 36 | }; |
| 37 | |
| 38 | const obj2DateStr = (year, month, day) => { |
| 39 | if (month < 10) month = `0${month}`; |
| 40 | if (day < 10) day = `0${day}`; |
| 41 | return `${year}-${month}-${day}`; |
| 42 | }; |
| 43 | |
| 44 | module.exports = { |
| 45 | dateStr2Obj, date2DateStr, date2Obj, obj2DateStr |
no outgoing calls
no test coverage detected
searching dependent graphs…