def valid_timestamp(request):
    try:
        return request.timestamp
    except exceptions.InvalidTimestamp as e:
        raise HTTPBadRequest(body=str(e), request=request,
                             content_type='text/plain')
Helper function to extract a timestamp from requests that require one.
dataset/ETHPy150Open openstack/swift/swift/common/constraints.py/valid_timestamp