

def gametime_to_realtime(secs=0, mins=0, hrs=0, days=0, weeks=0, months=0, yrs=0, format=False):
    '\n    This method helps to figure out the real-world time it will take until an\n    in-game time has passed. E.g. if an event should take place a month later\n    in-game, you will be able to find the number of real-world seconds this\n    corresponds to (hint: Interval events deal with real life seconds).\n\n    Kwargs:\n        times (int): The various components of the time.\n        format (bool): Formatting the output.\n\n    Returns:\n        time (float or tuple): The realtime difference or the same\n            time split up into time units.\n\n    Example:\n         gametime_to_realtime(days=2) -> number of seconds in real life from\n                        now after which 2 in-game days will have passed.\n\n    '
    realtime = (((((((secs + (mins * MIN)) + (hrs * HOUR)) + (days * DAY)) + (weeks * WEEK)) + (months * MONTH)) + (yrs * YEAR)) / TIMEFACTOR)
    if format:
        return _format(realtime, 31536000, 2628000, 604800, 86400, 3600, 60)
    return realtime

dataset/ETHPy150Open evennia/evennia/evennia/utils/gametime.py gametime_to_realtime/original