Python字符串转时间

由 非洲饿鱼 于 星期三, 06/29/2011 - 22:03 发表

    import time, datetime
 
    timestring = "2011-06-29 12:30:09"
    time_format = "%Y-%m-%d %H:%M:%S"
    mytime = time.strptime(timestring,time_format)
    print mytime

同步内容
Drupal theme by Kiwi Themes.