module documentation
Undocumented
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Function | fuzzy |
Fixture to pass fuzzy=True or fuzzy=False to parse |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Function | test |
Undocumented |
Constant | IS |
Undocumented |
Constant | PARSER |
Undocumented |
Constant | PARSER |
Undocumented |
Constant | PLATFORM |
Undocumented |
Variable | _brsttz |
Undocumented |
@pytest.mark.parametrize( 'dstr,expected', [ ( 'Thu Sep 25 10:36:28 BRST 2003', datetime( 2003, 9, 25, 10, 36, 28)), ( '1996.07.10 AD at 15:08:56 PDT', datetime( 1996, 7, 10, 15, 8, 56)), ( 'Tuesday, April 12, 1952 AD 3:30:42pm PST', datetime( 1952, 4, 12, 15, 30, 42)), ( 'November 5, 1994, 8:15:30 am EST', datetime( 1994, 11, 5, 8, 15, 30)), ( '1994-11-05T08:15:30-05:00', datetime( 1994, 11, 5, 8, 15, 30)), ( '1994-11-05T08:15:30Z', datetime( 1994, 11, 5, 8, 15, 30)), ( '1976-07-04T00:01:02Z', datetime( 1976, 7, 4, 0, 1, 2)), ( '1986-07-05T08:15:30z', datetime( 1986, 7, 5, 8, 15, 30)), ( 'Tue Apr 4 00:22:12 PDT 1995', datetime( 1995, 4, 4, 0, 22, 12))])
def test_parse_ignoretz(dstr, expected): (source)
def test_parse_ignoretz(dstr, expected): (source)
Undocumented
@pytest.mark.parametrize( 'dstr,expected', [ ( '20030925T104941-0300', datetime( 2003, 9, 25, 10, 49, 41, tzinfo=_brsttz)), ( 'Thu, 25 Sep 2003 10:49:41 -0300', datetime( 2003, 9, 25, 10, 49, 41, tzinfo=_brsttz)), ( '2003-09-25T10:49:41.5-03:00', datetime( 2003, 9, 25, 10, 49, 41, 500000, tzinfo=_brsttz)), ( '2003-09-25T10:49:41-03:00', datetime( 2003, 9, 25, 10, 49, 41, tzinfo=_brsttz)), ( '20030925T104941.5-0300', datetime( 2003, 9, 25, 10, 49, 41, 500000, tzinfo=_brsttz))])
def test_parse_with_tzoffset(dstr, expected): (source)
def test_parse_with_tzoffset(dstr, expected): (source)
Undocumented
@pytest.mark.parametrize( 'parsable_text,expected_datetime,assertion_message', PARSER_TEST_CASES)
def test_parser(parsable_text, expected_datetime, assertion_message): (source)
def test_parser(parsable_text, expected_datetime, assertion_message): (source)
Undocumented
@pytest.mark.parametrize( 'parsable_text,expected_datetime,assertion_message', PARSER_DEFAULT_TEST_CASES)
def test_parser_default(parsable_text, expected_datetime, assertion_message): (source)
def test_parser_default(parsable_text, expected_datetime, assertion_message): (source)
Undocumented
@pytest.mark.parametrize( 'dtstr,dt', [ ( '5.6h', datetime( 2003, 9, 25, 5, 36)), ( '5.6m', datetime( 2003, 9, 25, 0, 5, 36)), ( '5.6s', datetime( 2003, 9, 25, 0, 0, 5, 600000))])
def test_rounding_floatlike_strings(dtstr, dt): (source)
def test_rounding_floatlike_strings(dtstr, dt): (source)
Undocumented
PARSER_TEST_CASES =
(source)
Undocumented
Value |
|