boundary/measurement_get.py
def parse_time_date(self, s):
        """
        Attempt to parse the passed in string into a valid datetime.
        If we get a parse error then assume the string is an epoch time
        and convert to a datetime.
        """
        try:
            ret = parser.parse(str(s))
        except ValueError:
            try:
                ret = datetime.fromtimestamp(int(s))
            except TypeError:
                ret = None
        return ret
def parse_time_date(self, s):
        try:
            ret = parser.parse(str(s))
        except ValueError:
            try:
                ret = datetime.fromtimestamp(int(s))
            except TypeError:
                ret = None
        return ret
def parse_time_date ( self , s ) : try : ret = parser . parse ( str ( s ) ) except ValueError : try : ret = datetime . fromtimestamp ( int ( s ) ) except TypeError : ret = None return ret
Attempt to parse the passed in string into a valid datetime.
        If we get a parse error then assume the string is an epoch time
        and convert to a datetime.
Attempt to parse the passed in string into a valid datetime . If we get a parse error then assume the string is an epoch time and convert to a datetime .