Example #1
0
def isToday(strDate):
    return strDate == localdate.strDate()
Example #2
0
def isYesterday(strDate):
    yesterday = localdate.beforeDays(1)
    return strDate == localdate.strDate(yesterday)
Example #3
0
def _getStrDateBeforeDays(days):
    timestamp = localdate.beforeDays(days)
    return localdate.strDate(timestamp)