zabbix_bot.py
def _dnsjedi_forecast_format(value):
    """Converts a forecast value string into a formatted string.

    :param value: seconds string
    :type value: str
    :return: formatted string
    """
    seconds = int(float(value))
    logging.debug(seconds)
    if seconds == 999999999999:
        time_left = "done in a long time"

    else:
        time_delta = datetime.timedelta(seconds=seconds)
        done = datetime.datetime.utcnow() + time_delta
        warning = ""
        if done.hour > 20:
            warning = "WARNING "

        time_left = "{0}done in about {1} ({2} UTC)".format(
            warning, str(time_delta), done)

    return time_left
Converts a forecast value string into a formatted string.

    :param value: seconds string
    :type value: str
    :return: formatted string
    
Converts a forecast value string into a formatted string.
Converts a forecast value string into a formatted string .
def _dnsjedi_forecast_format(value):
    seconds = int(float(value))
    logging.debug(seconds)
    if seconds == 999999999999:
        time_left = "done in a long time"
    else:
        time_delta = datetime.timedelta(seconds=seconds)
        done = datetime.datetime.utcnow() + time_delta
        warning = ""
        if done.hour > 20:
            warning = "WARNING "
        time_left = "{0}done in about {1} ({2} UTC)".format(
            warning, str(time_delta), done)
    return time_left
def _dnsjedi_forecast_format ( value ) : seconds = int ( float ( value ) ) logging . debug ( seconds ) if seconds == 999999999999 : time_left = "done in a long time" else : time_delta = datetime . timedelta ( seconds = seconds ) done = datetime . datetime . utcnow ( ) + time_delta warning = "" if done . hour > 20 : warning = "WARNING " time_left = "{0}done in about {1} ({2} UTC)" . format ( warning , str ( time_delta ) , done ) return time_left
Converts a forecast value string into a formatted string.
Converts a forecast value string into a formatted string .
"""Converts a forecast value string into a formatted string.

    :param value: seconds string
    :type value: str
    :return: formatted string
    """
None
value
None