History Splitter Tool

I’m having trouble using the history splitter code in an osm file using the time-filter command every time I get the same error message can anyone see the mistake in my code below.

</osmium time-filter history.osm 2018-01-01T00:00:00Z Adelaide2018maybe.osm
Error Message:
unexpected end tag. line 1. position 3

You need to be using an OSM History file (.osh) not a regular .osm file.