Improve date formatting

This commit is contained in:
Edward Betts 2022-04-08 10:35:21 +01:00
parent 79111a25de
commit c1e53c727f
2 changed files with 6 additions and 2 deletions

View file

@ -12,3 +12,6 @@ def test_format_wikibase_time_century():
v = {"time": "+1950-00-00T00:00:00Z", "precision": 7}
assert utils.format_wikibase_time(v) == "20th century"
v = {"time": "+1868-01-09T00:00:00Z", "precision": 11}
assert utils.format_wikibase_time(v) == "9 January 1868"