We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c50f70 commit 710052cCopy full SHA for 710052c
pandas/tests/scalar/timestamp/test_constructors.py
@@ -58,6 +58,12 @@ def test_constructor_str_infer_reso(self):
58
ts = Timestamp("2016 June 3 15:25:01.345")
59
assert ts.unit == "ms"
60
61
+ ts = Timestamp("300-01-01")
62
+ assert ts.unit == "s"
63
+
64
+ ts = Timestamp("300 June 1:30:01.300")
65
+ assert ts.unit == "ms"
66
67
def test_constructor_from_iso8601_str_with_offset_reso(self):
68
# GH#49737
69
ts = Timestamp("2016-01-01 04:05:06-01:00")
0 commit comments