src/dirbs/utils.py
def format_datetime_for_report(timestamp_with_tz):
    """Format the datetime into a string for reporting.

    Replace this function with datetime.isoformat(sep=' ', timespec='seconds') after we update python version to 3.6

    Arguments:
        timestamp_with_tz: timestamp object
    Returns:
        formatted date
    """
    if timestamp_with_tz is not None:
        return timestamp_with_tz.strftime('%Y-%m-%d %X')
    else:
        return None
Format the datetime into a string for reporting.

    Replace this function with datetime.isoformat(sep=' ', timespec='seconds') after we update python version to 3.6

    Arguments:
        timestamp_with_tz: timestamp object
    Returns:
        formatted date
    
Format the datetime into a string for reporting.
Replace this function with datetime.isoformat(sep=' ', timespec='seconds') after we update python version to 3.6
Format the datetime into a string for reporting . Replace this function with datetime . isoformat ( sep = ' ' timespec = ' seconds ' ) after we update python version to 3 . 6
def format_datetime_for_report(timestamp_with_tz):
    if timestamp_with_tz is not None:
        return timestamp_with_tz.strftime('%Y-%m-%d %X')
    else:
        return None
def format_datetime_for_report ( timestamp_with_tz ) : if timestamp_with_tz is not None : return timestamp_with_tz . strftime ( '%Y-%m-%d %X' ) else : return None
Format the datetime into a string for reporting.
Format the datetime into a string for reporting .
"""Format the datetime into a string for reporting.

    Replace this function with datetime.isoformat(sep=' ', timespec='seconds') after we update python version to 3.6

    Arguments:
        timestamp_with_tz: timestamp object
    Returns:
        formatted date
    """
None
timestamp_with_tz
None