I have following part of script:
time = datetime.strptime(msg['timestamp'].split('.')[0],'%Y-%m-%dT%H:%M:%S')
msg['timestamp'] is string. I would like to converted this time to CEST. Do you have any ideas?
Best Regards
I have following part of script:
time = datetime.strptime(msg['timestamp'].split('.')[0],'%Y-%m-%dT%H:%M:%S')
msg['timestamp'] is string. I would like to converted this time to CEST. Do you have any ideas?
Best Regards
Finally I use this
time = datetime.strptime(msg['timestamp'].split('.')[0],'%Y-%m-%dT%H:%M:%S') timestamp = time+ timedelta(hours=2)