def _getTimeLimits(self):
    (timepoints, timelimits) = ([], [])
    b = self._elem.find(ns('lonLatEnvelope'))
    if (b is not None):
        timepoints = b.findall('{http://www.opengis.net/gml}timePosition')
    else:
        if (not hasattr(self, 'descCov')):
            self.descCov = self._service.getDescribeCoverage(self.id)
        for pos in self.descCov.findall((((ns('CoverageOffering/') + ns('domainSet/')) + ns('temporalDomain/')) + '{http://www.opengis.net/gml}timePosition')):
            timepoints.append(pos)
    if timepoints:
        timelimits = [timepoints[0].text, timepoints[1].text]
    return timelimits
def _getTimeLimits(self):
    (timepoints, timelimits) = ([], [])
    b = self._elem.find(ns('lonLatEnvelope'))
    if (b is not None):
        timepoints = b.findall('{http://www.opengis.net/gml}timePosition')
    else:
        if (not hasattr(self, 'descCov')):
            self.descCov = self._service.getDescribeCoverage(self.id)
        for pos in self.descCov.findall((((ns('CoverageOffering/') + ns('domainSet/')) + ns('temporalDomain/')) + '{http://www.opengis.net/gml}timePosition')):
            timepoints.append(pos)
    if timepoints:
        timelimits = [timepoints[0].text, timepoints[1].text]
    return timelimits