def getValue()

in functions/datetime/main.py [0:0]


def getValue(request):
    """
    A Cloud Function used in Workflow samples that returns the day of the week.
    Args:
        request (flask.Request): The request object.
        <http://flask.pocoo.org/docs/1.0/api/#flask.Request>
    Returns:
        The response text, or any set of values that can be turned into a
        Response object using `make_response`
        <http://flask.pocoo.org/docs/1.0/api/#flask.Flask.make_response>.
    """
    my_date = date.today()
    day = calendar.day_name[my_date.weekday()]
    return jsonify({"dayOfTheWeek": day}), 200