ARPA-SIMC / dballe

Fast on-disk database for meteorological observed and forecast data.
Other
19 stars 6 forks source link

The datetime parser could be more strict and raise an error when trailing chars are found in the string #230

Closed spanezz closed 4 years ago

spanezz commented 4 years ago

This is related to #221. Currently the datetime parser stops after it has read what it needs.

It should have an option to raise an error if the string still contains characters that are not being parsed (like for example a timezone), to prevent surprising behaviour if one uses more of ISO8601 than the subset dballe can parse.

spanezz commented 4 years ago

I also implemented supporting a trailing Z