def get_ratetimestamp(self, base, code):
        """Return rate timestamp as a datetime/date or None"""
        self.get_latestcurrencyrates(base)
        try:
            return datetime.fromtimestamp(self.rates["timestamp"])
        except KeyError:
            return None
def get_ratetimestamp ( self , base , code ) : self . get_latestcurrencyrates ( base ) try : return datetime . fromtimestamp ( self . rates [ "timestamp" ] ) except KeyError : return None
Return rate timestamp as a datetime/date or None