http://justcoding.iteye.com/blog/901758 Python实例讲解 -- 获取本地时间日期(日期计算)
#! /usr/bin/env python #coding=utf-8 import time import datetime d1 = datetime.datetime.now() d3 = d1 + datetime.timedelta(days =10) print str(d3) print d3.ctime()