def convert_to_js_timestamp(timestamp):
    if timestamp:
        return int(timestamp.strftime("%s")) * 1000
    return None
converts a django/python datetime object to milliseconds since epoch
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/utils/time.py/convert_to_js_timestamp