# Path: baroque/utils/timestamp.py
# TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
# def utc_now():
# def stringify(timestamp):


from baroque.utils import timestamp as ts
    def react_conditionally(self, event):
        """First checks if the condition is satisfied, then based on the outcome
        executes the action.

        Args:
            event (:obj:`baroque.entities.event.Event`): the triggering event

        """
        if self._condition_met(event):
            self.react(event)

    def count_reactions(self):
        """Gives the number of times this reactor's action has been executed

        Returns:
            int

        """
        return self.reactions_count

    def last_reacted_on(self):
        """Gives the timestamp of the last time when the reactor's action has
        been executed

        Returns:
            str if reactor reacted at least once, ``None`` otherwise

        """
        if self.last_reaction_timestamp is None:
            return None

# Path: baroque/utils/timestamp.py
# TIME_FORMAT = '%Y-%m-%dT%H:%M:%SZ'
# def utc_now():
# def stringify(timestamp):


# Path: baroque/entities/reactor.py
from baroque.utils import timestamp as ts

    def react_conditionally(self, event):
        """First checks if the condition is satisfied, then based on the outcome
        executes the action.

        Args:
            event (:obj:`baroque.entities.event.Event`): the triggering event

        """
        if self._condition_met(event):
            self.react(event)

    def count_reactions(self):
        """Gives the number of times this reactor's action has been executed

        Returns:
            int

        """
        return self.reactions_count

    def last_reacted_on(self):
        """Gives the timestamp of the last time when the reactor's action has
        been executed

        Returns:
            str if reactor reacted at least once, ``None`` otherwise

        """
        if self.last_reaction_timestamp is None:
            return None

        return ts.stringify(self.last_reaction_timestamp)