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.
to_offset
1 parent 31c50bf commit 261da67Copy full SHA for 261da67
pandas/tseries/tests/test_frequencies.py
@@ -72,6 +72,16 @@ def test_to_offset_negative():
72
freqstr = '-5min10s'
73
result = to_offset(freqstr)
74
assert(result.n == -310)
75
+
76
77
+def test_to_offset_leading_zero():
78
+ freqstr = '00H 00T 01S'
79
+ result = to_offset(freqstr)
80
+ assert(result.n == 1)
81
82
+ freqstr = '-00H 03T 14S'
83
84
+ assert(result.n == -194)
85
86
87
def test_anchored_shortcuts():
0 commit comments