可以說我有一個日誌有關打開吧:Solr的,時間之間搜索,忽略日期
{
opened: '2013-11-05T00:00:00Z',
opened_start: '2013-11-05T12:00:00Z',
opened_end: '2013-11-05T14:00:00Z',
},
{
opened: '2013-15-05T00:00:00Z',
opened_start: '2013-15-05T11:00:00Z',
opened_end: '2013-15-05T13:00:00Z',
},
{
opened: '2013-11-05T00:00:00Z',
opened_start: '2013-11-05T18:00:00Z',
opened_end: '2013-11-05T19:00:00Z',
},
{
opened: '2013-11-12T00:00:00Z',
opened_start: '2013-11-12T02:00:00Z',
opened_end: '2013-11-12T14:00:00Z',
}
現在我只需要和00:00:00之間06:00:00打開吧。我沒有對結構的影響,但它基本上建立這樣的:
{
opened: 'YMD000',
opened_start: 'YMD02:00:00Z',
opened_end: 'YMD14:00:00Z',
}
編輯:我在想從其減去的:opened_start - 打開,所以我只能得到次:0000-00-00 02:00:00