1import pandas as pd
2
3l = (pd.DataFrame(columns=['NULL'],
4 index=pd.date_range('2016-09-02T17:30:00Z', '2016-09-04T21:00:00Z',
5 freq='15T'))
6 .between_time('07:00','21:00')
7 .index.strftime('%Y-%m-%dT%H:%M:%SZ')
8 .tolist()
9)