@classmethod
def dt_to_epoch(cls, dt):
    """
        Convert a datetime (UTC required) to a unix time since epoch, as seconds, as integer.
        Note that millis precision is lost.
        :param dt: datetime
        :type dt: datetime
        :return int
        :rtype int
        """
    return int((dt - cls.DT_EPOCH).total_seconds())
