def unix_time(zulu_time_string): dt = datetime.strptime(zulu_time_string, "%Y-%m-%dT%H:%M:%SZ") epoch = datetime.utcfromtimestamp(0) delta = dt - epoch return int(delta.total_seconds() * 1000)