station_simulator/cli.py
def dateparse(date_str):
    '''
    Returns a datetime string parsed from an ISO-8601 input

    :param str date_str: An ISO-8601 string
    '''
    if date_str.endswith('+00'):
        date_str = date_str.replace('+00', 'Z')
    arrow_obj = arrow.get(date_str)
    return arrow_obj.to('utc').naive

    Returns a datetime string parsed from an ISO-8601 input

    :param str date_str: An ISO-8601 string
    
Returns a datetime string parsed from an ISO-8601 input
Returns a datetime string parsed from an ISO - 8601 input
def dateparse(date_str):
    if date_str.endswith('+00'):
        date_str = date_str.replace('+00', 'Z')
    arrow_obj = arrow.get(date_str)
    return arrow_obj.to('utc').naive
def dateparse ( date_str ) : if date_str . endswith ( '+00' ) : date_str = date_str . replace ( '+00' , 'Z' ) arrow_obj = arrow . get ( date_str ) return arrow_obj . to ( 'utc' ) . naive
Returns a datetime string parsed from an ISO-8601 input
Returns a datetime string parsed from an ISO - 8601 input
'''
    Returns a datetime string parsed from an ISO-8601 input

    :param str date_str: An ISO-8601 string
    '''
date_str
An ISO-8601 string
An ISO - 8601 string