What does python return on the leap second
问题 What does python time and datetime module return on the leap second? What will I get when we are at 23:59:60.5 if I call: time.time() datetime.datetime.utcnow() datetime.datetime.now(pytz.utc) Also, any difference between py2.7 and py3? Why it is confusing (at least for me): From the datetime docs I see: Unlike the time module, the datetime module does not support leap seconds. On the time docs I see there is "support" for leap seconds when parsing with strptime . But there is no comment