コード例 #1
0
    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'])
コード例 #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'])
コード例 #3
0
ファイル: PySensePlugin.py プロジェクト: nathangiusti/PySense
    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'])
コード例 #4
0
    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