aisstream / issues

8 stars 3 forks source link

`time_utc` string in `MetaData` does not conform to ISO 8601 #74

Open yussidivnall opened 9 months ago

yussidivnall commented 9 months ago

This time string is non-standard and does not easily convert to a date object For example 2024-02-17 13:34:56.207576423 +0000 UTC

There are 9 digits after the "." (207576423), not sure if this is microseconds? fractional seconds?

see https://en.wikipedia.org/wiki/ISO_8601

This will make converting to a date object much simpler. A work around is to use datetime.datetime.now() (or equivalent) as it's almost identical to the one coming from the API anyway.

viresh-meshai commented 6 months ago

I have just noticed this and was going to remove some of the 9 digits!