I have checked this line over and over and cannot find where the mismatch is on this error. Maybe another set of eyes can tell me?
ValueError: time data
'2019-07-17T00:00:00.000000000Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
Where is the mismatch?
**UPDATE*****
The 2019-07-17T00:00:00.000000000Z
is part of a JSON stream:
{
"volume": 82,
"mid": {
"h": "1.12286",
"c": "1.12272",
"l": "1.12267",
"o": "1.12274"
},
"complete": true,
"time": "2019-07-17T23:00:00.000000000Z"
},
{
"volume": 10,
"mid": {
"h": "1.12284",
"c": "1.12272",
"l": "1.12272",
"o": "1.12274"
},
"complete": false,
"time": "2019-07-18T00:00:00.000000000Z"
}
This is exactly as received, and I am sending the time
value into this function:
time.mktime(time.strptime(str(json['time']), '%Y-%m-%dT%H:%M:%S.%fZ')))