Here's some code that uses the Quantopian get_early_closes utility function to detect if the market will close early, due to a planned closing. I ran the backtest on daily data, but the idea is to use get_early_closes when running on minute data to flag when the market will close at 1 pm.
The log output, showing the days when the market closed early over the time period of the backtest:
2012-07-03 PRINT 2012-07-03
2012-11-23 PRINT 2012-11-23
2012-12-24 PRINT 2012-12-24
2013-07-03 PRINT 2013-07-03
End of logs.
Grant