Loading…

Calculate the number of milliseconds difference between two times

```javascript WXAPI.commonDiffMillis(d1, d2) ``` + d1 date, the format is: 2022-05-08 10:54:18, if not passed, the default is the current time + d2 date, the format is: 2022-05-08 10:54:18, if not passed, the default is the current time ```json { "code": 0, "data": 1000, "msg": "success" } ``` + data The number of milliseconds difference between the two times