'Parses an aff4 age and returns a datastore age specification.'

@classmethod
def ParseAgeSpecification(cls, age):

    try:
        return (0, int(age))
    except (ValueError, TypeError):
        pass
    if (age == NEWEST_TIME):
        return data_store.DB.NEWEST_TIMESTAMP
    elif (age == ALL_TIMES):
        return data_store.DB.ALL_TIMESTAMPS
    elif (len(age) == 2):
        (start, end) = age
        return (int(start), int(end))
    raise RuntimeError(('Unknown    age    specification:    %s' % age))
