def convert_to_js_timestamp(timestamp):
    if timestamp:
        return int(timestamp.strftime("%s")) * 1000
    return None
Return the absolute url of an object.
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/utils/time.py/convert_to_js_timestamp--crossover with--dataset/ETHPy150Open rtucker-mozilla/mozilla_inventory/core/mixins.py/ObjectUrlMixin.get_absolute_url