python time.time() and “Daylight Saving Time”
问题 What happens when the clock of the computer running python (Windows or Linux) gets automatically changed and a call time.time() ? I've read that the value of time.time() will be smaller when the clock is changed manually to some value in the past. 回答1: time.time() docs state: Return the time in seconds since the epoch as a floating point number. The particular epoch referred to here is the Unix epoch, which is Midnight, Jan 1st 1970 UTC . Since it is always based on UTC, it will not be