Module rpa_logger.utils

Utilities to make rpa_logger usage easier.

Expand source code
'''Utilities to make `rpa_logger` usage easier.
'''

from datetime import datetime


def timestamp():
    '''Get UTC ISO-8601 timestamp for current time.

    Returns:
        String with UTC ISO-8601 timestamp for current time
    '''
    return f'{datetime.utcnow().isoformat()}Z'

Sub-modules

rpa_logger.utils.args

Helpers for adding Logger parameters to ArgumentParser and parsing Logger parameters from parsed command line arguments.

rpa_logger.utils.output

Utilities for working with task output.

rpa_logger.utils.terminal

Utilities for printing output to the terminal.

Functions

def timestamp()

Get UTC ISO-8601 timestamp for current time.

Returns

String with UTC ISO-8601 timestamp for current time

Expand source code
def timestamp():
    '''Get UTC ISO-8601 timestamp for current time.

    Returns:
        String with UTC ISO-8601 timestamp for current time
    '''
    return f'{datetime.utcnow().isoformat()}Z'