def to_today(when, log=logging.getLogger('{}.time_utils'.format(LOG_PREFIX)), output='Java'):
    "Takes a when (see to_datetime) and updates the date to today.\n    Arguments:\n        - when : One of the types or formats supported by to_datetime\n        - log: optional logger, when not supplied one is created for logging errors\n    Returns:\n        - ZonedDateTime specified by when with today's date.\n        - datetime specified by when with today's date if output = 'Python'\n        - ZonedDateTime specified by when with today's date if output = 'Java'\n    "
    log.debug(('output is: ' + str(output)))
    if (output == 'Python'):
        dt = to_datetime(when, log=log, output='Python')
        return datetime.combine(date.today(), dt.timetz())
    elif (output == 'Java'):
        dt = to_datetime(when, log=log, output='Java')
        now = dt.now()
        return now.withHour(dt.getHour()).withMinute(dt.getMinute()).withSecond(dt.getSecond()).withNano(dt.getNano())
    elif (output == 'Joda'):
        log.error("to_today trying to return dt joda - use output = 'Python' or output = 'Java' instead")
    else:
        log.error('to_today cannot output [{}]'.format(output))
Takes a when (see to_datetime) and updates the date to today.
Arguments:
    - when : One of the types or formats supported by to_datetime
    - log: optional logger, when not supplied one is created for logging errors
Returns:
    - ZonedDateTime specified by when with today's date.
    - datetime specified by when with today's date if output = 'Python'
    - ZonedDateTime specified by when with today's date if output = 'Java'
def to_today(when, log=logging.getLogger('{}.time_utils'.format(LOG_PREFIX)), output='Java'):
    "Takes a when (see to_datetime) and updates the date to today.\n    Arguments:\n        - when : One of the types or formats supported by to_datetime\n        - log: optional logger, when not supplied one is created for logging errors\n    Returns:\n        - ZonedDateTime specified by when with today's date.\n        - datetime specified by when with today's date if output = 'Python'\n        - ZonedDateTime specified by when with today's date if output = 'Java'\n    "
    log.debug(('output is: ' + str(output)))
    if (output == 'Python'):
        dt = to_datetime(when, log=log, output='Python')
        return datetime.combine(date.today(), dt.timetz())
    elif (output == 'Java'):
        dt = to_datetime(when, log=log, output='Java')
        now = dt.now()
        return now.withHour(dt.getHour()).withMinute(dt.getMinute()).withSecond(dt.getSecond()).withNano(dt.getNano())
    elif (output == 'Joda'):
        log.error("to_today trying to return dt joda - use output = 'Python' or output = 'Java' instead")
    else:
        log.error('to_today cannot output [{}]'.format(output))