basicproperty.tests.test_date | index p:\properties\basicproperty\tests\test_date.py |
Modules | ||||||
|
Classes | ||||||||||||||
|
Data | ||
DATATABLE = [('tod', [(<RelativeDateTime instance for 'YYYY-MM-DD 02:03:00' at 0x1bb51e8>, [<RelativeDateTime instance for 'YYYY-MM-DD 02:03:00' at 0x24d05d0>, <RelativeDateTime instance for 'YYYY-(+03)-(+30) 02:03:00' at 0x24d06c0>, u'2:3:.5', u'02:03:0.5', u'2:3:.5am', (2, 3, 0, 500), [2, 3, 0, 500]]), (<RelativeDateTime instance for 'YYYY-MM-DD 14:00:00' at 0x24d06e8>, [<RelativeDateTime instance for 'YYYY-MM-DD 14:00:00' at 0x24d05a8>, <RelativeDateTime instance for 'YYYY-(+03)-(+30) 14:00:00' at 0x24d05f8>, u'14', u'14:0:0', u'14:00', u'14:00pm', u'2pm', u'2 PM', '14', (14, 0, 0), (14,), (14, 0, 0, 0), 14, 14L, 14.0]), (<RelativeDateTime instance for 'YYYY-MM-DD 14:30:00' at 0x24d0ee0>, [14.5]), (<RelativeDateTime instance for 'YYYY-MM-DD 00:30:00' at 0x24d0f58>, ['24:30', '48:30']), (<RelativeDateTime instance for 'YYYY-MM-DD 00:00:00' at 0x24d0df0>, ['24:00', '12am', '0am']), (<RelativeDateTime instance for 'YYYY-MM-DD 12:00:00' at 0x24d00a8>, ['0pm', '12pm'])], [('a', <class exceptions.ValueError at 0x00764D80>), (None, <class exceptions.TypeError at 0x00764540>), ('am', <class exceptions.ValueError at 0x00764D80>)]), ('dt', [(<mx.DateTime.DateTime object for '2003-02-23 00:00:00.00' at 1737120>, [<mx.DateTime.DateTime object for '2003-02-23 00:00:00.00' at 271e020>, '2003-02-23', u'2003-02-23', (2003, 2, 23, 0, 0, 0, 6, 54, 0), 1045976400.0]), (<mx.DateTime.DateTime object for '2004-02-23 00:00:00.00' at 271e0a0>, ['Feb 23rd', 'February 23', '02/23', 'feb 23']), (<mx.DateTime.DateTime object for '2003-02-23 00:00:00.00' at 271e0e0>, ['Feb 23, 2003', 'February 23, 2003', 'Sunday February 23, 2003', '2003-02-23', 'feb 23, 2003', '2003-02-23'])], []), ('dtd', [(<mx.DateTime.DateTimeDelta object for '1:02:03:04.00' at 24d04a8>, [<mx.DateTime.DateTimeDelta object for '1:02:03:04.00' at 24d0480>, '1 day, 2 hours, 3 minutes and 4 seconds', u'1 day, 2 hours, 3 minutes and 4 seconds', '1d2h3m4s']), (<mx.DateTime.DateTimeDelta object for '-02:03:04.00' at 24d0408>, ['-2:3:4.0', u'-2:3:4.0', '-2:3:4', (0, -2, -3, -4.0)]), (<mx.DateTime.DateTimeDelta object for '02:03:04.00' at 24d03e0>, ['2:3:4.0', u'2:3:4.0', '2:3:4', (0, 2, 3, 4.0)]), (<mx.DateTime.DateTimeDelta object for '02:03:04.34' at 24d0688>, ['2:3:4.34', u'2:3:4.34', '2:3:4.34', (0, 2, 3, 4.3399999999999999)])], [])] suite = <unittest.TestSuite tests=[<unittest.TestSuite t...st_date.DTPropertyTest testMethod=testCoerce>]>]> t1 = 1045976400.0 |