示例#1
0
def test_parse_iso():
    """Test parsing ISO-formatted dates."""
    parsed = parse_iso_date('2015-06-15T12:00:00Z')
    assert parsed.utcoffset() == timedelta(0)
    assert parsed == datetime(2015, 6, 15, 12, tzinfo=utc)
示例#2
0
def test_parse_iso():
    parsed = parse_iso_date('2015-06-15T12:00:00Z')
    eq_(parsed.utcoffset(), timedelta(0))
    eq_(parsed, datetime(2015, 6, 15, 12, tzinfo=utc))
示例#3
0
def test_parse_iso():
    """Test parsing ISO-formatted dates."""
    parsed = parse_iso_date('2015-06-15T12:00:00Z')
    assert parsed.utcoffset() == timedelta(0)
    assert parsed == datetime(2015, 6, 15, 12, tzinfo=utc)
示例#4
0
def test_parse_iso():
    parsed = parse_iso_date('2015-06-15T12:00:00Z')
    assert parsed.utcoffset() == timedelta(0)
    assert parsed == datetime(2015, 6, 15, 12, tzinfo=utc)
示例#5
0
def test_parse_iso():
    parsed = parse_iso_date('2015-06-15T12:00:00Z')
    eq_(parsed.utcoffset(), timedelta(0))
    eq_(parsed, datetime(2015, 6, 15, 12, tzinfo=utc))