bpb/utils.py
def parse_date(date_args):
    """
    Parse argument into a datetime object

    Args:
        date_args: A list or datetime object to be parsed.

    Returns:
        tuple: A tuple of a string-date and a datetime object.
    """

    if isinstance(date_args, (list, tuple)):
        date_args = " ".join(date_args)
    elif isinstance(date_args, datetime):
        date_args = str(date_args)
    datetime_obj = dateutil_parser.parse(date_args)
    parsed_date = prettify_date(datetime_obj)
    return parsed_date, datetime_obj

    Parse argument into a datetime object

    Args:
        date_args: A list or datetime object to be parsed.

    Returns:
        tuple: A tuple of a string-date and a datetime object.
    
Parse argument into a datetime object
Parse argument into a datetime object
def parse_date(date_args):
    if isinstance(date_args, (list, tuple)):
        date_args = " ".join(date_args)
    elif isinstance(date_args, datetime):
        date_args = str(date_args)
    datetime_obj = dateutil_parser.parse(date_args)
    parsed_date = prettify_date(datetime_obj)
    return parsed_date, datetime_obj
def parse_date ( date_args ) : if isinstance ( date_args , ( list , tuple ) ) : date_args = " " . join ( date_args ) elif isinstance ( date_args , datetime ) : date_args = str ( date_args ) datetime_obj = dateutil_parser . parse ( date_args ) parsed_date = prettify_date ( datetime_obj ) return parsed_date , datetime_obj
Parse argument into a datetime object
Parse argument into a datetime object
"""
    Parse argument into a datetime object

    Args:
        date_args: A list or datetime object to be parsed.

    Returns:
        tuple: A tuple of a string-date and a datetime object.
    """
A tuple of a string-date and a datetime object.
A tuple of a string - date and a datetime object .
tuple
date_args
A list or datetime object to be parsed.
A list or datetime object to be parsed .