def days_at_time(days, t, tz, day_offset=0):
 if (len(days) == 0):
  return days
 days = DatetimeIndex(days).tz_localize(None)
 delta = pd.Timedelta(days=day_offset, hours=t.hour, minutes=t.minute, seconds=t.second)
 return (days + delta).tz_localize(tz).tz_convert('UTC')

def days_at_time ( days , t , tz , day_offset = 0 ) : if ( len ( days ) == 0 ) : return days days = DatetimeIndex ( days ) . tz_localize ( None ) delta = pd . Timedelta ( days = day_offset , hours = t . hour , minutes = t . minute , seconds = t . second ) return ( days + delta ) . tz_localize ( tz ) . tz_convert ( 'UTC' )
create an index of days at time t .