def get_created_date(self):
        """Returns the creation datetime of the dashboard

        Returns:
            datetime: The created datetime
        """
        return PySenseUtils.sisense_time_to_python(self.json['created'])
Exemple #2
0
    def get_last_login(self):
        """Returns the time the user last logged in.

        Returns:
            datetime: The datetime the user last logged in
        """

        return PySenseUtils.sisense_time_to_python(self.json['lastLogin'])
    def get_last_update(self):
        """Get the plugins last update time.

        Returns:
            datetime: The time the plugin was last updated
        """

        return PySenseUtils.sisense_time_to_python(self.json['lastUpdate'])
    def get_last_opened(self):
        """Returns the last opened time for the dashboard

        Returns:
            datetime: The last opened datetime
        """

        if 'lastOpened' in self.json:
            return PySenseUtils.sisense_time_to_python(self.json['lastOpened'])
        else:
            return None