瞎扯淡 now time is Time.now.strftime ('%F %R:%S')

small_fish__ · 2012年11月25日 · 最后由 rehmet 回复于 2012年12月03日 · 2743 次阅读

Time.now.strftime('%F %R:%S') => "2012-11-25 00:32:53" maybe it is time to sleep z~~~

import datetime datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S' ) '2012-12-03 18:54:43'

看起来比 Python 的干净点。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号