You can use self.data.datetime.datetime() to return a datetime object with the timestamp of the last datapoint avaiable on the data