def set_epoch(self, epoch=None):
        """
        RPC call to set the current time epoch value, required for TOTP use.
        NOTE: The time is lost on each power-down and must be reset on restart/reconnect before
        TOTP can be used.

        Parameters
        ----------
        epoch : int, optional
            Current epoch value, in seconds.  Defaults to int(time.time()) value.

        Returns
        -------
        bool
            True on success
        """
        params = {'epoch': epoch if epoch is not None else int(time.time())}
        return self._jadeRpc('set_epoch', params)

        RPC call to set the current time epoch value, required for TOTP use.
        NOTE: The time is lost on each power-down and must be reset on restart/reconnect before
        TOTP can be used.

        Parameters
        ----------
        epoch : int, optional
            Current epoch value, in seconds.  Defaults to int(time.time()) value.

        Returns
        -------
        bool
            True on success
        
electrum/plugins/jade/jadepy/jade.py