Lines Matching refs:DateTime
2 import datetime
33 'datetime1': xmlrpclib.DateTime('20050210T11:41:23'),
34 'datetime2': xmlrpclib.DateTime(
36 'datetime3': xmlrpclib.DateTime(
37 datetime.datetime(2005, 02, 10, 11, 41, 23)),
53 # This checks that an unwrapped datetime.date object can be handled
56 # datetime objects for the 'datetime[123]' keys as well
57 dt = datetime.datetime(2005, 02, 10, 11, 41, 23)
64 self.assertEqual(newdt, xmlrpclib.DateTime('20050210T11:41:23'))
68 dt = datetime.datetime(1, 02, 10, 11, 41, 23)
75 self.assertEqual(newdt, xmlrpclib.DateTime('00010210T11:41:23'))
78 now = datetime.datetime.now()
79 dt = xmlrpclib.DateTime(now.timetuple())
82 then = now + datetime.timedelta(seconds=4)
87 d = xmlrpclib.DateTime()
251 t = xmlrpclib.DateTime()
255 t = xmlrpclib.DateTime(d)
260 t = xmlrpclib.DateTime(d)
265 t = xmlrpclib.DateTime(d)
269 d = datetime.datetime(2007,1,2,3,4,5)
270 t = xmlrpclib.DateTime(d)
274 d = datetime.datetime(2007,1,2,3,4,5)
275 t = xmlrpclib.DateTime(d)
276 val ="<DateTime '20070102T03:04:05' at %x>" % id(t)
281 t1 = xmlrpclib.DateTime()
283 tref = xmlrpclib.DateTime(datetime.datetime(2007,9,8,7,11,13))