from datetime import datetime


def now(includetime=True):
    """Get current time in ISO 8601 format in string format

    Args:
        includetime(bool): includes current hour and minutes. Default is True.

    Returns:
        str: return the current date (and time) in string
    """
    if includetime:
        return (datetime.now().strftime("%Y-%m-%dT%H:%M"))
    else:
        return (datetime.now().strftime("%Y-%m-%d"))