有什么区别?使用datetime_safe
更安全吗?我在这个班上找不到任何文件。
答案 0 :(得分:11)
datetime_safe
的源代码中注明了差异:
# Python's datetime strftime doesn't handle dates before 1900.
# These classes override date and datetime to support the formatting of a date
# through its full "proleptic Gregorian" date range.
许