'Timestamps calculated at different times are the same for python3.6

I want to calculate the timestamps at different times. On the linux server, I call the package time that comes with python, but the timestamps of 2:00 a.m. on April 15, 1990 and 3:00 a.m. on April 15, 1990 are the same Yes, I want to ask if it is the problem of the python package itself, thank you

Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

$import time
$time.mktime(time.strptime(str('1990-04-15 02:00:00'), '%Y-%m-%d %H:%M:%S'))
$640116000.0
$time.mktime(time.strptime(str('1990-04-15 03:00:00'), '%Y-%m-%d %H:%M:%S'))
$640116000.0


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source