utils.py
Go to the documentation of this file.
1 from datetime import datetime
2 import pytz
3 
4 
6  time = datetime.utcfromtimestamp(timestamp.to_sec())
7  time = pytz.timezone('UTC').localize(time).isoformat('T')
8  return time
def timestamp_to_influxdb_time(timestamp)
Definition: utils.py:5


influxdb_store
Author(s): Shingo Kitagawa
autogenerated on Sat Jun 24 2023 02:40:23