Why python time has 61 seconds

后端 未结 5 2083
逝去的感伤
逝去的感伤 2021-01-04 03:57

Did anybody notice that the interval of second in Python datetime is [00,61] see the table in the bottom of this page. http://docs.python.org/library/datetime.html#strftime-

5条回答
  •  無奈伤痛
    2021-01-04 04:43

    When you have to add leap second it will be helpful to calculate that. You can search on net for leap second. Due to that second range in python is 0-61.

提交回复
热议问题