Ticket #12261: strftime_filling_with_zeros_years_below_1000.diff
File strftime_filling_with_zeros_years_below_1000.diff, 400 bytes (added by , 15 years ago) |
---|
-
utils/datetime_safe.py
83 83 sites.append(site) 84 84 85 85 s = s1 86 syear = "% 4d" % (dt.year,)86 syear = "%04d" % (dt.year,) 87 87 for site in sites: 88 88 s = s[:site] + syear + s[site+4:] 89 89 return s