# get integer and fractional parts of modulo division i, f = divmod(timeStamp, 3600) # i * 3600 is hour:0:0 time timestamp1 = i * 3600