We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 474803b commit 5f2823aCopy full SHA for 5f2823a
tests/test_formats.py
@@ -43,12 +43,8 @@ def test_currency_format():
43
""")
44
45
46
-# def test_date_format():
47
-# vs = ['2015-07-01 22:39:44.900351']
48
-# t = Table([vs], ['time'])
49
-# t.set_format('time', DateFormatter("%Y-%m-%d %H:%M:%S.%f"))
50
-# assert_equal(t['time'][0], 1435815584.9) # values are timestamps
51
-# assert_equal(t, """
52
-# time
53
-# 2015-07-01 22:39:44.900351
54
-# """)
+def test_date_format():
+ vs = ['2015-07-01 22:39:44.900351']
+ t = Table([vs], ['time'])
+ t.set_format('time', DateFormatter("%Y-%m-%d %H:%M:%S.%f"))
+ assert_equal(t['time'][0], 1435815584.9) # values are timestamps
0 commit comments