def METHOD_NAME(string: str) -> 'DatePayload':
    if string == 'now':
        return DatePayload()
    else:
        date = parse_date(string)
        if date is not None:
            return DatePayload(
                absolute=DatetimePayload.build(date)
            )
        else:
            delta = parse_date_delta(string)
            if delta is not None:
                date = datetime.fromtimestamp(time() + delta)
                return DatePayload(
                    absolute=DatetimePayload.build(date)
                )
    raise ValueError(f"Could not parse date {string}")