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 0x199ca80>, [<RelativeDateTime instance for 'YYYY-MM-DD 02:03:00' at 0x199cad0>, <RelativeDateTime instance for 'YYYY-(+03)-(+30) 02:03:00' at 0x199ca58>, 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 0x199cc10>, [<RelativeDateTime instance for 'YYYY-MM-DD 14:00:00' at 0x199c9b8>, <RelativeDateTime instance for 'YYYY-(+03)-(+30) 14:00:00' at 0x199cb98>, 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 0x199cbc0>, [14.5]), (<RelativeDateTime instance for 'YYYY-MM-DD 00:30:00' at 0x199c800>, ['24:30', '48:30']), (<RelativeDateTime instance for 'YYYY-MM-DD 00:00:00' at 0x199ca30>, ['24:00', '12am', '0am']), (<RelativeDateTime instance for 'YYYY-MM-DD 12:00:00' at 0x1917c88>, ['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 1311de0>, [<mx.DateTime.DateTime object for '2003-02-23 00:00:00.00' at 1a1f0a0>, '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 1a28260>, ['Feb 23rd', 'February 23', '02/23', 'feb 23']), (<mx.DateTime.DateTime object for '2003-02-23 00:00:00.00' at 1a282a0>, ['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 1982598>, [<mx.DateTime.DateTimeDelta object for '1:02:03:04.00' at 19825e8>, '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 19821b0>, ['-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 1982610>, ['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 18f6f98>, ['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 |