Home
last modified time | relevance | path

Searched refs:datetime (Results 1 – 21 of 21) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_assertions.py1 import datetime
46 first = datetime.datetime.now()
47 second = first + datetime.timedelta(seconds=10)
49 delta=datetime.timedelta(seconds=20))
51 delta=datetime.timedelta(seconds=5))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcalendar.py9 import datetime
49 _months = [datetime.date(2001, i+1, 1).strftime for i in range(12)]
69 _days = [datetime.date(2001, 1, i+1).strftime for i in range(7)]
113 return datetime.date(year, month, day).weekday()
157 date = datetime.date(year, month, 1)
160 date -= datetime.timedelta(days=days)
161 oneday = datetime.timedelta(days=1)
602 _EPOCH_ORD = datetime.date(EPOCH, 1, 1).toordinal()
608 days = datetime.date(year, month, 1).toordinal() - _EPOCH_ORD + day - 1
678 print cal.formatyearpage(datetime.date.today().year, **optdict)
[all …]
Dxmlrpclib.py159 import datetime
161 datetime = None variable
363 if datetime:
364 if isinstance(value, datetime.datetime):
392 elif datetime and isinstance(other, datetime.datetime):
468 return datetime.datetime(*tuple(t)[:6])
741 if datetime:
746 dispatch[datetime.datetime] = dump_datetime
785 if use_datetime and not datetime:
1014 if use_datetime and not datetime:
Dplistlib.py62 import datetime
198 return datetime.datetime(*lst)
255 elif isinstance(value, datetime.datetime):
D_strptime.py19 from datetime import date as datetime_date
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcalendar.py9 import datetime
49 _months = [datetime.date(2001, i+1, 1).strftime for i in range(12)]
69 _days = [datetime.date(2001, 1, i+1).strftime for i in range(7)]
113 return datetime.date(year, month, day).weekday()
157 date = datetime.date(year, month, 1)
160 date -= datetime.timedelta(days=days)
161 oneday = datetime.timedelta(days=1)
607 _EPOCH_ORD = datetime.date(EPOCH, 1, 1).toordinal()
613 days = datetime.date(year, month, 1).toordinal() - _EPOCH_ORD + day - 1
683 print cal.formatyearpage(datetime.date.today().year, **optdict)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_plistlib.py6 import datetime
114 aDate = datetime.datetime(2004, 10, 26, 10, 33, 33),
Dtest_xmlrpc.py2 import datetime
41 datetime.datetime(2005, 02, 10, 11, 41, 23)),
55 dt = datetime.datetime(2005, 02, 10, 11, 41, 23)
66 dt = datetime.datetime(1, 02, 10, 11, 41, 23)
76 now = datetime.datetime.now()
80 then = now + datetime.timedelta(seconds=4)
234 d = datetime.datetime(2007,1,2,3,4,5)
239 d = datetime.datetime(2007,1,2,3,4,5)
248 tref = xmlrpclib.DateTime(datetime.datetime(2007,9,8,7,11,13))
Dtest_datetime.py13 from datetime import MINYEAR, MAXYEAR
14 from datetime import timedelta
15 from datetime import tzinfo
16 from datetime import time
17 from datetime import date, datetime
36 import datetime
37 self.assertEqual(datetime.MINYEAR, 1)
38 self.assertEqual(datetime.MAXYEAR, 9999)
72 dt = datetime.max
86 dt = datetime.now()
[all …]
Dtest_strptime.py9 from datetime import date as datetime_date
278 import datetime
279 d = datetime.datetime(2012, 12, 20, 12, 34, 56, 78987)
Dtest_str.py152 import datetime
159 d = datetime.date(2007, 8, 18)
206 class I(datetime.date):
Dtest_inspect.py7 import datetime
97 self.assertFalse(inspect.ismemberdescriptor(datetime.timedelta.days))
Dtest_sys.py589 import datetime
590 check(datetime.timedelta.days, size(h + '2PP'))
Dtest_unicode.py1114 import datetime
1169 class I(datetime.date):
/device/linaro/bootloader/edk2/BaseTools/Source/Python/build/
DBuildReport.py30 from datetime import datetime
606 self.BuildTimeStamp = datetime.fromtimestamp(int(Match.group(1)))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/
DPythonReadMe.txt188 datetime Modules/datetimemodule.c
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/
DPy2710ReadMe.txt210 datetime Modules/datetimemodule.c
/device/linaro/bootloader/edk2/IntelFspPkg/Tools/
DGenCfgOpt.py18 from datetime import date
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/
DGenCfgOpt.py18 from datetime import date
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Ddatetimemodule.c3277 PyDateTime_DateTime datetime; in time_isoformat() local
3278 PyDateTime_DateTime *pdatetime = &datetime; in time_isoformat()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Ddatetimemodule.c3277 PyDateTime_DateTime datetime; in time_isoformat() local
3278 PyDateTime_DateTime *pdatetime = &datetime; in time_isoformat()