Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(66)  |  Call(65)  |  Derive(0)  |  Import(1)

src/e/r/erp5-HEAD/product/ERP5Type/patches/DateTimePatch.py   erp5(Download)
from DateTime import DateTime as DateTimeKlass
import math
from DateTime.DateTime import _calcSD, _calcDependentSecond, _calcYMDHMS,\
getDefaultDateFormat, _correctYear, _calcHMS, _calcDependentSecond2, DateTimeError,\
SyntaxError, DateError, TimeError, localtime, time
  if day is None:
    # Use today's date.
    year,month,day = localtime(time())[:3]
 
  year = _correctYear(year)