I tried the following code:
>> import dateutil.parser
>>> date=dateutil.parser.parse("2018-11-23T19:0:09Z")
>>> date.strftime("%s")
'1542996009'
However the returned value 1542996009 correspond to 11/23/2018 @ 6:00pm (UTC) according to https://www.unixtimestamp.com/index.php and it should be 7:00pm
What would be the correct way to get unix timestamp from iso-8601 formatted date string?
Note: Unix timestamp is the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, so I think this is a timezone problem, that is to say the value I got isn't in UTC.