Closed oe8bck closed 4 years ago
note that this line specifies what type should time
be:
def format_time(time: mod_datetime.datetime) -> str:
Your tz
iz a string ('2020-08-09T07:20:17Z'
), it should be a datetime.datetime
.
Thanks a lot for the hint!
In the example I changed the 5th line to
ts=datetime.fromtimestamp(1596892743)
and now it works!
KR, Christof
Hi,
I would like to make a track file out of LAT/LON and TIME data. The question is, what I did wrong in the format of the time data.
The original data is in UNIX time stamp and I did it this way:
This works in principle as can be seen e.g. in these statements:
Then I create a track with this time formats with this kind of loop
But if I want to get the XML string, I get these errors:
So what did I wrong? As this class is exactly what I am looking for, any hint to get rid of this error is very welcome! (I've added an example as attachment)
test.py.zip KR, Christof