Lines Matching refs:DateTime
2 import datetime
37 'datetime1': xmlrpclib.DateTime('20050210T11:41:23'),
38 'datetime2': xmlrpclib.DateTime(
40 'datetime3': xmlrpclib.DateTime(
41 datetime.datetime(2005, 02, 10, 11, 41, 23)),
51 # This checks that an unwrapped datetime.date object can be handled
54 # datetime objects for the 'datetime[123]' keys as well
55 dt = datetime.datetime(2005, 02, 10, 11, 41, 23)
62 self.assertEqual(newdt, xmlrpclib.DateTime('20050210T11:41:23'))
66 dt = datetime.datetime(1, 02, 10, 11, 41, 23)
73 self.assertEqual(newdt, xmlrpclib.DateTime('00010210T11:41:23'))
76 now = datetime.datetime.now()
77 dt = xmlrpclib.DateTime(now.timetuple())
80 then = now + datetime.timedelta(seconds=4)
85 d = xmlrpclib.DateTime()
216 t = xmlrpclib.DateTime()
220 t = xmlrpclib.DateTime(d)
225 t = xmlrpclib.DateTime(d)
230 t = xmlrpclib.DateTime(d)
234 d = datetime.datetime(2007,1,2,3,4,5)
235 t = xmlrpclib.DateTime(d)
239 d = datetime.datetime(2007,1,2,3,4,5)
240 t = xmlrpclib.DateTime(d)
241 val ="<DateTime '20070102T03:04:05' at %x>" % id(t)
246 t1 = xmlrpclib.DateTime()
248 tref = xmlrpclib.DateTime(datetime.datetime(2007,9,8,7,11,13))