def this_month(t):
 now = time.localtime(t)
 ntime = (now[0], now[1], 1, 0, 0, 0, 0, 0, now[8])
 return time.mktime(ntime)

def this_month ( t ) : now = time . localtime ( t ) ntime = ( now [ 0 ] , now [ 1 ] , 1 , 0 , 0 , 0 , 0 , 0 , now [ 8 ] ) return time . mktime ( ntime )
return timestamp for start of next month .