PYTHON模块之time

time.strftime

>>> time.strftime('%Y-%m-%d %H:%M:%S')

'2012-03-08 13:38:47'

你可能感兴趣的:(PYTHON模块之time)