现有数据结构
[
{
"checktime": "2017-06-01 10:47:46"
},
{
"checktime": "2017-06-01 20:57:17"
},
{
"checktime": "2017-06-02 15:15:45"
},
{
"checktime": "2017-06-02 22:33:11"
},
{
"checktime": "2017-06-02 22:43:54"
},
{
"checktime": "2017-06-03 07:37:42"
},
{
"checktime": "2017-06-03 20:02:47"
},
{
"checktime": "2017-06-04 07:43:40"
},
{
"checktime": "2017-06-06 07:44:25"
},
{
"checktime": "2017-06-06 23:51:53"
}
]
理想数据结构
[
{
"start": "2017-06-01 10:47:46",
"end": "2017-06-01 20:57:17"
},
{
"start": "2017-06-02 15:15:45",
"end": "2017-06-02 22:43:54"
},
{
"start": "2017-06-03 07:37:42",
"end": "2017-06-03 20:02:47"
},
{
"start": "2017-06-04 07:43:40"
},
{
"start": "2017-06-06 07:44:25",
"end": "2017-06-06 23:51:53"
},
]
守着一只汪
肥皂起泡泡