Get a unique, time-based identifier for a deployment
    that optionally, also includes some sort of version number
    or release.

    If a version is supplied, the release ID will be of the form
    '$timestamp-$version'. For example:

    >>> get_release_id(version='1.4.1')
    '20140214231159-1.4.1'

    If the version is not supplied the release ID will be of the
    form '$timestamp'. For example:

    >>> get_release_id()
    '20140214231159'

    The timestamp component of this release ID will be generated
    using the current time in UTC.

    :param str version: Version to include in the release ID
    :return: Unique name for this particular deployment
    :rtype: str

def get_release_id(version=None):
    """Get a unique, time-based identifier for a deployment
    that optionally, also includes some sort of version number
    or release.

    If a version is supplied, the release ID will be of the form
    '$timestamp-$version'. For example:

    >>> get_release_id(version='1.4.1')
    '20140214231159-1.4.1'

    If the version is not supplied the release ID will be of the
    form '$timestamp'. For example:

    >>> get_release_id()
    '20140214231159'

    The timestamp component of this release ID will be generated
    using the current time in UTC.

    :param str version: Version to include in the release ID
    :return: Unique name for this particular deployment
    :rtype: str
    """
    # pylint: disable=invalid-name
    ts = datetime.utcnow().strftime(RELEASE_DATE_FMT)

    if version is None:
        return ts
    return '{0}-{1}'.format(ts, version)