コード例 #1
0
ファイル: reckontags.py プロジェクト: dankoch/reckonersite
def until_time(value):
    '''
    Creates a display string to show the time until the specified date.
    '''
    if (value):
        timeDelta = getTimeDelta(getCurrentDateTime(), value)
        
        return timeDeltaFormatter(timeDelta)
        
    return ""
コード例 #2
0
ファイル: reckontags.py プロジェクト: dankoch/reckonersite
def time_since(value):
    '''
    Creates a display string to show the time since the specified date.
    '''
    if (value):
        timeDelta = getTimeDelta(value, getCurrentDateTime())
        
        return timeDeltaFormatter(timeDelta)
        
    return ""