Skip to content

Commit 9dbe596

Browse files
authored
Fix ISO date and time format (#66)
The separator for milliseconds is a dot according to ISO 8601.
1 parent 6af510b commit 9dbe596

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/datetime/test_breaks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
def test_by_n_microseconds():
13-
l1 = dt(("2025-01-01 01:10:30:000250", "2025-01-01 01:10:30:000600"))
13+
l1 = dt(("2025-01-01 01:10:30.000250", "2025-01-01 01:10:30.000600"))
1414
assert by_n(l1) == [
1515
datetime(2025, 1, 1, 1, 10, 30, 200),
1616
datetime(2025, 1, 1, 1, 10, 30, 300),
@@ -264,7 +264,7 @@ def test_by_n_century():
264264

265265

266266
def test_by_width_microseconds():
267-
l1 = dt(("2025-01-01 01:10:30:000250", "2025-01-01 01:10:30:000600"))
267+
l1 = dt(("2025-01-01 01:10:30.000250", "2025-01-01 01:10:30.000600"))
268268
assert by_width(l1, "250 microseconds") == [
269269
datetime(2025, 1, 1, 1, 10, 30, 250),
270270
datetime(2025, 1, 1, 1, 10, 30, 500),

0 commit comments

Comments
 (0)