Format time as '%m/%d/%Y'

2019-06-16 02:09栏目:技术创新

time = Time.gm(2005, 12, 31, 13, 22, 33)
four_digit_year_date = '%m/%d/%Y'
time.strftime(four_digit_year_date)        # => '12/31/2005'

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:Format time as '%m/%d/%Y'